You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Powershell as an alternate shell for cmd.script #5532
salt '*' cmd.script salt://win/repo/scripts/awesome_sauce.ps1 shell='powershell' args='-ingredients secret'
Currently (v 0.15.1), when I do this, the args are silently ignored. This is because Salt executes the Powershell script from within a cmd.exe environment, which causes the args to be ignored. We should have a shell=powershell option so we can easily run Powershell scripts on Minions.
@drawsmcgraw Hey, would you mind adding an example to the docs for setting the cmd.run and/or cmd.script to using powershell? That would be really helpful.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/5532#issuecomment-19885164
.
Activity
basepi commentedon Jun 14, 2013
Sounds good to me! Thanks for the report!
UtahDave commentedon Jun 20, 2013
@drawsmcgraw since we merged that awesome pull req you sent in, I'm going to close this. Please reopen it if I'm out of line. :)
Thanks for this awesome addition!
drawsmcgraw commentedon Jun 21, 2013
Glad to help. Your docs made it super easy to learn the process. Thanks!
UtahDave commentedon Jun 21, 2013
@drawsmcgraw Hey, would you mind adding an example to the docs for setting the cmd.run and/or cmd.script to using powershell? That would be really helpful.
drawsmcgraw commentedon Jun 24, 2013
@UtahDave Hoping this is what you're looking for:
#5697
Thanks!
UtahDave commentedon Jun 24, 2013
Thank you! That's great!
On Jun 23, 2013 7:16 PM, "drawsmcgraw" [email protected] wrote: