Remove old computers from AD


dsquery computer -inactive 6 -limit 0 | dsrm
Where 6 is the number of weeks without login.

dsrm "CN=computername,CN=computers,DC=domainname,DC=local"
Remove only one computer  

 

Checking Root Account Status

  Checking Local Root Account Status Run sudo passwd -S root : Look for the status letter in the output. An L means the account is locked (...

Mais vistos