[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Creating Batch File to Set Several Registry Settings

Posted on 2012-09-19
1
Medium Priority
?
630 Views
Last Modified: 2012-09-20
I would like to create a batch file to set various Registry settings instead of setting them individually.  

One of the settings is to disable Autorun and the script would be:

[HKLM\System\CurrentControlSet\Service\CDrom]
"AutoRun"=dword:00000000

Do I need to include all the other items within the CDrom registry area as well (i.e., AutoRunAlwaysDisable, DependOnGroup, DisplayName, etc.)?  I want to make sure I only change AutoRun and nothing else.
0
Comment
Question by:ghost-hunter
1 Comment
 
LVL 84

Accepted Solution

by:
David Johnson, CD, MVP earned 600 total points
ID: 38416336
use a bunch of reg add statements in your batch file, just use what you've changed and nothing else.

reg add <KeyName> [{/v ValueName | /ve}] [/t DataType] [/s Separator] [/d Data] [/f]
http://technet.microsoft.com/en-us/library/cc742162(v=ws.10).aspx
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Suggested Courses

831 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