![]() Parameter to specify a user account that has permission to connect to the Server01 computer. This command adds the Server01 computer to the Domain02 domain. Example 5: Add a local computer to a domain using credentials Add-Computer -ComputerName Server01 -LocalCredential Server01\Admin01 -DomainName Domain02 -Credential Domain02\Admin02 -Restart -Force The organizational unit for the new accounts. This command adds the local computer to the Domain02 domain. Example 4: Add a local computer to a domain using the OUPath parameter Add-Computer -DomainName Domain02 -OUPath "OU=testOU,DC=domain,DC=Domain,DC=com" The command uses the PassThru and Verbose parameters to get detailed information about the This command adds the local computer to the Domain01 domain by using the Domain01\DC01 domain Example 3: Add a local computer to a domain Add-Computer -DomainName Domain01 -Server Domain01\DC01 -PassThru -Verbose ![]() This command adds the local computer to the Workgroup-A workgroup. Example 2: Add a local computer to a workgroup Add-Computer -WorkgroupName WORKGROUP-A This command adds the local computer to the Domain01 domain and then restarts the computer to make Examples Example 1: Add a local computer to a domain then restart the computer Add-Computer -DomainName Domain01 -Restart To get the results of the command, use the Verbose and PassThru parameters. You can use the parameters of this cmdlet to specify an organizational unit (OU) and domainĬontroller or to perform an unsecure join. It also creates a domain account if the computer is added to The Add-Computer cmdlet adds the local computer or remote computers to a domain or workgroup, or Add the local computer to a domain or workgroup.
0 Comments
Leave a Reply. |