Help - Search - Member List - Calendar
Full Version: Импорт/экспрот ключа из консоли
Форумы RDA > Технический раздел > Общие вопросы
Zolo
Помогите разобраться как импортировать/экспортировать ключ в реестр через консоль (консоль=cmd.exe). Желаетельно чтобы данная команда работала и при удаленном администрировании
alossenko
вот коечто нашел на английском winkold.gif

The Console Registry tool for Windows, which can be launched by typing "reg.exe" at the command line, allows you to add, change and display registry keys and values directly from the command line. NOTE: This is a different utility than the Registry Manipulation Utility (reg.exe) that was included with the Windows NT Server Version 4.0 Resource Kit, Supplement Two.

The cool feature of this utility is its ability to manipulate the registry in a number of different ways. For example, you have the option of exporting a key or set of keys from the registry to a .REG file. You also have the ability to import a .REG file, which will overwrite and/or add the keys and values listed in the .REG file directly to your registry. But what if you just want to change a value of an existing key? You can do this directly from the command line without the use of .REG files by typing a command similar to the following:

REG QUERY HKLM\Software\Microsoft\Windows\CurrentVersion\Run

This command gives you a list of all of the keys and values under the Run section of this portion of the registry. If you want to change a value, you type a command similar to the following:

REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v DMU /d “c:\dmu\dmu.exe”

When you do a REG ADD and the value already exists, you will be prompted to verify whether you want to overwrite the value or not. In this example, DMU already existed, but since my goal was to modify the existing value, I said yes to the prompt and it modified the existing value for DMU.

To find out more about the options available to you for this utility type "reg /?" at the command prompt.
Yanch
CODE

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\>reg
'reg' is not recognized as an internal or external command, operable program or batch file.

C:\>


Странно... Для какого выньдовса эта утилита?
alossenko
Windows XP Professional и Windows .NET Server

для 2000 по моему нельзя через консоль
Korax
2 Zolo:
никак хакать что-то собрался? smileold.gif
kvappa
Если вместо reg набрать regedit, то под 2К всё работает. Только что попробовал.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2025 Invision Power Services, Inc.