Re: [Puppet Users] Setting Powershell execution policy through Puppet

2012-10-12 Thread Marco Parra D.
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

Re: [Puppet Users] Setting Powershell execution policy through Puppet

2012-10-09 Thread Josh Cooper
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

[Puppet Users] Setting Powershell execution policy through Puppet

2012-10-09 Thread Puppet 3.0 Powershell 2.0 Set ExecutionPolicy Err
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 =>