我正在尝试将Powershell New-ADUser与参数-L
一起使用。
当-L
参数值的长度小于或等于15个字符时,此方法起作用。
长度> 15个字符时出现错误。
答案 0 :(得分:1)
结果-L
是LDAP显示名称-City
(https://docs.microsoft.com/en-us/powershell/module/activedirectory/new-aduser?view=winserver2012-ps)
如果我将属性名称从-L
更改为-City
,则可以添加长度大于15个字符的内容,并且该内容最终会出现在属性l
中。