What is reg add Command in Windows Server 2008

In this article I am going to explain about reg add command in windows server 2008 operating system.
  • 2405

Reg add command in Windows Server 2008

The reg add command is used to adds a new subkey or entry to the registry.

Syntax of Reg add command

reg add <KeyName> [{/v ValueName | /ve}] [/t DataType] [/s Separator] [/d Data][/f]

Parameters in Reg add command

There are the following parameter in the reg add command:

Parameter Description
KeyName It specifies the full path of the subkey or entry to be added.
/v ValueName It specifies name of the registry entry.
/ve It specifies the domain in which user account is located.
/t DataType It specifies type of registry entry.
/s Separator It specifies the character to be used to separate multiple instances of data when the REG_MULTI_SZ datatype is specified and  more than one entry need to be listed.
/d Data It specifies the data for new registry entry.
/f It adds the registry entry without prompting for confirmation.

Example of Reg add command




Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.