Add-Computer

NAME

Add-Computer

SYNOPSIS

Add the local computer to a domain or workgroup.

SYNTAX

    Add-Computer [-DomainName] <String> [-ComputerName <String[]>] 
    [-Confirm] -Credential <PSCredential> [-Force] 
    [-LocalCredential <PSCredential>] [-NewName <String>] 
    [-OUPath <String>] 
    [-Options <JoinOptions> {AccountCreate | Win9XUpgrade 
    | UnsecuredJoin | PasswordPass | DeferSPNSet | JoinWithNewName 
    | JoinReadOnly | InstallInvoke}] [-PassThru] [-Restart] 
    [-Server <String>] [-UnjoinDomainCredential <PSCredential>] 
    [-Unsecure] [-WhatIf] [<CommonParameters>]
    
    Add-Computer [-WorkgroupName] <String> [-ComputerName <String[]>] 
    [-Confirm] [-Credential <PSCredential>] [-Force] 
    [-LocalCredential <PSCredential>] [-NewName <String>] [-PassThru] 
    [-Restart] [-WhatIf] [<CommonParameters>]
    

DESCRIPTION

The Add-Computer cmdlet adds the local computer or remote computers to a domain or workgroup, or
moves them from one domain 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.

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=821564
Checkpoint-Computer
Remove-Computer
Restart-Computer
Rename-Computer
Restore-Computer
Stop-Computer
Test-Connection

REMARKS

To see the examples, type: "get-help Add-Computer -examples".
For more information, type: "get-help Add-Computer -detailed".
For technical information, type: "get-help Add-Computer -full".
For online help, type: "get-help Add-Computer -online"