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
Post a Comment