How to disable a computer account in Active Directory with PowerShell? Disabling a computer account in Active Directory, means that whoever login to the computer is not able to communicate with Active Directory. It's quick and easy to disable a computer account and denied access to AD environment. Login as an Administrator account to the AD server. Launch PowerShell. Type this command: Set-ADComputer -Identity "ComputerName" -Enabled $false Replace ComputerName with the correct computer name account. That's it the computer account is disabled, but be sure you have a good reason to do it. If you just want to have fun, and need to enable it at a later time just change the properties to true. Set-ADComputer -Identity "ComputerName" -Enabled $true To check the status of the computer account type this command below: Get-ADComputer -Filter 'Name -like "ComputerName*"' | FT Name, Enabled It will display the Computer...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.