Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Unable to pass more strings when using Set-Aduser replace - Error Set-ADUser : The specified directory service attribute or value does not exist

$
0
0

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 


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>