Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-02-03 Thread Josh Cooper
On Thu, Jan 30, 2014 at 12:15 PM, Atse Tewodors wrote: > Due to the run time issue with puppet/ruby calling powershell windows > update and i could nt be able to open the zip file http://forge. > puppetlabs.com/liamjbennett/windows_autoupdate > On your Windows host, type: C:\>puppet module ins

Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-30 Thread Atse Tewodors
Due to the run time issue with puppet/ruby calling powershell windows update and i could nt be able to open the zip file http://forge.puppetlabs.com/liamjbennett/windows_autoupdate So I am using instead registry setting to disable the auto update, any suggestions for the below confine :ope

Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-29 Thread Josh Cooper
You might also want to try the autoupdate module on the forge: http://forge.puppetlabs.com/liamjbennett/windows_autoupdate Josh On Wed, Jan 29, 2014 at 8:31 AM, Rob Reynolds wrote: > Hi, > I guess I wasn't really clear in my first email. I'm not sure the > AutoUpdate would run in 32bit mode,

Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-29 Thread Rob Reynolds
Hi, I guess I wasn't really clear in my first email. I'm not sure the AutoUpdate would run in 32bit mode, which is what puppet/ruby runs under and your call to powershell will stay in 32 bit mode unless you use sysnative. You would need to find the x64 bit version of PowerShell (c:\\windows\\sysna

Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-29 Thread Atse Tewodors
The first set of commands run and my pb is when i tried to run the below commands as a .rb file using https://downloads.puppetlabs.com/windows/puppet-3.0.2.msi

Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-28 Thread Rob Reynolds
I think this might have to do with 32bit versus x64. Try opening an x86 PowerShell console and running the first set of code. On Tue, Jan 28, 2014 at 8:18 PM, Atse Tewodors wrote: > Hi, > > I am trying converting a powershell script to puppet and providers. I try > to compile using https://down

[Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-28 Thread Atse Tewodors
Hi, I am trying converting a powershell script to puppet and providers. I try to compile using https://downloads.puppetlabs.com/windows/puppet-3.0.2.msi but the code executed without windows update setting changed. Powershell code -Works fine in powershell $Updates = (New-Object -ComObject "Mi