Powershell commands 之 Add-Computer

Add-Computer

作用:
      添加计算机到域(Domain)或者组(Group)
语法:
      Add-Computer [-Credential ] [-OUPath ] [-Passthru] [-Reboot ] [-Server ] [-Un
 secure ] [[-ComputerName] ] [-DomainName] [-confirm] [-whatif] []

 Add-Computer [-Credential ] [-Passthru] [-Reboot ] [[-ComputerName] ] [-WorkGroupN
 ame] [-confirm] [-whatif] []
例子 1:
     add-computer -domain domain1.corp.company -reboot
利用当前用户账号信息将本地计算机添加到域,然后重启机器.

你可能感兴趣的:(powershell,commands祥解,powershell,string,domain)