i have created app. 1200 users with default password
and some of them have logged rest of them have not just logged in since 1
month.
I have created a list which users have not logged in with a lastlogon script.

I want a script or any key information about how to i write a script to
disable which i give the usernames.

Thanks

Re: script for disabling accounts by Meinolf

Meinolf
Wed May 07 07:06:52 PDT 2008

Hello EmreCAN,

Have a look here:
http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/status/usstvb01.mspx?mfr=true

http://www.microsoft.com/technet/scriptcenter/guide/sas_usr_qqry.mspx?mfr=true

http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/status/default.mspx?mfr=true


Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm

> i have created app. 1200 users with default password
> and some of them have logged rest of them have not just logged in
> since 1
> month.
> I have created a list which users have not logged in with a lastlogon
> script.
> I want a script or any key information about how to i write a script
> to disable which i give the usernames.
>
> Thanks
>



Re: script for disabling accounts by Paul

Paul
Wed May 07 12:52:18 PDT 2008

Look at oldcmp from JoeWare.net, it can be used against user accounts. I
use it for computer accounts but will work just the same, it disables and
move accounts that haven't been used in 90 days, the span of time is
configurable.

--
Paul Bergson
MVP - Directory Services
MCTS, MCT, MCSE, MCSA, Security+, BS CSci
2008, 2003, 2000 (Early Achiever), NT4

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.

"EmreCAN" <EmreCAN@discussions.microsoft.com> wrote in message
news:9CD8027C-0CF6-4412-A4EF-A5EAA1D90A34@microsoft.com...
>i have created app. 1200 users with default password
> and some of them have logged rest of them have not just logged in since 1
> month.
> I have created a list which users have not logged in with a lastlogon
> script.
>
> I want a script or any key information about how to i write a script to
> disable which i give the usernames.
>
> Thanks
>