Win10下常用的修改注册表Tips

0x00 前言

  1. Win10快速右键添加“在此处打开CMD”以及安装了ubuntu子系统或者Kali子系统的情况下,右键添加“在此处打开Bash”
  2. 解决Win10连接IPsec VPN报错问题。

0x01 Win10右键添加“在此处打开CMD”

保存以下代码为cmd.reg,然后点击运行即可

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\open_cmd]
@="Open CMD Here"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\open_cmd\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Directory\Background\shell\open_cmd]
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_cmd]
@="在此处打开CMD窗口"
"HasLUAShield"=""
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_cmd\command]
@="cmd.exe /s /k pushd \"%V\""
[-HKEY_CLASSES_ROOT\Drive\shell\open_cmd]
[HKEY_CLASSES_ROOT\Drive\shell\open_cmd]
@="Open CMD Here"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\open_cmd\command]

0x02 Win10右键添加“在此处打开Bash”

ps:前提是安装了Win10的ubuntu子系统或者Kali子系统

保存以下代码为bash.reg,然后点击运行即可

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\open_bash]
@="Open Bash Here"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\open_bash\command]
@="bash.exe"
[-HKEY_CLASSES_ROOT\Directory\Background\shell\open_bash]
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_bash]
@="在此处打开Bash窗口"
"HasLUAShield"=""
"Icon"="bash.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\open_bash\command]
@="bash.exe"
[-HKEY_CLASSES_ROOT\Drive\shell\open_bash]
[HKEY_CLASSES_ROOT\Drive\shell\open_bash]
@="Open Bash Here"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\open_bash\command]

0x03 Win10解决IPsecVPN连接报错问题

ps:适用于:Windows Vista, 7, 8, 10, and 2008 Server:
报错信息

无法建立计算机与 VPN服务器之间的网络连接,因为远程服务器未响应。这可能是因为未将计算机与远程服务器之间的某种网络设备(如防火墙、NAT、路由器等)配置为容许 VPN 连接。请与管理员或服务供给商联系以确定哪种设备可能产生此问题

解决办法
保存如下代码为ipsec.reg,然后双击运行即可

1
2
3
Windows Registry Editor Version 5.00   
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent]
"AssumeUDPEncapsulationContextOnSendRule"=dword:00000002