I had the following script given to me by our awesome EE OdBA:
c:\psexec.exe @"C:\Temp\machines.txt" -u Domain\Username -p Password msiexec.exe /i "\\networkservername\sharename\my.msi" /quiet /norestart
In the 'machines.txt', there's an IP address in the format 192.168.55.20. When I run the batch file, the command prompt goes past the actual Systinternals message and then hangs on \\192.168.55.20.
However, if I open up the command prompt and put the IP address in manually and run 'psexec omain\Username -p Password msiexec.exe /i "\\192.168.55.20\sharename\my.msi" /quiet /norestart' then it works perfectly and exits successfully.
Any ideas? Am I doing something wrong? Perhaps I need to run the batch file on an elevated command or something?