Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows Server 2016-Powershell add domain and specify OU (2)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In the previous section, it is mentioned that the domain is added through netdom join and the corresponding OU is specified. This chapter adds a ready-made powershell domain and specifies the script corresponding to OU, which is convenient for everyone to use in their work.

$PlainPassword = Administrator $DomainName= "azureyun.com" $DomainUserName= "$UserName@" + "$DomainName" $SecurePassword = $PlainPassword | ConvertTo-SecureString-AsPlainText-Force$DomainCredentials = New-Object System.Management.Automation.PSCredential-ArgumentList $DomainUserName,$SecurePasswordAdd-Computer-NewName new computer name-DomainName azureyun.com-OUPath "OU=syncall,DC=azureyun,DC=com"-Confirm:$false-Credential $Credential-Restart

Note: red font, the location of the new computer name belongs to the new computer name you want to change.

Welcome to the official account of Wechat: Xiao Wen study Society.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report