All,
I have ran myself into a road block and can't google my way out of this one.
I am creating a very simple shutdown script that I can put into my group policy using MS utility DelProf.exebut cannot seem to think of a method of running this off a server using common variables.
This is my simple code so far:
Option Explicit
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "\\somedc1\netlogon\files\delprof /Q /I /R /C:\\%computername%"
I wan't to deploy this across the enterprise (4 geographic locations) but do not wan't it to alway have to go to \\somedc1 to run the file. Is there some kind of equivalent of %logonserver% variable when nobody is logged on.
Thanks,
Clay
I have ran myself into a road block and can't google my way out of this one.
I am creating a very simple shutdown script that I can put into my group policy using MS utility DelProf.exebut cannot seem to think of a method of running this off a server using common variables.
This is my simple code so far:
Option Explicit
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "\\somedc1\netlogon\files\delprof /Q /I /R /C:\\%computername%"
I wan't to deploy this across the enterprise (4 geographic locations) but do not wan't it to alway have to go to \\somedc1 to run the file. Is there some kind of equivalent of %logonserver% variable when nobody is logged on.
Thanks,
Clay