Solved

Create a .reg file to add a key

Posted on 2012-04-05
3
845 Views
Last Modified: 2012-06-22
Hey Guys,

I've tried this before with little success and finally gave up because it was faster to do it by hand.  

This time I WILL PREVAIL!!! :P

Anyway - I want to create a .reg file that will add a key to the registry to keep RAS alive when a user logs out.  This is to help me join virtual machines to the domain through a PPTP tunnel.

Here's the edit:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
KeepRasConnections REG_SZ
Range: 0 or 1
Default: 0 (disabled)

I want it to be "1"

I exported the path but that includes a ton of other keys that I don't necessarily want to change/add.  I think it'd be safer I think to just add this one entry.  

TIA!
0
Comment
Question by:ttist25
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Assisted Solution

by:athomsfere
athomsfere earned 250 total points
ID: 37811450
To add one key value, you want to use reg add from either the command line or a batch file.

This should do it for you.

reg add HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon /v KeepRasConnections /d "0" /f

Open in new window


That will create a string subkey in Winlogin named KeepRasAlive with a value of 0.
0
 
LVL 30

Accepted Solution

by:
flubbster earned 250 total points
ID: 37811594
Create this in Notepad and save with a .reg extension. Make sure there is an extra carriage return at the end of the file. Use everything between the lines.

===========================================================
Windows Registry Editor Version 5.00
 
[HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
"KeepRasConnections "=dword :1

 ===========================================================
0
 
LVL 1

Author Closing Comment

by:ttist25
ID: 37816965
Thanks!
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question