Skip to content

Instantly share code, notes, and snippets.

@matthewskelton
Created July 8, 2013 14:33
Show Gist options
  • Save matthewskelton/5949341 to your computer and use it in GitHub Desktop.
Save matthewskelton/5949341 to your computer and use it in GitHub Desktop.
chef-client output when WMI is not working on a Windows machine - 80041002 in SWbemLocator indicates that the WMI class is not found.
[2013-07-04T11:29:12+01:00] DEBUG: Loading plugin windows::uptime
[2013-07-04T11:29:12+01:00] DEBUG: Plugin windows::uptime threw exception #<WIN32OLERuntimeError: (in OLE method `ConnectServer': )
OLE error code:80041002 in SWbemLocator
Not found
HRESULT error code:0x80020009
Exception occurred.> C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb:131
:in `method_missing'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb:131:in `connection'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/rdp-ruby-wmi-0.3.1/lib/ruby-wmi/base.rb:47:in `find_by_wql'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment