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  

 

How to list open ports and application using them in Windows

  netstat -abn or netstat -a -n -p tcp -o

Mais vistos