1
|
get-aduser
-Filter
*
-SearchBase
"DC=contoso,DC=com"
|
foreach
{
if
(
$_
.enabled
-eq
$false
){
$_
.ObjectGUID} } |
Move-ADObject
-TargetPath
"OU=deluser,OU=delusers,DC=Contoso,DC=com"
|
本文转自handsome7038 51CTO博客,原文链接:http://blog.51cto.com/lixiaosong/1338719