This would give you the results for everyone in the Users container, SAM ID and 
login script, with a |
in between. Run from cscript or you'll get to click OK on each user! :-)

Dim OU, oUser, UserObj
set OU = GetObject("LDAP://CN=Users,DC=my,DC=domain,DC=COM";)

For Each UserObj in OU

WScript.Echo UserObj.sAMAccountName & "|" & UserObj.LoginScript

Next

WScript.Quit

<mc>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Charlie Saliba
Sent: Tuesday, February 22, 2005 4:21 PM
To: [email protected]
Subject: [ActiveDir] Logon Scripts

Is there anyway to tell without clicking into each user's properties
to tell which logon script they use?
List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/


This e-mail transmission contains information that is intended to be 
confidential and privileged.  If you receive this e-mail and you are not a 
named addressee you are hereby notified that you are not authorized to read, 
print, retain, copy or disseminate this communication without the consent of 
the sender and that doing so is prohibited and may be unlawful.  Please reply 
to the message immediately by informing the sender that the message was 
misdirected.  After replying, please delete and otherwise erase it and any 
attachments from your computer system.  Your assistance in correcting this 
error is appreciated.  Thank you.  Cintas Corporation.

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to