puppetlabs-powershell icon indicating copy to clipboard operation
puppetlabs-powershell copied to clipboard

exec resource throws error on a windows where PS execution policy set to Allsigned

Open nithundamodaran opened this issue 3 years ago • 0 comments

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:

  1. log in to a windows machine , set ps execution policy to allsigned and execute a exec resource with provider set to powershell
  2. 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

nithundamodaran avatar Apr 27 '22 03:04 nithundamodaran