salt/changelog/61166.fixed.md
Shane Lee 45c56b0033 Fix issues with the cmd module on Windows
stderr is no longer piped to stdout by default for cmd.run
Scripts are called using the -File paramter for powershell.exe
stderr is cleared if it contains CLIXML (only for encoded commands)
cmd.powershell now accepts lists as commands
Makes sure returned JSON data is valid before trying to load it
Strips whitespace from the stdout in win_runas
2024-05-14 21:15:16 +01:00

439 B

Fixes multiple issues with the cmd module on Windows. stderr is no longer piped to stdout by default on cmd.run. Scripts are called using the -File parameter to the powershell.exe binary. CLIXML data in stderr is now removed (only applies to encoded commands). Commands can now be sent to cmd.powershell as a list. Makes sure JSON data returned is valid. Strips whitespace from the return when using runas.