M
Momo
We've encountered a strange problem lately in devloping a vbs script
which writes a text file and an event log to a server. We have this
script run via GPO on computer startup.
What we've found is that if the computer is in a subnet diff than the
server the script cannot write the text file or event logs.
Also if we put the script on a network share on a diff subnet it also
cannot right to the server. It only works is a. if the computer and
server are on the same subnet or b. the script is executed locally on
the computer.
What we've deceided to do is have a GPO startup vbs script that copies
the vbs scipt to each computers c:\temp than run it from there.
But what I'm not sure of is how to write the startup script so that it
calls the vbs script thats been copies to c:\temp so that it'll execute
the script in the context of the local computer.
I've tried using a batch fille ie.
copy script.vbs c:\temp
wscript script.vbs
but this did'nt seem to work can anyone help PLEaase...........
which writes a text file and an event log to a server. We have this
script run via GPO on computer startup.
What we've found is that if the computer is in a subnet diff than the
server the script cannot write the text file or event logs.
Also if we put the script on a network share on a diff subnet it also
cannot right to the server. It only works is a. if the computer and
server are on the same subnet or b. the script is executed locally on
the computer.
What we've deceided to do is have a GPO startup vbs script that copies
the vbs scipt to each computers c:\temp than run it from there.
But what I'm not sure of is how to write the startup script so that it
calls the vbs script thats been copies to c:\temp so that it'll execute
the script in the context of the local computer.
I've tried using a batch fille ie.
copy script.vbs c:\temp
wscript script.vbs
but this did'nt seem to work can anyone help PLEaase...........