Hi All
Please help on below error , Thanks in advance
Unable to pass more strings when using Set-Aduser replace - Error Set-ADUser : The specified directory service attribute or value does not exist
Import-Csv C:\PowerShell\final.csv | ForEach-Object {Set-ADUser -Identity $_.samAccountName -Replace @{Department=$_.Department;Title=$_.Title;Company=$_.Company;City=$_.City}}
Error - Set-ADUser : The specified directory service attribute or value does not exist
Parameter name: City
At line:1 char:64
+ Import-Csv C:\PowerShell\final.csv | ForEach-Object {Set-ADUser <<<< -Identity $_.samAccountName -Replace @{Department=$_.Department;Title=$_.Title;Company=$_.Company;City=$_.City}}
Regards
Vijay Dalbanjan