Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

To fix the issue #50 about installing a service with custom credentials #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aminm-net
Copy link

To fix the issue #50 raised on May 28 by @luke-barnett

The issue appears on task version 8 as the script generated by the task looks like the following:
MyTopShelfService.exe" install -username "MyUserName" -password:"***"

While the above works perfectly fine in windows command prompt and in older task versions (probably due to a different version in PowerShell there), it fails if you run it with windows PowerShel.

To fix, the final script should be like: (look at the colon instead of space after username switch)

MyTopShelfService.exe" install -username:"MyUserName" -password:"***"

To fix the issue  jabbera#50 raised on May 28 by @luke-barnett  

The issue appears on task version 8 as the script generated by the task looks like the following:
MyTopShelfService.exe" install  -username "MyUserName" -password:"***" 

While the above works perfectly fine in windows command prompt and in older task versions (probably due to a different version in PowerShell there), it fails if you run it with windows PowerShel.

To fix, the final script should be like: (look at the colon instead of space after username switch)

MyTopShelfService.exe" install  -username:"MyUserName" -password:"***"
@aminm-net aminm-net changed the title To fix the issue #50 raised on May 28 2020 To fix the issue #50 about installing a service with custom credentials Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant