Code:
(REG ADD "HKCR\Directory\Background\shell\Registry" /V "HasLUAShield" /F)  
(REG Add "HKCR\Directory\Background\shell\Registry\Command" /VE /D "CMD /C regedit" /F)
The above works. Windows Registry will be opened when I click on "Registry" in the context menu.
However, the following does not work. The output is "System error 5 has occurred. Access is denied." when I click on "Network" in the context menu.
Code:
(REG ADD "HKCR\Directory\Background\shell\Network" /V "HasLUAShield" /F)   
(REG Add "HKCR\Directory\Background\shell\Network\Command" /VE /D "CMD /C Net stop Netman & pause" /F)
Code:
System error 5 has occurred.
Access is denied.
Press any key to continue . . .
How should I fix "System error 5"? Both regedit and Net stop Netman require administrative privileges. The former works, but the latter does not. That is baffling.