Upgrade Analytics Error HRESULT: -2147024891 Access Denied When Running RunConfig.bat
Are you trying to collect inventory data for Windows Upgrade Analytics by running RunConfig.bat and receiving error -2147024891 (which translates to Access Denied)?
03/12/2016 12:15:30 : Attempting to run inventory...This may take a few minutes to complete, please do not cancel the script. 03/12/2016 12:15:30 : Inventory scan Failed, Check error events. HRESULT: -2147024891
RunConfig.bat requires special permissions on Windows and needs to be run as SYSTEM in some cases. The script may work successfully as an Administrator on some systems, but require SYSTEM on others.
If you are using Configuration Manager to run the script, you should be right as Configuration Manager runs as SYSTEM. If you are testing then you can use tools such as PSEXEC to start an interactive command line session as system.
Links: