$users=Get-Content C:\Temp\useraccounts.txt
ForEach ($user in $users)
{
Disable-ADAccount -Identity $user
write-host “user $($user) has been disabled”
}
$users=Get-Content C:\Temp\useraccounts.txt
ForEach ($user in $users)
{
Disable-ADAccount -Identity $user
write-host “user $($user) has been disabled”
}