📅  最后修改于: 2022-03-11 14:49:29.431000             🧑  作者: Mango
$NewUserParameters = @{
'GivenName' = 'David'
'Surname' = 'Jones'
'Name' = 'djones'
'AccountPassword' = (ConvertTo-SecureString 'p@$$w0rd10' -AsPlainText -Force)
'ChangePasswordAtLogon' = $true
}
New-AdUser @NewUserParameters