On Thu, Jan 30, 2014 at 12:15 PM, Atse Tewodors <adugenet1...@gmail.com>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 install liamjbennett/windows_autoupdate

Alternatively you can issue the same command on the puppet master, and run
the agent once (puppet agent -t) to pull those files down.

Then type:

   C:\>puppet apply -e "class { 'windows_autoupdate': noAutoUpdate => 1 }"


> So I am using instead registry setting to disable the auto update, any
> suggestions for the below
>
>
>
> confine :operatingsystem => "windows"
>
>
>
> setcode do
>
> reg_exe = "#{ENV['SystemRoot']}\\System32\\reg.exe"
>
> #Disabling Autoupdate
>
>    begin
>
>  Facter::Util::Resolution::exec("#{reg_exe} ADD "HKEY_LOCAL_MACHINE\\
> SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU /v AutoUpdate /t
> Reg_DWORD /d  1")
>
>    rescue Exception => e
>
>    puts e
>
>    end
>
> end
>

>  --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/02673469-7d7f-4ef0-a8cd-61b409612052%40googlegroups.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

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2Bu97ukdUmK1JpWQr7_19VdKXunGZ-oxcPYYgsToUNwtsS8A%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to