PDF Print E-mail

Find all Groups with Password Never Expires

Written by Daniel Mundy
Sunday, 07 December 2008 14:07

To list all user accounts along with their "never expires" attribute:

dsquery user | dsget user -samid -pwdneverexpires

 

To list only those with "never expires" in a text file:

dsquery user | dsget user -samid -pwdneverexpires | find "yes" > never-expires.txt

To also filter by active users only type:

dsquery user | dsget user -samid -pwdneverexpires -disabled | find "yes                no"

Source: microsoft.public.scripting.vbscript

There's also a "Hey, Scripting Guy" article using VBscript but I couldn't make it work.

There's also a free utility called ADFind but I couldn't make that work either (maybe it was blocked by AV)

See also:

Trackback(0)
Comments (0)Add Comment

Write comment

busy
Last Updated on Sunday, 30 May 2010 09:44
 

Are you stuck?

This tech stuff isn't for everyone. If you'd rather just pay someone to fix it for you, email daniel@mundy.com.au.
I'll be happy to help you.


Daniel Mundy