I am attempting to use the following chef recipe to download and install windows updates on a windows 2008 R2 machine in the Amazon cloud: https://github.com/dougm/site-cookbooks/blob/master/windows/recipes/update.rb.
I am using Chef 11.8.0 but the chef run fails with the following error:
Recipe Compile Error in c:/chef/cache/cookbooks/test/recipes/updates.rb
WIN32OLERuntimeError
(in OLE method `CreateUpdateDownloader': ) OLE error code:80070005 in HRESULT error code:0x80020009 Exception occurred.
Cookbook Trace:
c:/chef/cache/cookbooks/test/recipes/updates.rb:54:in method_missing'
c:/chef/cache/cookbooks/test/recipes/updates.rb:54:in
from_file'
Line 54: downloader = session.CreateUpdateDownloader.
Any ideas?