自己找到方法了,并测试成功,PS命令如下:假如OU为 abc.com/123
Get-ADUser -Filter ‘Name -like "*"‘ -SearchBase "OU=123,DC=abc,DC=com" | Set-ADUser -emailaddress $null