- 最新
- 投票最多
- 评论最多
The error indicates that the SamAccountName provided in the New-ADUser command is not formatted correctly. The SamAccountName needs to be a valid account name that can be used to log into the domain. It typically looks like firstname.lastname or firstinitial.lastname.
Please try the following:
-
Use a valid account name format like 'batman.gotham' instead of the email address for SamAccountName and UserPrincipalName
-
Make sure the SamAccountName is unique in the domain
-
Remove any special characters or spaces from the SamAccountName
-
Verify the domain name specified with -Path is correct
-
Check if you have permissions to create users in the OU specified with -Path
Try the below command:
New-ADUser -Name 'Batman Gotham' -SamAccountName 'batman.gotham' -UserPrincipalName 'batman.gotham@darknight.com' -Path 'CN=Users,OU=Operations,DC=darknight,DC=com'
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前