desktoprat
MIS
I don't mean to sound lazy, but I am in serious trouble and could use some fast help.
I know the topic has been covered previously, but I can't seem to understand how to make it work correctly. Using a previously working script, I can sucessfully create a folder on a remote machine, copy in all of July's hotfixes from Microsoft as well as a batch file to install all the hotfixes. The batch file works if I connect to each machine and execute it, but I am unable to cause the batch to run on the remote computer from a script running on my own computer.
The line I am currently working with is
objShell.Run("\\" & strComputer & "\c:\updates\patch.bat"),1,True
... but I error out with "The system cannot find the path specified" I have searched through the forum, tried the PSEXEC approach also, but can't seem to make that work either.
So, how can I get a batch file that I successfully copied to another computer to run on that computer???
I know the topic has been covered previously, but I can't seem to understand how to make it work correctly. Using a previously working script, I can sucessfully create a folder on a remote machine, copy in all of July's hotfixes from Microsoft as well as a batch file to install all the hotfixes. The batch file works if I connect to each machine and execute it, but I am unable to cause the batch to run on the remote computer from a script running on my own computer.
The line I am currently working with is
objShell.Run("\\" & strComputer & "\c:\updates\patch.bat"),1,True
... but I error out with "The system cannot find the path specified" I have searched through the forum, tried the PSEXEC approach also, but can't seem to make that work either.
So, how can I get a batch file that I successfully copied to another computer to run on that computer???