cmdmod.exec_all doesn't work with Windows PowerShell #34199
Labels
Bug
broken, incorrect, or confusing behavior
Execution-Module
fixed-pls-verify
fix is linked, bug author to confirm fix
P4
Priority 4
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Windows
Milestone
Description of Issue/Question
Execution of PowerShell scripts via cmdmod.exec_all is not possible as PowerShell requires:
There is possibility to use cmdmod.powershell, but it fails on some installations due to strong dependency on ConvertTo-Json
Setup
Windows minion with PowerShell
Steps to Reproduce Issue
Requires #34196 to be fixed to reproduce this issue at first place.
When executed without '-File':
Temp file opening is triggered on minion.
Execute
salt 'windows-minion' cmd.exec_code_all powershell 'write-host "test string"'
When executed with '-File':
Versions Report
Salt Minion: 2016.3.0
The text was updated successfully, but these errors were encountered: