PowerShell

Add-Computer

CautionJoin a domain

Add-Computer -DomainName <domain> -Restart

Joins AD; -OUPath drops the account in the right OU from the start — the kitting finale, scripted.

Examples

  • Add-Computer -DomainName corp.local -OUPath 'OU=PCs,DC=corp,DC=local' -RestartJoin into a specific OU

Syntax

Add-Computer -DomainName d [-OUPath dn] [-Credential cred] [-Restart]

Before you run it

Needs credentials and a reboot.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store