Try putting the LDAP filter in double-quotes.
 
-Andrew
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Tuesday, December 06, 2005 3:11 PM
To: [email protected]
Subject: RE: [ActiveDir] remove logon script?

I get the following error:

 

(objectClass was unexpected at this time.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe
Sent: Tuesday, December 06, 2005 2:00 PM
To: [email protected]
Subject: RE: [ActiveDir] remove logon script?

 

It works against the current default domain which is the domain of the default domain controller. You can determine what that is with

 

adfind -default -s base -dn

 

 

If you want it to work against another domain, remove -default and add -b domain_dn (i.e. change the search base of the adfind query).

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Tuesday, December 06, 2005 1:46 PM
To: [email protected]
Subject: RE: [ActiveDir] remove logon script?

This will work for the currently logged in domain right?

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe
Sent: Monday, December 05, 2005 4:44 PM
To: [email protected]
Subject: RE: [ActiveDir] remove logon script?

 

One tiny correction :)

 

Adfind –f “(&(objectCategory=person)(objectClass=user)(scriptpath=logon.bat))” –default –dsq | admod –unsafe scriptpath:-

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Desmond
Sent: Monday, December 05, 2005 4:00 PM
To: [email protected]
Subject: RE: [ActiveDir] remove logon script?

Adfind and admod from joeware.net

 

Adfind –f “(&(objectCategory=person)(objectClass=user)(scriptpath=logon.bat))” –default –dsq | admod –unsafe scriptpath-

 

Thanks,
Brian Desmond

[EMAIL PROTECTED]

 

c - 312.731.3132

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Monday, December 05, 2005 3:40 PM
To: [email protected]
Subject: [ActiveDir] remove logon script?

 

How can I remove the logon.bat from all my user (2000+) accounts at one time in my domain?  I’ve switch to GPO for the logon scripts.

 

Devon Harding

Windows Systems Engineer

Southern Wine & Spirits - BSG

954-602-2469

 


__________________________________
This message and any attachments are solely for the intended recipient
and may contain confidential or privileged information. If you are not
the intended recipient, any disclosure, copying, use or distribution of
the information included in the message and any attachments is
prohibited. If you have received this communication in error, please
notify us by reply e-mail and immediately and permanently delete this
message and any attachments. Thank You.


__________________________________
This message and any attachments are solely for the intended recipient
and may contain confidential or privileged information. If you are not
the intended recipient, any disclosure, copying, use or distribution of
the information included in the message and any attachments is
prohibited. If you have received this communication in error, please
notify us by reply e-mail and immediately and permanently delete this
message and any attachments. Thank You.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to