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