Issue #13196 has been updated by Josh Cooper. Branch set to https://github.com/joshcooper/puppetlabs-powershell/pull/8
Updated pull request is available <https://github.com/joshcooper/puppetlabs-powershell/pull/8> Comments appreciated. Note we don't yet support heredoc, due to limitations in the parser (see #19886). Once that's done, we'll be able to write inline powershell. ---------------------------------------- Feature #13196: Powershell exec provider https://projects.puppetlabs.com/issues/13196#change-94938 * Author: Josh Cooper * Status: Accepted * Priority: Immediate * Assignee: * Category: windows * Target version: * Affected Puppet version: * Keywords: windows powershell backlog * Branch: https://github.com/joshcooper/puppetlabs-powershell/pull/8 ---------------------------------------- Currently users have to wrap powershell scripts in a file, and then execute them with an exec. <pre> exec { 'test': command => 'C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -executionpolicy remotesigned -file C:/test.ps1', } </pre> Instead we should have a powershell provider on Windows that allows powershell scripts to be specified inline. It should also take into account the `%windir%` environment variable, as well as `sysnative` to prevent file system direction (since we want to execute 64-bit powershell from 32-bit ruby). Also, powershell enforces a restricted execution policy for scripts that it downloads. The powershell provider to take care of this. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
