📌  相关文章
📜  powershell 活动目录脚本示例 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:29.431000             🧑  作者: Mango

代码示例1
$NewUserParameters = @{
    'GivenName' = 'David'
    'Surname' = 'Jones'
    'Name' = 'djones'
    'AccountPassword' = (ConvertTo-SecureString 'p@$$w0rd10' -AsPlainText -Force)
    'ChangePasswordAtLogon' = $true
}
New-AdUser @NewUserParameters