Hi,
I wrote a script which creates a batch file on the remote server and
tries to run from there itself.
This script is working in all the servers connected in network except
one. I checked the netlogon services and secondarylogon services both
of them are started. I checked the logon user id permissions its
having domain id rights.
Here is the script.
Set objFSO = CreateObject("Scripting.FileSystemObject")
strLine1 = "copy c:\ d:\" & " " & ">" & " " & Unescape("%22") & "d:
\test.txt" & Unescape("%22")
copy1 = "d:\copys.bat"
Set strFile1 = objFSO.CreateTextFile(copy1, True)
strFile1.WriteLine(strLine1)
strFile1.Close
Set oShell = CreateObject("Wscript.Shell")
nReturn = oShell.Run("cmd /c d:\copys.bat")
wscript.echo nReturn
this script runs fine on server A but in server B it doesnt even
initiates the line "CreateObject("Wscript.Shell")".
I'm not sure wat could be the reason.
any suggessions are gladly welcomed.