I have written this script
$users = Import-CSV E:\Users\raosid\blkusr.csv
$users| foreach-object
{
New-aduser -Givenname $_.First -Surname $_.Last -DisplayName $_.DispName -SamAccountName $_.Id -OfficePhone $_.OfficePh -EmailAddress $_.Email -Company $_.Company -Country $_.Country --AccountExpirationDate "03/01/2015 5:00:00 PM" -Office $-.Office
-UserPrincipalName $_.UserPrincipalName -AccountPassword $(ConvertTo-SecureString $_.Password -AsPlainText -Force) -ChangePasswordAtLogon $True -path "OU=Users,OU=AB,OU=Tee2,DC=tempNET,DC=COM" -Enabled $true
}
When i run t his command it gives me this message
cmdlet ForEach-Object at command pipeline position 1
Supply values for the following parameters:
Process[0]:
Also i need to know how to updated
Please advise
Thanks