首页 > 其他分享 >注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC

注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC

时间:2023-05-05 13:32:18浏览次数:67  
标签:settings Windows HKEY 注册表 HKU HKLM HKCC HKCR HKCU


What Do HKCR, HKCU, HKLM, HKU, and HKCC Mean? (Registry Root Keys)

By Rich

 

Note: To get a better understanding of Windows Registry basics, read this guide.

If you’re somewhat familiar with the Windows Registry, you’ve no doubt seen references to HKCR, HKCU, HKLM, HKU, and HKCC. These abbreviations represent the five root keys in the Windows Registry:

  • HKEY_CLASSES_ROOT (HKCR)
  • HKEY_CURRENT_USER (HKCU)
  • HKEY_LOCAL_MACHINE (HKLM)
  • HKEY_USERS (HKU)
  • HKEY_CURRENT_CONFIG (HKCC)

You can view these by opening the Windows Registry Editor (Click Start, type regedit, and pres Enter):

注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC_Windows

This guide explains the basics on what each root key represents and what settings you can expect to find under each. I wrote this guide to help clarify the fundamentals of the registry and provide insight into what each root key does.

 

HKEY_CLASSES_ROOT

HKEY_CLASSES_ROOT or HKCR is an alias (i.e. a reference) to HKEY_LOCAL_MACHINE\Software\Classes. A separate root key is added mainly so software developers have direct access to this data without dipping in to HKLM. HKCR contains data related to applications, shortcuts, and file extension associations. When we open HKEY_CLASSES_ROOT, we see:

注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC_Windows_02

The Shell subkey stores actions for each file type.

HKEY_CURRENT_USER

HKEY_CURRENT_USER or HKCU is built from %UserProfile%\ntuser.dat (to view this file, you’ll need to enable viewing of protected system files.) HKCU contains data specific to each user with a log on account on your PC. Here’s what we see when we expand HKCU:

注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC_注册表_03

A little digging through this key yields data like application events (i.e. program sounds), keyboard layout, mapped network drives, application preferences (Software), and other user-specific settings.

HKEY_LOCAL_MACHINE

HKEY_LOCAL_MACHINE or HKLM hardware and software configuration data that is “global” or pertinent to the PC regardless of which user is logged on. Here’s what HKLM looks like:

注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC_Click_04

System Contains subkeys and settings related to Windows startup.

HKEY_USERS

HKEY_USERS or HKU is the home of group policy settings. Any Group Policy based rules are stored under this root key. When you log on, these settings are copied over to HKCU.

When you expand HKU, you’ll see a .DEFAULT folder as well as entries for each user/log on ID. The .DEFAULT folder contains the base settings for new users when they first logon, S-1-5-21- folders contain settings for user IDs:

注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC_Software_05

You can cross reference these IDs with HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ where you’ll find the same list of SIDs. Click on one of the S-1-5-21- folders, and check out the ProfileImagePath key’s data value to see the owner of the profile.

注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC_RootKey_06

HKEY_CURRENT_CONFIG

注册表RootKey简写:HKCR, HKCU, HKLM, HKU, and HKCC_Windows_07

HKEY_CURRENT_CONFIG or HKCC contains the current hardware profile settings. Like HKCR, HKCC is an alias to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001 (Note: If your PC has multiple hardware profiles, they are numbered ControlSet002, ControlSet003 etc.)

Well that’s about it for the basics of the Windows Registry; now you know the foundation of the root keys, I’m hoping the registry seems a little less daunting?

What did I miss? Let us know in the comments.

标签:settings,Windows,HKEY,注册表,HKU,HKLM,HKCC,HKCR,HKCU
From: https://blog.51cto.com/u_15408625/6245505

相关文章

  • C#操作注册表
    //创建注册表下并加载信息。publicboolregistryCreateAndSet(stringFillName,stringName,stringValue){try{//引用HKEY_CURRENT_USERRegistryKeykey=Registry.C......
  • 注册表解决Office自动升级问题
    Office自动升级问题问题:当我早上准备打开PPT准备毕业论文中期答辩时,意外发现Office应用打不开反而跳转到MicrosoftOffice365的升级页面(该升级页面最终会显示错误代码),无法通过office内部应用来关闭自动升级。解决:1.Win+R键输入regedit回车打开注册表2.在文件下方......
  • bat循环获取注册表下表项
    在网上搜索了一下用bat读取一个注册表里面的表项名称,如果一个注册表里面后很多子项目名称,那我们这么才能全部读取出来了?但是网上大家看到的根本不是自己的要的,还不能用报错。。。下面亲测,直接通过cmd命令循环赋值显示表项名称。1、先读取一个注册表路径,显示里面所有的值。2、......
  • 利用注册表限制TLS加密算法
    SChannelSSP是window实现TLS、DTLS和SSL协议的版本。不同的Windows发行版支持不同的协议版本启动注册表编辑器(Regedt32.exe),并找到以下注册表项:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers例如TripleDES168子项是D......
  • 使用注册表编辑win10鼠标右键菜单,详细解释(右键文件夹、文件以及右键空白区域下三种情
    win10鼠标右键菜单管理:右键文件夹、文件以及右键空白区域三种情形将鼠标右键菜单分文下三种情况:  右键空白区域(分为桌面空白区域和其他文件夹下空白区域)  右键文件夹  右键文件(分为所有文件和某类型文件两种)1.通过修改注册表项来修改右键菜单无论右键什么位置,弹......
  • 开机启动(注册表方式)
    HKEY_CURRENT_USER\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\RunHKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\RunHKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\RunHKEY_LOCAL_MACHINE\S......
  • 由于链接地址长度过长引起的”HTTP Error 400. The request URL is invalid”错误解决
    网站中,设计了一个批量搜索的功能,用户可以输入多个关键词进行批量查询搜索,但不出意外的话还是出意外了,有些用户可能会输入N多个关键词,我为了性能等考虑,会限制个数,比如每次批量查询仅限50个以内,但还是有意外发生,有些关键词可能会很长,即会引发”HTTPError400.TherequestURLisi......
  • revit专用卸载工具,完全彻底卸载删除干净revit各种残留注册表和文件的方法和步骤。
    revit专用卸载工具,完全彻底卸载删除干净revit各种残留注册表和文件的方法和步骤。如何卸载revit呢?有很多同学想把revit卸载后重新安装,但是发现revit安装到一半就失败了或者显示revit已安装或者安装未完成,大多数情况下其实是revit没有被卸载干净。还有的同学会遇到安装错误1625,然后......
  • 设计模式(三十)----综合应用-自定义Spring框架-自定义Spring IOC-定义bean、注册表相
    现要对下面的配置文件进行解析,并自定义Spring框架的IOC对涉及到的对象进行管理。<?xmlversion="1.0"encoding="UTF-8"?><beans>  <beanid="userService"class="com.itheima.service.impl.UserServiceImpl">    <propertyname=&qu......
  • vred专用卸载工具,完全彻底卸载删除干净vred各种残留注册表和文件的方法和步骤。
    vred专用卸载工具,完全彻底卸载删除干净vred各种残留注册表和文件的方法和步骤。如何卸载vred呢?有很多同学想把vred卸载后重新安装,但是发现vred安装到一半就失败了或者显示v......