使用 Get-ADUser 获取用户属性,通过 ADUser 的属性 $_.objectguid 被 Move-ADObject 调用,将该对象移动到"ou=outline,dc=hxx,dc=tt"容器。

Get-ADUser -Identity hexiaoxi | foreach{Move-ADObject -Identity $_.objectguid  -TargetPath "ou=outline,dc=hxx,dc=tt"}

0 条评论

发表回复

Avatar placeholder

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