In somecases, registry editing may be blocked by a group policy which then blocks your VS Command Prompt.
VS Command Prompt attempts to get settings out of the registry by using reg.exe, which denies access to the registry.
The simple solution is to replace your reg.exe
This is for VS 2012. For other versions, you'll have to adapt.
There are three files which you will need to edit:
- %VS110COMNTOOLS%\VCVarsQueryRegistry.bat
- %VS110COMNTOOLS%\VsDevCmd.bat
- %VS110COMNTOOLS%\vsvars32.bat
- Unpack RegRead.exe to your somewhere in your %PATH% variable o You can create a create a directory (eg, Program Files\RegRead) and add it to the your PATH variable
- For each of the above files,
- Open the file
- Goto 'Find and Replace'
- Find
'reg query
, replace with'RegRead query
- Test!
Happy CLIing.