Home » Posts tagged 'error code 80070005'

Tag Archives: error code 80070005

Script execution error code 80070005 on Windows 2012

Recently found that some of the our maintenance VB script used for placing servers in Maintenance mode on SCOM were not working and were throwing errors as listed below:

Error: Invalid root in registry key
Code: 80070005
Source : WshShell.RegWrite

Well, found that the same script is working fine when executed as Run as Administrator. Validated the UAC and found that its already disabled on control panel.

Later its found that, disabling UAC will not help in executing the scripts and the UAC has to be disabled in registry by following below steps:

1. Open registry using “regedit”.
2. Browse to the following registry key:
“HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem”
3. Double-Click the EnableLUA Key on the right and Change the value data from 1 (UAC Enabled) to 0 (UAC Disabled).

Thanks,

WintelAdmin


Visitors Count

Subscriber Count

    3889
April 2017
M T W T F S S
« Feb    
 12
3456789
10111213141516
17181920212223
24252627282930