Re: get attributes from AD about GPO scripts
- From: skrubbeltrang@xxxxxxxxx
- Date: 15 Dec 2005 12:16:47 -0800
Hi Chris.
I think an ADSI script is not necessarily what you are looking for.
You could use ADSI to query the domain name if you want a generic
script but since you probably know your domain name just hardcode it in
your script.
Use the file system object to enumerate the sub folders in \\[server
name]\sysvol\[domain name]\Policies\
There'll be a lot of {GUID} style folders.
For each of these folders have a look in [GUID
folder]\User\Scripts\Scripts.ini
This file holds the names of the scripts.
You could also enumerate the sub folders "logon" and "logoff" to see if
any script files are there.
So forget about adsi and have a look at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/8b99eead-e2bd-45c6-9660-bbbfeec192f0.asp
Hope this helps,
Morten Skrubbeltrang
GrubleTrang Corporation
http://grubletrang.com/
.
- References:
- get attributes from AD about GPO scripts
- From: chris . binner
- get attributes from AD about GPO scripts
- Prev by Date: Re: Event ID 13 - automatic certificate enrollment error
- Next by Date: Re: Please Help Major Problem Domain Controller offline for over 6
- Previous by thread: get attributes from AD about GPO scripts
- Next by thread: Re: Problems with second DC (failover) when primary DC is offline. - A
- Index(es):
Relevant Pages
|