-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PSService] Single -setup parameter not working for powershell v2 #22
Comments
Hello @cloverhap. I had the same issue and commenting the line 233 resolved it. Thanks |
Hello, What exact OS and PS versions do you have?
|
Actually there's a simple workaround. Run: |
I was testing the (mostly) unmodified service script on a machine with powershell v2 installed as we have some in our environment, and came across this message:
Parameter set cannog be resolved using the specified named parameters.
At line:1 char:32
arameterBindingException
I removed line 233 (below) to make it work since I won't be using the 'Setup' parameter set, but i'm wondering if this is happening on other users as well?
[Parameter(ParameterSetName='Setup', Mandatory=$true)] <<<
[Parameter(ParameterSetName='Setup2', Mandatory=$true)]
[Switch]$Setup, # Install the service
The text was updated successfully, but these errors were encountered: