1: 2: 3: 4: 5: 6: 7: 8:
Get-Content "YourList.csv" | %{ $User = Get-QADUser $_ -IncludedProperties "msRTCSIP-UserEnabled" If ($User."msRTCSIP-UserEnabled") { Set-QADUser $_.DN -ObjectAttributes @{"msRTCSIP-UserEnabled" = $False } } }