Re: Disable all accounts who haven't logged on prior to certain date



This a Windows 2000 domain Joe. I have exactly 1500 accounts I want to
touch. Will an oldcmp CMD line work here?

--
Spin

"Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx> wrote in message
news:%23EXUaecKGHA.1424@xxxxxxxxxxxxxxxxxxxxxxx
OldCmp doesn't work with fixed dates, it is relative, so once you know how
old the oldest account you want that doesn't get touched, use the -age
switch to specify that value. You also want the -users switch to tell
oldcmp to do users instead of computers.

The hardest part is that oldcmp doesn't work with lastlogon, it works with
pwdlastset or lastlogontimestamp (if you are in domain functional mode for
the domain). So if you are in domain functional mode, you specify
the -llts switch, if you aren't, then you will be going against passwords.

Finally, I put a lot of safeties into place to protect people from
completely screwing themselves like I have seen with folks using dsquery |
dsmod. To that end you specify the maximum number of objects that should
be touched with -safety, like -safety 1000 for 1000 objects. If you don't
care and want to hit every account that matches the query, use -unsafe.

joe

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm



Spin wrote:
Thank you for your response. That is the tool, but what would be the
command-line one would use to disable all accounts who haven't logged on
prior to June 1, 2005?



.



Relevant Pages

  • Re: Welcome to windows/Switch user locked
    ... "Joe" wrote in message ... First I am working with windows XP. ... I'll call them Act 1 and Act 2. ... allowed me to access the two accounts. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Thinking of reinstalling Windows...
    ... Those accounts created have always been fully functional ... extensions that windows don't recognize. ... to double click and open them; I received the file type association dialogue ... Default user profile that all new user accounts copy off from. ...
    (microsoft.public.windowsxp.general)
  • Re: Thinking of reinstalling Windows...
    ... Those accounts created have always been fully functional ... | extensions that windows don't recognize. ... | to double click and open them; I received the file type association dialogue ... | Default user profile that all new user accounts copy off from. ...
    (microsoft.public.windowsxp.general)
  • number 2
    ... Remember, we're talking about Windows Platforms 95,98 ... provided with Cable/DSL dial-up accounts. ... Wrong IP no news. ... We aren't talking about News Servers here (at the ...
    (alt.computer.security)
  • From Tracker....
    ... Remember, we're talking about Windows Platforms 95,98 ... provided with Cable/DSL dial-up accounts. ... Wrong IP no news. ... We aren't talking about News Servers here (at the ...
    (microsoft.public.security)