Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

string parameter

$
0
0

I have a powershell script with parameters like below:

[parameter (Mandatory=$False)]
[string]$myfileShare='\\myfileshare.myorg.org\Dev\projects',

It gives an error:

The assignment expression is not valid...

what could be wrong?

Thanks


Thanks


Viewing all articles
Browse latest Browse all 21975

Trending Articles