Re: get attributes from AD about GPO scripts

Tech-Archive recommends: Fix windows errors by optimizing your registry



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/

.



Relevant Pages

  • Re: Prestaging RIS - produces wrong GUID
    ... retrieves the GUID it forced me to try pasting in the GUID - so I ... So I have forced the read script to use the MAC address as the source ... > ore refer to this article for the step by step if you are using ADSI to ... >> But if you look at the computer account properties on the RIS tab it says ...
    (microsoft.public.windows.server.active_directory)
  • Re: changing NT passwords across the Internet using SSL
    ... the password, but you still need a script, probably an ADSI script, to ... search www.google.com or www.microsoft.com/support for "ADSI ... Outgoing mail is certified Virus Free. ...
    (microsoft.public.inetserver.iis.security)
  • Re: How to tell if an AD user property is set
    ... I'm using ADSI only. ... My script needs to ... You can use the IsEmpty function to check if there is no value. ... The snippet I posted earlier seems most direct, but an ADO query could also ...
    (microsoft.public.windows.server.scripting)
  • Re: Local Account
    ... It covers VBScript, WSH, ADSI, ADO, and WMI. ... The text uses the LDAP provider, but the principles are the same. ... Script Center" to learn the script, ... Now, the local account is configed, but the property of the local ...
    (microsoft.public.scripting.vbscript)
  • Re: ADSI and NDS help
    ... trying to locate a user object in eDirectory via LDAP using ADSI. ... query i the script below runs successfully in ldp.exe; ...
    (microsoft.public.scripting.vbscript)