none
How to script(batch script) multiple commands using PSEXEC ?

    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
    Wednesday, April 10, 2019 7:54 PM

All replies