Windows – Adding key to registry

I would like to create a batch file, that will add registry key, not manually, but full automaticly by .BAT file. This link goes about adding everything but not the key. This link shows how to add everything, and how to add key manually, but it requires user interference, which I am trying to avoid.

Is there possibility to add KEY (non REG_*) to “folder?” in registry by one simple batch file?

Solution:

In a command prompt type REG /? and you will see the functionality available in your batch file.
REG ADD /? will give you more info on actually adding the key.  If you’re planning on running this from SCCM, you may need to specify 32/64 bit registry as it may cause some errors.

Actual Examples of REG ADD:

REG ADD HKLMSoftwareMyCo /v Data /t REG_BINARY /d fe340ead

http://technet.microsoft.com/en-us/library/cc742162(v=ws.10).aspx