学习自: 徐鹏老师的 AD Powershell 系列视频课程 把 Lab 下的用户全部删除 Get-ADUser -Filter * -SearchBase "ou=Lab,dc=satid,dc=com" | foreach{Remove-ADUser -identity $_.Name -Confirm:$false} 删除表中包含的用户 转载于:https://blog.51cto.com/zhaodongwei/1963700