Registry : How to add extension keys through command line

matri06

New member
Local time
3:59 AM
Messages
2
I am looking for some help:
I wish to add a new extension key of type .dns
If I execute :
reg add HKEY_CLASSES_ROOT\.dns
Then the key .dns does not get added to HKEY_CLASSES_ROOT but somewhere in HKEY_CURRENT_USER ?
How do I get the command to add the .dns key to HKEY_CLASSES_ROOT ?
What command should I execute?

Thank you
 

My Computer My Computer

At a glance

Windows7
Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Windows7
HKLM\SOFTWARE\Classes
 

My Computers My Computers

  • At a glance

    7 X64i5 84002x8gb 3200mhz
    Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • At a glance

    7x64g54008gb ddr4 2400
    Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
Thanks, but when I execute
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.dns
it still does not add .dns to HKEY_CLASSES_ROOT
 

My Computer My Computer

At a glance

Windows7
Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Windows7
Enter reg add /? for info on how to use it:
 

My Computer My Computer

At a glance

Windows 10 Pro X64Intel Quad Core i7-4770 @ 3.4Ghz16.0GB PC3-12800 DDR3 SDRAM 1600 MHzIntel Integrated HD Graphics
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
HKEY_CLASSES_ROOT is just an alias to HKEY_LOCAL_MACHINE\Software\Classes, and using both is exactly the same.

Most likely, it's just a permission issue. HKEY_CLASSES_ROOT is a system-wide key that, by default, is read-only to non-admins. To change it, you must run the commands in an elevated command prompt, or run regedit as administrator, otherwise the write will be virtualized to HKEY_CURRENT_USER, into the VirtualStore, or just fail with an "access denied".
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top