替换用户的岗位和邮箱地址

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 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用*标注