随着Windows 10在未来几年获得更大的市场份额(market share),您可以肯定会有很多方法来自定义或调整注册表!很多视觉和幕后更改只能通过注册表完成。
在本文中,我将向您展示 10 个很酷的注册表黑客,您可以使用它们来自定义您的Windows 10安装。我相信将来会有更多的自定义,所以请随时发表评论,让我们知道您发现的任何好的自定义。
显然,在开始之前,请确保执行Windows和注册表的备份。
自定义桌面上下文菜单
一个不错的注册表技巧(registry hack)是将您自己的快捷方式添加到桌面右键单击(desktop right-click) 上下文菜单(context menu)。默认情况下,它没有太多内容,但如果您碰巧经常在桌面上,您可以添加一些指向您喜欢的程序的链接。
首先,转到以下注册表项(registry key):
Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\
现在您必须在shell(shell)键下添加两个键。第一个应该是您要用于快捷方式的名称,第二个将称为command。上面,我创建了一个名为Notepad的工具,然后在Notepad下创建了命令(command)。最后,双击右侧窗格中的(right-hand pane)Default键并将值更改为 notepad.exe,例如。
现在,当您在桌面上单击鼠标右键时,您会看到记事本(Notepad),单击它会打开记事本(Notepad)!好的!
桌面图标间距
感谢Microsoft摆脱了自定义桌面的选项!曾经如此简单的事情现在变成了注册表黑客(registry hack)!为了更改桌面图标间距(desktop icon spacing)(水平和垂直),您必须在注册表中编辑两个值。在下面查看我们之前的帖子。
(Change Desktop Icon Spacing)在Windows 10中(Windows 10)更改桌面图标间距
单击到最后一个活动窗口
这可能是我最喜欢的Windows 10小技巧之一。您是否曾经打开过同一个应用程序的多个窗口,例如Word 或 Excel(Word or Excel),然后不得不点击进入不同的应用程序,例如Chrome?
但是,当您单击任务栏中的图标返回Word 或 Excel(Word or Excel)时,它不会直接将您带到您之前所在的窗口,它只会向您显示所有窗口的小缩略图(thumbnail image)。有了这个技巧,当你点击打开多个实例的程序的图标时,它会直接带你到最后一个活动窗口。
当然,您可以只按ALT + TAB组合键,但如果您最终总是使用鼠标而不是键盘,这很有用。导航(Navigate)到以下键:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
继续创建一个名为LastActiveClick 的新 32 位(LastActiveClick )Dword,并将其值设为 1。
禁用用户帐户控制
用户帐户控制(User Account Control)是Windows 10中的另一头野兽,您甚至无法通过上面看到的传统GUI 界面完全禁用它。(GUI interface)要真正将其关闭,您必须前往注册表或编辑本地安全策略(security policy)。但是,在Windows 10中禁用(Windows 10)UAC会产生一些意想不到的后果,您可以在下面完整阅读。
OTT 解释 – (OTT Explains – UAC)Windows 10中的 UAC (用户帐户控制(User Account Control))
确认文件删除对话框
Windows 10中另一个缺失的功能是我们都非常熟悉的确认文件删除对话框。(confirm file)我从来没有注意到太多,但是当我第一次在Windows 10中删除一个文件时,我震惊地看到该文件直接进入了回收站(recycle bin)。我相信我最终会习惯它,但如果你真的想要它,这里是如何让它回来。导航到以下注册表项(registry key):
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
继续在 Policies 下创建一个名为Explorer的新密钥。然后创建一个新的DWORD值并将其命名为ConfirmFileDelete。如果您想要删除文件对话框(delete file dialog),请将值更改为 1,如果您不想要,则更改为0。甜的!
注册业主
即使它是如此古老和无用,我仍然喜欢能够将Windows中的注册所有者更改为我喜欢的任何内容。不要问我为什么,这只是Windows早期的一些奇怪的极客。幸运(Luckily)的是,Microsoft仍然将值存储在注册表项(registry key)中,您可以将其更改为您喜欢的任何内容。
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
在 CurrentVersion 下,只需找到RegisteredOwner并更改它。另外,请注意有一个RegisteredOrganization ,您实际上可以在 about (RegisteredOrganization)Windows 对话框(Windows dialog)中放置两条自定义行。您甚至如何在Windows 10中访问该对话框?单击(Click)开始并键入(Start and type) winver。
画图桌面版
如果您像我一样在多台计算机和虚拟机上运行多个Windows 10副本,最好将(Windows 10)Windows 版本(Windows version)自动绘制到桌面上。Windows 10有一个注册表项(registry key),可让您自动将其添加到桌面。导航(Navigate)到以下键:
HKEY_CURRENT_USER\Control Panel\Desktop
在Desktop键下找到PaintDesktopVersion并将值从0更改为1。下次登录时,您将看到如上所示的Windows 10版本号和内部版本号。(version number)
边框宽度
如果您不喜欢桌面上所有窗口的边框大小(border size),则可以通过以下键更改它:
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
找到名为BorderWidth的键并将其更改为0到50之间的任何值。它默认为 -15,这是微软(Microsoft)采用的一些奇数编号方案,我并没有真正理解。幸运的是,这个注册表设置可以只使用 0 到 50,而不是疯狂的负数。
获取 Windows 7 音量控制
如果您不是Windows 10中新的水平(Windows 10)音量控制(volume control)的忠实粉丝,那么您会很高兴知道您可以再次获得垂直音量控制,就像在Windows 7中一样。导航到以下键:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion
在当前版本下创建一个名为 MTCUVC 的新密钥,然后在MTCUVC内创建一个名为EnableMtcUvc的新(EnableMtcUvc)DWORD 值(DWORD value)。将其保留为 0。
从资源管理器中删除 OneDrive
最后,如果您不使用(t use) OneDrive作为云存储,那么让它一直显示在资源管理器(Explorer)中的意义何在?幸运的是,有一个简单的注册表黑客(registry hack)可以轻松地将其从资源管理器中删除。(Explorer)
导航到以下键:
Computer\HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
将System.IsPinnedToNameSpaceTree(System.IsPinnedToNameSpaceTree)的值更改 为 0 并重新启动计算机。而已!
如果您使用的是Windows 10并且对修改注册表感到满意,请随意使用上述选项并根据自己的喜好自定义Windows 10。享受!
10 Awesome Windows 10 Registry Hacks You Might Not Know
As Windows 10 gains a bigger market share over the next few years, уou can bе sure thеre are going to be a lot of ways to customize or tweak the regіstry! A lot of visual and under-the-hoоd changes can only be done via the registry.
In this article, I’ll show you 10 cool registry hacks you can use to customize your Windows 10 install. I’m sure there will be a lot more customizations in the future, so feel free to post a comment and let us know any good ones that you find.
Obviously, before you start, make sure you perform a backup of Windows and your registry.
Customize Desktop Context Menu
One nice registry hack is adding your own shortcuts to the desktop right-click context menu. By default, it doesn’t have much there, but if you happen to be on the desktop a lot, you can add some links to your favorite programs.
First, go to the following registry key:
Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\
Now you have to add two keys under the shell key. The first one should be the name that you want to use for the shortcut and the second will be called command. Above, I created one called Notepad and then created command underneath Notepad. Finally, double-click on the Default key in the right-hand pane and change the value to notepad.exe, for example.
Now when you right-click on the desktop, you’ll see Notepad and clicking on that will open Notepad! Nice!
Desktop Icon Spacing
Thanks Microsoft for getting rid of the options to customize our desktop! What used to be so easy is now a registry hack! In order to change the desktop icon spacing (horizontal and vertical), you have to edit two values in the registry. Check out our previous post below.
Change Desktop Icon Spacing in Windows 10
Click to Last Active Window
This is probably one of my favorite little hacks for Windows 10. Have you ever had several windows of the same application open, like Word or Excel, and then had to click over to a different application like Chrome?
However, when you click on the icon in the taskbar to get back to Word or Excel, instead of taking you straight to the window you were on previously, it just shows you a small thumbnail image of all the windows. With this hack, when you click on the icon for a program with multiple instances open, it will take you straight to the last active window.
Of course, you could just press the ALT + TAB key combo, but this is useful if you always end up using the mouse rather than the keyboard. Navigate to the following key:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Go ahead and create a new 32-bit Dword called LastActiveClick and give it a value of 1.
Disable User Account Control
User Account Control is a different beast in Windows 10 and you can’t even fully disable it via the traditional GUI interface you see above. To actually turn it off, you have to go to the registry or edit the local security policy. However, there are a few unexpected consequences to disabling UAC in Windows 10, which you can read in full below.
OTT Explains – UAC (User Account Control) in Windows 10
Confirm File Delete Dialog
Another missing feature in Windows 10 is the confirm file delete dialog we were all so familiar with. I never noticed it too much, but when I first deleted a file in Windows 10, I was shocked to see that the file just went straight to the recycle bin. I’m sure I’ll get used to it eventually, but if you really want it back, here’s how to get it back. Navigate to the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Go ahead and create a new key under Policies called Explorer. Then create a new DWORD value and give it a name of ConfirmFileDelete. Change the value to 1 if you want the delete file dialog and 0 if you don’t want it. Sweet!
Registered Owner
Even though it’s so old and useless, I still like having the ability to change the registered owner in Windows to whatever I like. Don’t ask me why, it’s just some weird geek thing from the early days of Windows. Luckily, Microsoft still has the value stored in a registry key which you can change to whatever you like.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Under CurrentVersion, just find RegisteredOwner and change it. Also, note there is a RegisteredOrganization, you could could actually put two custom lines in the about Windows dialog. How do you even get to that dialog in Windows 10? Click on Start and type winver.
Paint Desktop Version
If you’re running several copies of Windows 10 on multiple computers and in virtual machines like I am, it’s nice to have the Windows version painted onto the desktop automatically. Windows 10 has a registry key that enables you to add this to your desktop automatically. Navigate to the following key:
HKEY_CURRENT_USER\Control Panel\Desktop
Find PaintDesktopVersion under the Desktop key and change the value from 0 to 1. Next time you login, you’ll see the Windows 10 version number and build number as shown above.
Border Width
If you don’t like the border size around all your windows while on the desktop, then you can change it by going to the following key:
HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
Find the key called BorderWidth and change it to any value between 0 and 50. It’s defaulted to -15, which is some odd numbering scheme employed by Microsoft which I don’t really get. Luckily, you can just use 0 to 50 for this registry setting instead of the crazy negative numbers.
Get Windows 7 Volume Control
If you’re not a big fan of the new horizontal volume control in Windows 10, then you’ll be happy to know that you can get the vertical one again, just like in Windows 7. Navigate to the following key:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion
Create a new key under current version called MTCUVC and then create a new DWORD value inside of MTCUVC called EnableMtcUvc. Leave it with a value of 0.
Remove OneDrive from Explorer
Lastly, if you don’t use OneDrive for your cloud storage, then what’s the point of having it show up in Explorer all the time? Luckily, there’s a simple registry hack that will remove it from Explorer easily.
Navigate to the following key:
Computer\HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}
Change the value of System.IsPinnedToNameSpaceTree to 0 and restart your computer. That’s it!
If you’re using Windows 10 and feel comfortable modifying the registry, feel free to play around with the options above and customize Windows 10 to your delight. Enjoy!