我有以下代码:
my $mod_order = qx /dsmod user "CN=$user_new,$new_dn" -title "$title" -dept "$department" -company "$company" -s $dc -u $Conn_Args->{logonname} -p $Conn_Args->{pwd} 2>&1/;`
我需要在dsmod订单中添加以下属性:
如您所见,我需要填写“地址”标签。为了做到这一点,我尝试了:
my $mod_order = qx /dsmod user "CN=$user_new,$new_dn" -title "$title" -dept "$department" -company "$company" -streetAddress "$street" -postalAddress "$postalAddress" -l "$city" -st "$state" -postalCode "$postalCode" -co "$country" -s $dc -u $Conn_Args->{logonname} -p $Conn_Args->{pwd} 2>&1/;
但是不能设置所有与地址相关的属性。
我也尝试更改属性的名称,例如:streetAddress-> street或l-> city,但也不起作用...感谢您的帮助!
答案 0 :(得分:0)
dsmod不会更改“地址”选项卡的属性,因此我认为我必须制作一个ps1。
来源:dsmod or other command to edit AD user attributes (Street, P.O. Box, City, State, Zip)