Re: VB scripting for machine Startup and GPO information
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Mar 2009 19:32:52 -0500
"Al Dunbar" <alandrub@xxxxxxxxxxx> wrote in message
news:eomSRGZsJHA.4592@xxxxxxxxxxxxxxxxxxxxxxx
"Wirrel" <Wirrel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C7055F12-1943-4DB2-ABE3-ED4D8950E30A@xxxxxxxxxxxxxxxx
Here is problem trying to figure out. I have a script that runs at
machine
start up that we set in the Domain level GPO. Set another script in an
ou
level that may change the setting that was set in the domain level gpo.
We
would like to be able to see if and when this happens using the event log
to
monitor this. I have added the few lines to create a log entry in the
script
but the problem now is that even log doesnt say which GPO the script is
running from.
I need a function that will determine the GPO that the script is running
from.
I do not know for sure, but I suspect this might not be possible. Perhaps
a simpler method would be to use a differently named script for each GPO,
and have it add its name to the log.
/Al
A script can determine the folder where it is saved (the ScriptFullName or
Path property of the Wscript object), which would indicate the GPO, but the
folder name is the GUID of the GPO. Much simpler would be to simply write a
GPO description string to the log file, as suggested.
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
.
- References:
- VB scripting for machine Startup and GPO information
- From: Wirrel
- Re: VB scripting for machine Startup and GPO information
- From: Al Dunbar
- VB scripting for machine Startup and GPO information
- Prev by Date: Re: VBscript Array Split Function
- Next by Date: Re: Find files are SYN or Not in Two Folders
- Previous by thread: Re: VB scripting for machine Startup and GPO information
- Next by thread: VBscript Array Split Function
- Index(es):
Relevant Pages
|