设置了-L属性的New-ADUser

时间:2020-03-03 12:28:37

标签: powershell active-directory

我正在尝试将Powershell New-ADUser与参数-L一起使用。 当-L参数值的长度小于或等于15个字符时,此方法起作用。 长度> 15个字符时出现错误。

1 个答案:

答案 0 :(得分:1)

结果-L是LDAP显示名称-Cityhttps://docs.microsoft.com/en-us/powershell/module/activedirectory/new-aduser?view=winserver2012-ps

如果我将属性名称从-L更改为-City,则可以添加长度大于15个字符的内容,并且该内容最终会出现在属性l中。

相关问题