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 <[email protected]> wrote: > 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\\sysnative\\windowspowershell\\v1.0\\powershell.exe). > > But first I was hoping to validate if the runtime is the issue. You can > validate by taking what you said ran fine with straight PowerShell, opening > an x86 version of PowerShell and trying to see if it works. Then move from > there to the next step, which is what I mentioned above in getting to the > proper runtime of powershell. > > > > On Wed, Jan 29, 2014 at 9:47 AM, Atse Tewodors <[email protected]>wrote: > >> 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<https://www.google.com/url?q=https%3A%2F%2Fdownloads.puppetlabs.com%2Fwindows%2Fpuppet-3.0.2.msi&sa=D&sntz=1&usg=AFQjCNFZgru125t_Goz9Giu3GnDzlX6kgg> >> >> a = %x[ powershell -command " & {($Updates = (New-Object -ComObject >> "Microsoft.Update.AutoUpdate").Settings.NotificationLevel)}" ] >> b = %x[ powershell -command " & {($Updates = (New-Object -ComObject >> "Microsoft.Update.AutoUpdate").Settings.ReadOnly)}" ] >> >> >> if b.delete("\n") != "False" >> >> %x[ powershell -command " & {($Updates = (New-Object -ComObject >> "Microsoft.Update.AutoUpdate").Settings; $Updates.ReadOnly = False)}"] >> >> end >> >> >> if a.delete("\n").to_i != 1 >> >> %x[ powershell -command " - < {($Updates = (New-Object -ComObject >> "Microsoft.Update.AutoUpdate").Settings ; "$Updates.NotificationLevel = >> '$1'" -Force ; $Updates.save()}" ] >> >> end >> >> >> >> Any help is appreciated with the above or any other alternative to chnage >> the above to puppets types and providers >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/6b818970-07ea-47d6-83bd-606e4cfff1a2%40googlegroups.com >> . >> >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Rob Reynolds > Developer, Puppet Labs > > Join us at PuppetConf 2014, September 23-24 in San Francisco - > http://bit.ly/pupconf14 > Register now and save 40%! Offer expires January 31st. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CAMJiBK7DqP9iPi7UL0N3wJDH-UQQAkfTe0mfpCnsQPgRtgjDRA%40mail.gmail.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- Josh Cooper Developer, Puppet Labs *Join us at PuppetConf 2014, September 23-24 in San Francisco* - http://bit.ly/pupconf14 Register now and save 40%! Offer expires January 31st. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA%2Bu97um_jqMwsLeF1KKmwQry%2B6BD1-Tj1prf6%3DaT7zaYS%2B6KEA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
