天天看點

查詢某個OU下面所有被禁用的賬号

get-aduser -Filter * -SearchBase "OU=deluser,OU=delusers,DC=Contoso,DC=com" | foreach {if ($_.enabled -eq $false){echo $_.Name} }

本文轉自handsome7038 51CTO部落格,原文連結:http://blog.51cto.com/lixiaosong/1338673

繼續閱讀