locked
How to script multiple commands that will be executed in system context on a list of workstations remotely through PSEXEC.EXE? RRS feed

  • Question

  • How to script(batch script) multiple commands that will be executed in system context on a list of workstations remotely through PSEXEC.EXE?

    Commands for the script are:

    ***************************************

    robocopy \\network_path \\hostname\c$\Temp
    psexec -s \\hostname cmd C:\Temp\ccmsetup.exe /uninstall
    psexec -s \\hostname cmd rmdir C:\Windows\ccmsetup
    psexec -s \\hostname cmd C:\Temp\ccmsetup.exe
    EXIT

    • Moved by Bill_Stewart Wednesday, September 4, 2019 8:54 PM Off-topic
    Tuesday, April 9, 2019 7:03 PM

All replies