tags:

views:

7

answers:

0

In order to automate a process on multiple servers I’m using the psexec command I have notice the first command is running OK but the rest of the psexec command in the chain are getting access denied on the server To verify it is not my command I have changed the order of the commands and verify there is no problem in any of my commands I have a suspect there is some kind of issue in running multiple psexec commands on win 2008 one after the other

This is my code: psexec \%%i -u domain\user -p password -h -accepteula c:\unzip.exe -d c:\SSLTools -q c:\ssltools.zip psexec \%%i -u domain\user -p password -h -accepteula cmd /c c:\SSLTools\setServerSSL.bat %%i %1 psexec \%%i -u domain\user -p password -h -accepteula cmd /c del c:\ssltools.zip