PowerShell - Active Directory
This script is intended to disable users listed in 'disable.csv':
It fails with 'Cannot find an object with identity'. What is the likely fix?
Import-Csv disable.csv | ForEach-Object {
Disable-ADAccount -Identity $_.UserName
}It fails with 'Cannot find an object with identity'. What is the likely fix?
