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

Bulk Modify Phone Numbers Using CSV File

$
0
0

hi,

I am also getting same below error.

The term 'Set-ADUser$_.distinguishedName' is not recognized as the name of a cmdlet, function, script file, or ope
 program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again
At line:1 char:72
+ Import-Csv -Path c:\Phone.csv | ForEach {Set-ADUser$_.distinguishedName <<<<  -mobilePhone $_.mobile -OfficePhon
elephoneNumber}
    + CategoryInfo          : ObjectNotFound: (Set-ADUser$_.distinguishedName:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\>

I had run import-module active directory

Kindly advisse


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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