PSTools
psexec -d \\* defrag c: d:
psexec -d @defrag.txt defrag c: d:
The psexec program connects to the remote windows computer and runs the defrag program. The "\\*" means that psexec will do this for every computer in the domain and the "-d" argument tells psexec to not wait and move on to the next computer.
The @defrag.txt means that psexec will do this for every computer that is in the txt file. The txt file format is one entry per line followed by a return.
沒有留言:
發佈留言