#DSQuery dsquery user -name "*" -limit 0 | dsget user -samid -hmdir -hmdrv -profile >c:\temp\usersV2.txt #PowerShell # More flexibility # Includes the state of the computer account (Enable or…
Get a list of inactive computers which have not logged on to the domain in the last 12 weeks
# Inactive computers ( this will include systems not regularly used) # Launch command prompt as administrator and run the following commands Dsquery computer -inactive 12 -limit 500 # Lists…