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 [email protected].
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.

Reply via email to