Skip to content

Registry read fix for VS CMD when registry is blocked

Notifications You must be signed in to change notification settings

geoffles/RegRead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RegRead fix for VS Command Prompt

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

Installation

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

Instructions

  1. 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
  2. For each of the above files,
  3. Open the file
  4. Goto 'Find and Replace'
  5. Find 'reg query , replace with 'RegRead query
  6. Test!

Happy CLIing.

About

Registry read fix for VS CMD when registry is blocked

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages