That did it…thanks Joe.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe
Sent: Tuesday, December 06, 2005
8:21 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] remove
logon script?
Yeah I have seen odd
things like that before if you cut and paste from email or doc files, some
bogus character you can't see is in there or something like that. Retype it...
[Tue 12/06/2005 20:20:01.78]
G:\>Adfind
-f "(&(objectCategory=person)(objectClass=user)(scriptpath=logon.bat))"
-default -dsq | admod -unsafe scriptpath:-
(objectClass was unexpected at this time.
[Tue 12/06/2005 20:20:07.26]
G:\>Adfind
-f
"(&(objectcategory=person)(objectclass=user)(scriptpath=logon.bat))"
-default -dsq | admod -unsafe scriptpath:-
AdMod V01.06.00cpp Joe Richards ([EMAIL PROTECTED]) June 2005
DN Count: 0
No object DNs to update.
The command completed successfully.
[Tue 12/06/2005
20:20:10.93]
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding,
Devon
Sent: Tuesday, December 06, 2005
4:11 PM
To: ActiveDir@mail.activedir.org
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: ActiveDir@mail.activedir.org
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: ActiveDir@mail.activedir.org
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: ActiveDir@mail.activedir.org
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: ActiveDir@mail.activedir.org
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-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Harding, Devon
Sent: Monday, December 05, 2005
3:40 PM
To: ActiveDir@mail.activedir.org
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.