Hi,
You could try this:
$powerShell =
'C:\\Windows\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe
-ExecutionPolicy remotesigned'
exec {'Install-service' :
command => "${PowerShell} -File
D:\\Powershell-Scripts\\scripts\\script.ps1",
path => 'C:\windows\System32',
require
On Tue, Oct 9, 2012 at 9:58 AM, Puppet 3.0 Powershell 2.0 Set
ExecutionPolicy Err wrote:
> Hi,
>
> I am trying to set the execution policy on the Powershell 64 bit version.
>
>
> exec { 'rolesfeatures1':
> command => 'C:\Windows\System32\cmd.exe /c
> C:\Windows\System32\WindowsPowerShell\v1.0\Powe
Hi,
I am trying to set the execution policy on the Powershell 64 bit version.
exec { 'rolesfeatures1':
command => 'C:\Windows\System32\cmd.exe /c
C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe Invoke-Command
{Set-ExecutionPolicy RemoteSigned}',
provider => windows,
logoutput =>