--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/106f4ce0-d641-49a6-a555-d1c2a8653d6a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6b818970-07ea-47d6-83bd-606e4cfff1a2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMJiBK7DqP9iPi7UL0N3wJDH-UQQAkfTe0mfpCnsQPgRtgjDRA%40mail.gmail.com.
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
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 :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...@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.