Skip to main content

Psexec Help

We had a requirement to create 10GB files on 200 machines immediately  for testing.

psexec was used to do this remotely.

The command:

psexec.exe -u username -p passpord @list.txt \\FileSrv01\Sharename\CreateFile.cmd


Here are the steps:

Created a batch file and saved it on a file share which all users have access to .

FileServer Share  ----   \\FileSrv01\Sharename\

Batch File ---  CreateFile.cmd

The batch file had this content:

fsutil file createnew C:\test.bak 10000000000 

The Above command creates around 9GB file immediately


1.Logged in to one of the machines with admin privilege

2.Copied psexec.exe  to folder C:\temp

3.Created a file list.txt which had all the machines where i wanted to run the batch file.Kept it in the same folder.

4.Executed the command from command prompt within C:\temp directory

psexec.exe -u username -p passpord @list.txt \\FileSrv01\Sharename\CreateFile.cmd

Hope this Helps.

Comments

Popular posts from this blog

Group Policy Object did not apply because it failed with error code '0x80070534 No mapping between account names and security IDs was done

One of our servers was losing the Local Admin settings as we control them using GPO (restricted Groups) We were receiving the following event on this particular server : Event ID 4098 Application Event Log The computer 'Administrators (built-in)' preference item in the 'Servers Local Admins {odjd9DBD-22AF-48EA-ADF5-F42ADE4182hst}' Group Policy Object did not apply because it failed with error code '0x80070534 No mapping between account names and security IDs was done.' This error was suppressed. To fix the issue we deleted all the folders from the following location and rebooted the server C:\ProgramData\Microsoft\Group Policy\History Hope this helps.

iDRAC 7 Shows no Signal in Virtual Console Preview

Recently i logged on to iDRAC for one of our Dell R720 servers,however somehow the console redirection did not work at all. I kept on seeing No Signal on the Virtual console Preview. I tried Rebooting the server but that did not help. Finally i clicked on Reset iDRAC and this did the trick. It may take around 2 -5 minutes before you can access iDRAC page again. I had to power on the server through iDRAC before anything showed up on console. Hope this Helps.

Close Open Files in Isilon

To close Open files in Isilon Sometimes we may have to Close open files on Isilon , This is how we can accomplish it First find all the Open Files using the Following Command: isi_for_array  "isi smb openfiles list" To Narrow the search  we can grep the result  as an example isi_for_array  "isi smb openfiles list" | grep -i abc Once you find the files the 6 digit number is the id for that open file. To close the open file run the following command isi_for_array isi smb openfiles close "123456" -f Hope this helps