Home » Windows(2003/2008/2012) » Script execution error code 80070005 on Windows 2012

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

Print Friendly

Leave a comment

Your email address will not be published. Required fields are marked *


+ 1 = 10


Visitors Count

Subscriber Count

    3817
March 2017
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
2728293031