TechStriker wrote: Thank you very much sprkymrk, your example works like charm, is it best practice to group the clients per 100 or you can run 500 client computers on one file at one go and walk away.
undomiel wrote: By the way, instead of using a for loop by the way you could also do: psexec @c:\Temp\computers.txt defrag C:
Sie wrote: Following a command with the below: >> Text.txt Would save the output of the command to a txt file called Text.txt. You can call this whatever you like and even in a different directory, just include the full path. Coincidently : > Text.txt Does the same but appends the file.
TechStriker wrote: Thank you very much sprkymrk, your example works like charm, is it best practice to group the clients per 100 or you can run 500 client computers on one file at one go and walk away. The other thing I noticed is PsExec executes commands sequential one computer at a time I could see from command that it started the defrag the first computer on the list of my computers.txt file after defrag finishes goes to the second computer on the list, is that how is supposed to work