替换用户的岗位和邮箱地址
Set-ADUser -Identity hexiaozhi -Replace @{title="IT staff";mail="hexiaozhi@hxx.tt"}
设置或更改用户的经理
Set-ADUser -Identity zhangwei -Manager hexingxing
设置用户信息
删除 otherMailbox="glen.john";增加 url="fabrikam.com";替换 title="manager";清除 description
Set-ADUser -Identity hexiaoxi -Remove @{otherMailbox="glen.john"} -Add @{url="fabrikam.com"} -Replace @{title="manager"} -Clear description
0 条评论