Sunday, May 29, 2016

Disable list of users from a file

Get-Content c:\users.txt | % { Set-ADUser $_ -Enabled:$false }