29 October 2017
Get list of AD users with no lastLogonTimestamp value
Retrieve a list of AD users that don't have a 'last logon' timestamp attribute value:
Get-ADUser -f {-not ( lastlogontimestamp -like "*") -and (enabled -eq $true)} |ft Name, DistinguishedName
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment