Hi,

You could create a script to retrieve the scriptpath attribute from all
users in a textfile or excelsheet using the following code:
####
On Error Resume Next
Set objUser = GetObject _
  ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com";)
objUser.GetInfo
 
strScriptPath = objUser.Get("scriptPath")
 
WScript.echo "scriptPath: " & strScriptPath
####

OR USE ADFIND from JOEWARE

adfind -b dc=w2k3domain,dc=lan -f "&(objectcategory=person)(samaccountna
me=*)" scriptpath

AdFind V01.26.00cpp Joe Richards ([EMAIL PROTECTED]) February 2005

Using server: W2K3DC01.W2K3DOMAIN.LAN
Directory: Windows Server 2003

dn:CN=Administrator,CN=Users,DC=W2K3DOMAIN,DC=LAN

dn:CN=Guest,CN=Users,DC=W2K3DOMAIN,DC=LAN

dn:CN=SUPPORT_388945a0,CN=Users,DC=W2K3DOMAIN,DC=LAN

dn:CN=IUSR_W2K3SRV00,CN=Users,DC=W2K3DOMAIN,DC=LAN

dn:CN=IWAM_W2K3SRV00,CN=Users,DC=W2K3DOMAIN,DC=LAN

dn:CN=krbtgt,CN=Users,DC=W2K3DOMAIN,DC=LAN

dn:CN=USER01,OU=USERS,OU=ORG,DC=W2K3DOMAIN,DC=LAN
>scriptPath: LOGON.CMD

dn:CN=user02,OU=USERS,OU=ORG,DC=W2K3DOMAIN,DC=LAN
>scriptPath: LOGIN.VBS

To output into a textfile use:
adfind -b dc=w2k3domain,dc=lan -f "&(objectcategory=person)(samaccountna
me=*)" scriptpath > OUTPUT.TXT

Cheers
Jorge
-----Original Message-----
From: [EMAIL PROTECTED]
To: [email protected]
Sent: 2/22/2005 10:20 PM
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 and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
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