Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Powershell Script error: "Missing expression after unary operator '-'.

$
0
0

Here is my Script. I can not! For the life of me, where the error is failing.....


Import-CSV "C:\test2.csv" | ForEach-Object -Begin Set-User -Title $_.Title -Department $_.Department
-OtherTelephone $_.OtherTelephone -OfficePhone $_.OfficePhone -Company $_.Company -postalcode $_.PostalCode
-Company $_.Company -StreetAddress $_.StreetAddress -Office $_.Office -State S_.State|

Please to HALP!!!

T.hanks,

Matt


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>