puppetlabs-powershell
puppetlabs-powershell copied to clipboard
exec resource throws error on a windows where PS execution policy set to Allsigned
Describe the Bug
exec resource with provider set to powershell does not work on a windows machine with powershell execution policy set to allsigned
Expected Behavior
exec resource should run and ps commands should be executed.
Steps to Reproduce
Steps to reproduce the behavior:
- log in to a windows machine , set ps execution policy to allsigned and execute a exec resource with provider set to powershell
- execution throws an error
Environment
- PE 2019.8
- Platform windows
Additional Context
this looks to be an issue only when provider is mentioned as "powershell" explicitly on exec resource