Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Add-Computer

Add-Computer - Powershell 3.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 »

Add-Computer

Short description
Add the local computer to a domain or workgroup.

Syntax
Add-Computer [-DomainName] <String> [-ComputerName <String[]>] [-Force] [-LocalCredential <PSCredential>] [-NewName <St
ring>] [-Options <JoinOptions>] [-OUPath <String>] [-PassThru] [-Restart] [-Server <String>] [-UnjoinDomainCredential <
PSCredential>] [-Unsecure] -Credential <PSCredential> [-Confirm] [-WhatIf] [<CommonParameters>]
Add-Computer [-WorkGroupName] <String> [-ComputerName <String[]>] [-Credential <PSCredential>] [-Force] [-LocalCredenti
al <PSCredential>] [-NewName <String>] [-PassThru] [-Restart] [-Confirm] [-WhatIf] [<CommonParameters>]





Description
The Add-Computer cmdlet adds the local computer or remote computers to a domain or workgroup, or moves them from one do
main to another. It also creates a domain account if the computer is added to the domain without an account.


You can use the parameters of this cmdlet to specify an organizational unit (OU) and domain controller or to perform an
 unsecure join.


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