{"action":"opened","issue":{"url":"https://api.github.com/repos/criteo-cookbooks/wsus-client/issues/16","labels_url":"https://api.github.com/repos/criteo-cookbooks/wsus-client/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/criteo-cookbooks/wsus-client/issues/16/comments","events_url":"https://api.github.com/repos/criteo-cookbooks/wsus-client/issues/16/events","html_url":"https://github.com/criteo-cookbooks/wsus-client/issues/16","id":106025651,"number":16,"title":"wuauctl force update throws  -2147024891 error","user":{"login":"hh","id":31331,"avatar_url":"https://avatars.githubusercontent.com/u/31331?v=3","gravatar_id":"","url":"https://api.github.com/users/hh","html_url":"https://github.com/hh","followers_url":"https://api.github.com/users/hh/followers","following_url":"https://api.github.com/users/hh/following{/other_user}","gists_url":"https://api.github.com/users/hh/gists{/gist_id}","starred_url":"https://api.github.com/users/hh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hh/subscriptions","organizations_url":"https://api.github.com/users/hh/orgs","repos_url":"https://api.github.com/users/hh/repos","events_url":"https://api.github.com/users/hh/events{/privacy}","received_events_url":"https://api.github.com/users/hh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-11T14:51:21Z","updated_at":"2015-09-11T14:51:21Z","closed_at":null,"body":"When using default attributes with the 1.2.0 release and very minimal attributes against windows 2012:\r\n\r\n\r\n```ruby\r\nnode.override['wsus_client'][attribute] = 'false'\r\n```\r\n\r\n```ruby\r\nwsus_client_update 'WSUS updates' do\r\n  action             :download\r\nend\r\n```\r\n\r\nhttps://github.com/criteo-cookbooks/wsus-client/blob/master/recipes/configure.rb#L102\r\n\r\n```ruby\r\n# Force detection in case the client-side update group changed\r\nexecute 'Force Windows update detection cycle' do\r\n  command 'c:\\windows\\sysnative\\wuauclt.exe /ResetAuthorization /DetectNow'\r\n  action :nothing\r\nend\r\n```\r\n\r\n```                 ================================================================================\r\n                   Error executing action `run` on resource 'execute[Force Windows update detection cycle]'\r\n                   ================================================================================\r\n                   \r\n                   Mixlib::ShellOut::ShellCommandFailed\r\n                   ------------------------------------\r\n                   Expected process to exit with [0], but received '-2147024891'\r\n                   ---- Begin output of c:\\windows\\sysnative\\wuauclt.exe /ResetAuthorization /DetectNow ----\r\n                   STDOUT: \r\n                   STDERR: \r\n                   ---- End output of c:\\windows\\sysnative\\wuauclt.exe /ResetAuthorization /DetectNow ----\r\n                   Ran c:\\windows\\sysnative\\wuauclt.exe /ResetAuthorization /DetectNow returned -2147024891\r\n                   \r\n                   Resource Declaration:\r\n                   ---------------------\r\n                   # In C:/chef/cache/cookbooks/wsus-client/recipes/configure.rb\r\n                   \r\n                   102: execute 'Force Windows update detection cycle' do\r\n                   103:   command 'c:\\windows\\sysnative\\wuauclt.exe /ResetAuthorization /DetectNow'\r\n                   104:   action :nothing\r\n                   105: end\r\n                   \r\n                   Compiled Resource:\r\n                   ------------------\r\n                   # Declared in C:/chef/cache/cookbooks/wsus-client/recipes/configure.rb:102:in `from_file'\r\n                   \r\n                   execute(\"Force Windows update detection cycle\") do\r\n                     action [:nothing]\r\n                     retries 0\r\n                     retry_delay 2\r\n                     default_guard_interpreter :execute\r\n                     command \"c:\\\\windows\\\\sysnative\\\\wuauclt.exe /ResetAuthorization /DetectNow\"\r\n                     backup 5\r\n                     returns 0\r\n                     declared_type :execute\r\n                     cookbook_name \"wsus-client\"\r\n                     recipe_name \"configure\"\r\n                   end\r\n                   \r\n                   [2015-09-11T14:37:59+00:00] ERROR: Running exception handlers\r\n                   [2015-09-11T14:37:59+00:00] ERROR: Exception handlers complete\r\n                   [2015-09-11T14:38:00+00:00] FATAL: Stacktrace dumped to C:/chef/cache/chef-stacktrace.out\r\n                   [2015-09-11T14:38:00+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[Force Windows update detection cycle] (wsus-client::configure line 102) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected proces\r\ns to exit with [0], but received '-2147024891'\r\n                   ---- Begin output of c:\\windows\\sysnative\\wuauclt.exe /ResetAuthorization /DetectNow ----\r\n                   STDOUT: \r\n                   STDERR: \r\n                   ---- End output of c:\\windows\\sysnative\\wuauclt.exe /ResetAuthorization /DetectNow ----\r\n                   Ran c:\\windows\\sysnative\\wuauclt.exe /ResetAuthorization /DetectNow returned -2147024891\r\n```\r\n\r\nAny thoughts?"}}