I have to agree on the Where oddity, ForEach-Object would be more appropriate.
Anyway, the error message explains it. New-QADUser does not have a parameter called ProfilePath, you can't set it like that. You can set it by feeding it in using ObjectAttributes though (see below).
Help tells you everything you can and can't use here:
Get-Help New-QADUser -Full | more
HTH
Chris
Main Topics
Browse All Topics





by: RickSheikhPosted on 2009-09-16 at 08:10:25ID: 25346431
Can you to create one test user from your CSV without the "profilepath" ? For some odd reason I also think if I did what you are doing, I would replace the "where" with "foreach".