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

Must provide a value expression on the right-hand side of the '-' operator

$
0
0

Hello everyone,

Kinda new at powershell and haven't had any luck with this error.  I have run the same script several times to catch typos and other errors. I've checked other templates but keep getting this error for: "Must provide a value expression on the right-hand side of the '-' operator" and points to the $datasource-

$datasource- import-csv "NEW_ADUser_Form.csv"

$datasource-import-csv "NEW_ADUser_Form.csv"

$datasource- import-csv "\NEW_ADUser_Form.csv"

$datasource-import-csv "\NEW_ADUser_Form.csv"

$datasource=import-csv "NEW_ADUser_Form.csv"

I have tried other variations from templates but can't find a way around it.

Any help is appreciated


Viewing all articles
Browse latest Browse all 6937

Trending Articles