When I created the powershell script to create a user from CSV file I get this error when I run the script
Is that the full file path or just the directory? Please show me what the $filePath variable equals. I have seen this error before when you try to import a CSV but don’t specify a file name.
I moved the file to the C drive. .
#this is how the csv file looks when you open it
file Path with error
You typed CVS not CSV. The convenience store is messing you up, ha!
I get the script to work without -Path $user.“Organizational Unit”
I have tried:
-Path $user.“Organizational Unit”
-Path $user.‘Organizational Unit’
without it is working fine. Why?
The moving part is also giving an error.
The syntax in your first screenshot appears to be incorrect. Don’t just pass the “-”, you need to pass “-path”.
For the second screenshot, verify that your path does exist.
It works now Thanks for the help.