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

powershell set-aduser help.

$
0
0

I need to input ipphone for every user in the AD.  (windows 2008 R2 DCs)

The users.csv file is this format:(username is the samaccount)

username, ipphone

user1,123-456-8900

user2,123-456-9900

--------------

Import-CSV "C:\Scripts\Users.csv" | % {
$User = $_.UserName
$ip = $_.ipphone
Set-ADUser $User -ipphone $ip
}

-------------

I got "a parameter can not be found that matches parameter ipphone ..."

Can anyone help?

Thank you.



Viewing all articles
Browse latest Browse all 15028

Trending Articles



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