Archived from groups: microsoft.public.windowsxp.security_admin (
More info?)
Will the below command works:
dsquery user domainroot -inactive 6 | dsmod user -acctexpires 0
Any idea?
Tony
"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:uOjclWwpFHA.1148@TK2MSFTNGP12.phx.gbl...
> Tony wrote:
>
> > Does anyone know how I can expire the accounts that haven't
> > been used for 45 days?
> >
> Hi,
>
> Assuming this is Active Directory user accounts, you can e.g. use the
> free command line tool OldCmp.exe to do this, but you will need to run
> the tool regularly (e.g. daily or weekly).
>
> You can download OldCmp.exe here:
>
http://www.joeware.net/win/free/tools/oldcmp.htm
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
>
http://www.microsoft.com/technet/scriptcenter/default.mspx