Results 1 to 4 of 4

Thread: How to display the contents of a registry key from the command line

  1. #1
    Join Date
    Nov 2008
    Posts
    1,185

    How to display the contents of a registry key from the command line

    I forgot my limited password on my Windows XP computer. So I would like to reset it. I restarted my computer and I am right now on command prompt. I am trying to reset the password but don't know how to go to registry editor. Can you help me to know how to display the contents of a registry key from the command line?

  2. #2
    Join Date
    May 2008
    Posts
    962

    Re: How to display the contents of a registry key from the command line

    You can view, edit, and modify their registry from the MS-DOS command prompt by using the reg command.

    REG Operation [Parameter List]

    Operation [ QUERY | ADD | DELETE | COPY | SAVE | LOAD | UNLOAD | RESTORE | COMPARE | EXPORT | IMPORT ]

    Return Code: (Except of REG COMPARE)

    0 - Successful
    1 - Failed

    For help on a specific operation type:

    REG Operation /?

    Examples:

    REG QUERY /?
    REG ADD /?
    REG DELETE /?
    REG COPY /?
    REG SAVE /?
    REG RESTORE /?
    REG LOAD /?
    REG UNLOAD /?
    REG COMPARE /?
    REG EXPORT /?
    REG IMPORT /?

  3. #3
    Join Date
    May 2008
    Posts
    681

    Re: How to display the contents of a registry key from the command line

    To change a registry value or registry permissions from a command line or from a script, use the Regini.exe utility. The Regini.exe utility is included in the Windows NT Server 4.0 Resource Kit, in the Microsoft Windows 2000 Resource Kit, and in the Microsoft Windows Server 2003 Resource Kit. The syntax for changing registry values or permissions with Regini is:
    REGINI [-m \\machinename] files
    Here, the -m \\machinename option is used to modify the registry of a remote machine, and files represents the names of the script files that contain the changes to the registry.

  4. #4
    Join Date
    May 2008
    Posts
    1,020

    Re: How to display the contents of a registry key from the command line

    You can even try by login into admin account and following the below steps:

    1. Click Start, click Run, type regedit in the Open box, and then click OK.
    2. Locate and then click the subkey that holds the registry item or items that you want to change.
    3. To take the registry backup before the changes, click File, and then click Export. Save it some where on external drive.
    4. In the right pane, add or modify the registry items you want.
    5. You can any time resume the previous registry using the above backup file.

Similar Threads

  1. How to change the line display color with the echo batch command?
    By coolthinking in forum Windows Server Help
    Replies: 5
    Last Post: 24-11-2011, 07:14 PM
  2. xcopy command line together with wmplayer command line
    By Aislinn in forum Operating Systems
    Replies: 5
    Last Post: 31-03-2010, 12:13 PM
  3. Replies: 3
    Last Post: 03-09-2009, 05:41 PM
  4. Command Line Ren (Rename) command broken?
    By SixSigmaGuy in forum Vista Help
    Replies: 2
    Last Post: 18-05-2008, 03:30 PM
  5. Replies: 1
    Last Post: 18-05-2007, 01:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,695,350.96158 seconds with 17 queries