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  

 

DIsable LAPS

  Turn all items to disabled in LAPS GPO    Remove LAPS passwords Get-ADComputer -Filter * -SearchBase “OU=Servers,DC=mydomain,DC=com” | Se...

Mais vistos