AD | Application | AWS | Azure | Cloud | Database | Enterprise | Environmental | Event Log | File System | IoT | IT Service | Network/System | NIS2 | Infra | Performance | Protocol | SaaS | Security | Service Level | Storage | Linux | VMware | VoIP | Web | Wireless | SNMP

MonitorTools.com » Administration » Powershell » Powershell 2.0 » Remove-Computer

Remove-Computer - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Remove-Computer

Short description
Remove the local computer from a workgroup or domain.

Syntax


Description
The Remove-Computer cmdlet removes the local computer from its current workgroup or domain. 

When you remove a computer from a domain, Remove-Computer also disables the computer's domain account.

When the computer is in a domain, you must provide credentials, even when they are the credentials of the current u
ser, and you must restart the computer to make the change effective. 

To get the results of the command, use the Verbose and PassThru parameters.

M