Setting regsitry values temporary in bat file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
lalitpct
Posts: 3
Joined: 16 Jan 2012 04:27

Setting regsitry values temporary in bat file

#1 Post by lalitpct » 18 Apr 2016 21:13

For an application we set registry value howevere not everyone has admin rights hence was looking for some option where we can set the value temporary in bat file.
Tried set command but it didn't work.
set TEST123=DBMSSOCN,cobserver1.nam.nsroot.net,4300

May I know how we can set values of registry temporary in bat file?


Registry when exported looks like below
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\MSSQLServer\Client\ConnectTo]
"TEST123"="DBMSSOCN,cobserver1.nam.nsroot.net,4300"

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Setting regsitry values temporary in bat file

#2 Post by foxidrive » 19 Apr 2016 06:42

As I understand your question you would like to have some way of changing the registry, but only temporarily, and without permissions to be able to change the registry.

A batch file isn't able to help you, without altering the registry itself - and the solution will probably depend on the actual task being performed.

In other words, there may be a workaround but it can depend on exactly what is being done, and why.

Post Reply