Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Cannot update attribute

$
0
0

Hi

 

Can anyone tell me whats wrong the following basic bit of code?

It returns: cmdlet ForEach-Object at command pipeline position 1 supply values for the following parameters:

Process[0]:

$Users = Import-Csv "C:\ccenter1.csv"
$Users | Foreach

 {

Set-QADuser $_.SamAccountName -objectattributes @{pager=$_.COSTCENTER}

}

 

Thanks


Viewing all articles
Browse latest Browse all 6937

Trending Articles