theniteowl
Programmer
Hi All,
This should be simple but it is eluding me.
I am using PSExec to connect to server 1 passing a command line that executes a vbs script on server 2.
This works fine on 4 servers. One server just got back from being rebuilt after a HD crash. Now this server cannot execute the script that resides on the network share but it will execute it if the file is on a local drive.
There is probably a setting on the system preventing this from working but I have been unable to find it.
The command I issue is as follows.
PSExec connects to server2 (the newly rebuilt one) and executes cmd.exe with the path to the chklogin.vbs file located on a file share on server1.
If I change the path to a local drive for chklogin.vbs it executes but I do not want to have separate copies of the script on every server and all other servers are working correctly so...
The logon ID on the server has full access to the share folder.
Ideas?
At my age I still learn something new every day, but I forget two others.
This should be simple but it is eluding me.
I am using PSExec to connect to server 1 passing a command line that executes a vbs script on server 2.
This works fine on 4 servers. One server just got back from being rebuilt after a HD crash. Now this server cannot execute the script that resides on the network share but it will execute it if the file is on a local drive.
There is probably a setting on the system preventing this from working but I have been unable to find it.
The command I issue is as follows.
Code:
objShell.Run "cmd /c \\server1\myfolder\psexec.exe \\" & strServerName & " -u " & strServerName & "\loginid -p password cmd.exe /c \\server1\myfolder\chklogin.vbs", 0, True
PSExec connects to server2 (the newly rebuilt one) and executes cmd.exe with the path to the chklogin.vbs file located on a file share on server1.
If I change the path to a local drive for chklogin.vbs it executes but I do not want to have separate copies of the script on every server and all other servers are working correctly so...
The logon ID on the server has full access to the share folder.
Ideas?
At my age I still learn something new every day, but I forget two others.