Linux运维 ·

注册表优化Windows Server 2016 大全

注意:优化有风险,请做好备份,本站所有注册表本人亲测通过。(运维天涯)并且这些注册表最少使用7年以上,并且在上千台PC电脑上使用过,但是服务器上的注册表只是在我个人电脑上使用4年,暂时没有发现任何问题.~~~

Windows Registry Editor Version 5.00
;--------------------------------------------------------------------
;适用系统:Windows7_X64/Win2008_X64/Win2008R2_X64/Win2012_X64/
;--------------------------------------------------------------------
;运维天涯
;Made By 阿伟
;E-Mail:Hanktod@sina.com
;博客 http://www.fooher.com
;QQ:2016571396  2016.05.01
;------------------------------

;(一)、;关闭设置一些不常用的服务模块

;----------------------------------------------------------------
;Routing adn Remote Access(路由服务)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteAccess]
"Start"=dword:00000004
;----------------------------------------------------------------

;关闭Remote Registry 远程注册表服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RemoteRegistry]
"Start"=dword:00000004
[HHKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\RemoteRegistry]
"Start"=dword:00000004
;----------------------------------------------------------------

;Windows Remote Managerment (Windows 远程管理服务)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinRM]
"Start"=dword:00000004

;Distributed Transaction Coordinator(分布式传输协调服务)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSDTC]
"Start"=dword:00000003

;启用音频服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AudioEndpointBuilder]
"Start"=dword:00000002

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Audiosrv]
"Start"=dword:00000002
;----------------------------------------------------------------

;;UPnP Device Host (通用即插即用设备宿主服务)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\upnphost]
"Start"=dword:00000003

;Functiion Discovery Resource Publication(资源发布服务)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\FDResPub]
"Start"=dword:00000003

;关闭SSDP Discovery服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SSDPSRV]
"Start"=dword:00000003

;关闭 Windows Image Acquisition (WIA)服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\stisvc]
"Start"=dword:00000004

; Apache2.2的80端口被win7的System PID=4的进程占用的解决方法关闭IIS服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP]
"Start"=dword:00000004

;关闭NVIDIA显卡服务
;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nvsvc]
;"Start"=dword:00000004

;打开主题服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Themes]
"Start"=dword:00000002
;----------------------------------------------------------------

;关闭时间校对服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time]
"Start"=dword:00000004
;----------------------------------------------------------------

;关闭 Secondary Logon 服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\seclogon]
"Start"=dword:00000004
;----------------------------------------------------------------

;关闭 IPsec Policy Agent 服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PolicyAgent]
"Start"=dword:00000004
;----------------------------------------------------------------

;关闭 System Event Notification Service 服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SENS]
"Start"=dword:00000004
;----------------------------------------------------------------

;关闭 Windows Image Acquisition (WIA) 服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\stisvc]
"Start"=dword:00000004
;----------------------------------------------------------------

;关闭Windows Error Reporting Service 报告错误服务
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting]
"Disabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\WerSvc]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WerSvc]
"Start"=dword:00000004
;----------------------------------------------------------------

;关闭自动播放硬件事件提供通知。
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ShellHWDetection]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ShellHWDetection]
"Start"=dword:00000004

;关闭 USB 设备的自动播放
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"AutoRun"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\USBSTOR]
"AutoRun"=dword:00000001
;----------------------------------------------------------------

;关闭系统自动调试功能,提高系统运行速度
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"="0"
;加快程序出错处理速度,关闭系统自动调试功能,提高系统性能
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"="0"

; NetBIOS TCP/IP NetBIOS Helper 名称解析的支持。
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LmHosts]
"Start"=dword:00000002
;----------------------------------------------------------------

;禁止启动 SkyDrive 的文件状态图标插件程序
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\KPSSVC]
"Start"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KPSSVC]
"Start"=dword:00000002

;关闭帮助中心服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\helpsvc] 
"Start"=dword:00000003

;关闭系统还原服务
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventSystem] 
"Start"=dword:00000004

;调整Windows 时间同步服务为手动
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\W32Time]
"Start"=dword:00000003

;IPV6协议
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\iphlpsvc]
"Start"=dword:00000004

;关闭 IPv6
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters]
"DisabledComponents"=dword:000000ff

;win10设置简体中文-美式键盘
[HKEY_USERS\S-1-5-21-1072324049-3603729967-946358131-500\Keyboard Layout\Preload]
"1"="00000409"
"2"="00000804"
"3"="d0010804"
[HKEY_USERS\S-1-5-21-1072324049-3603729967-946358131-500\Control Panel\Input Method\Hot Keys\00000104]
"Key Modifiers"=hex:06,c0,00,00
"Target IME"=hex:11,04,01,e0
"Virtual Key"=hex:30,00,00,00
[HKEY_USERS\S-1-5-21-1072324049-3603729967-946358131-500\Keyboard Layout\Toggle]
"Language Hotkey"="2"
"Hotkey"="2"
"Layout Hotkey"="3"
[HKEY_USERS\S-1-5-21-1072324049-3603729967-946358131-500\Control Panel\International\User Profile\en-US]
"CachedLanguageName"="@Winlangdb.dll,-1121"
"0409:00000409"=dword:00000001
[-HKEY_USERS\S-1-5-21-1072324049-3603729967-946358131-500\Control Panel\International\User Profile\zh-Hans-CN]

;关闭事件跟踪程序
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability]
"ShutdownReasonOn"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows NT\Reliability]
"ShutdownReasonOn"=dword:00000000

;移除快捷方式图标小箭头和移除快捷方式图标加了一个白色方块
[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=""
[HKEY_CLASSES_ROOT\piffile]
"IsShortcut"=""
;桌面小箭头
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
"29"="C:\\Windows\\SYSTEM32\\TransParent.ico"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons]
"29"="C:\\Windows\\SYSTEM32\\TransParent.ico"

;删除图标“快捷方式”的字样
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer]
"Link"=hex:00,00,00,00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
;始终显示系统托盘图标
"EnableAutoTray"=dword:00000000
;创建快捷方式时。不加快捷方式字样的手后缀
"link"=hex(3):00,00,00,00

;现在将给文件夹的右键菜单中添加“在这里打开命令行窗口”的命令

[HKEY_CLASSES_ROOT\Folder\shell\cmd]
;@="在这里打开命令行窗口"
@="@shell32.dll,-8506"
"NoWorkingDirectory"=""
"Extended"=""
"Icon"="C:\\Windows\\System32\\cmd.exe,0"

[HKEY_CLASSES_ROOT\Folder\shell\cmd\command]
;@="cmd.exe /k cd %1"
@="cmd.exe /s /k pushd \"%V\""
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;管理员取得所有权限====
;(1).在上下文菜单中增加"管理员取得所有权限"的菜单项(需要Shift键)
;--------------------------------------------------------------------
;--------------------------------------------------------------------
;适用系统:Vista/2008/Windows7/2008r2
;--------------------------------------------------------------------
;--------------------------------------------------------------------
;(1).在上下文菜单中增加"管理员取得所有权限"的菜单项(需要Shift键)
;--------------------------------------------------------------------
[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理员取得所有权限"
"Extended"=""
"NoWorkingDirectory"=""
"icon"="C:\\Windows\\System32\\B.ico"

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\exefile\shell\runas2]
@="管理员取得所有权限"
"Extended"=""
"NoWorkingDirectory"=""
"icon"="C:\\Windows\\System32\\B.ico"

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="管理员取得所有权限"
"Extended"=""
"NoWorkingDirectory"=""
"icon"="C:\\Windows\\System32\\B.ico"
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

;在任务栏右下角时间 显示星期几
[HKEY_CURRENT_USER\Control Panel\International]
"sShortDate"="yyyy/M/d dddd"
"sLongDate"="yyyy'年'M'月'd'日' dddd"

;--------------------------------------------------------------
;修改计算机名、OEM 信息、主机号、自动登录====
;--------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
"ComputerName"="SERVER"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
"ComputerName"="SERVER"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters]
"NV Hostname"="Server"
"Hostname"="Server"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
;自动登录
;"AutoAdminLogon"="1"
;用户名
"DefaultUserName"="Administrator"
;密码
;"DefaultPassword"="fooher.com"
;主机号 计算机名字
;"DefaultDomainName"="SERVER"
"IgnoreShiftOverride"="1"
"ForceAutoLogon"="1"
"AutoLogonCount"=dword:0001869f
"ShutdownWithoutLogon"="0"
;"AltDefaultDomainName"="SERVER"
;保持网络连接
"KeepRasConnections"="1"
;检查是否显示上次登录用户名
"DontDisplayLastUserName"=dword:00000001
;windows资源管理器崩溃、死机处理方法解析
;优化用户界面组件,当发生异常后自动刷新,防止系统“死机” 当资源管理器崩溃时则自动重启资源管理器
"AutoRestartShell"=dword:00000001
"DisableCAD"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"RegisteredOrganization"="http://WWW.Fooher.com"
"RegisteredOwner"="运维天涯"
"SourcePath"="C:\\WINDOWS"
"PathName"="C:\\WINDOWS"

;显示桌面系统图标 计算机 网络 控制面板   回收站 用户文件夹 IE
[HKEY_USERS\S-1-5-21-1072324049-3603729967-946358131-500\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
;IE
"{B416D21B-3B22-B6D4-BBD3-BBD452DB3D5B}"=dword:00000001
;计算机
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
;控制面板
"{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}"=dword:00000000
;回收站
"{645FF040-5081-101B-9F08-00AA002F954E}"=dword:00000000
;网络
"{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}"=dword:00000000
;用户文件夹 Administrator
"{59031a47-3f72-44a7-89c5-5595fe6b30ee}"=dword:00000001

;----------------优化时间校准设置 foooher.com
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers]
@="2"
"1"="time.windows.com"
"2"="time.nist.gov"
"0"="ntp.sjtu.edu.cn"
"3"="133.100.11.8"
"4"="210.72.145.44"
"5"="203.117.180.36"
"6"="131.107.1.10"
"7"="time.asia.apple.com"
"8"="64.236.96.53"
"9"="130.149.17.21"
"10"="66.92.68.246"
"11"="www.freebsd.org"
"12"="18.145.0.30"
"13"="clock.via.net"
"14"="137.92.140.80"
"15"="133.100.9.2"
"16"="128.118.46.3"
"17"="ntp.nasa.gov"
"18"="129.7.1.66"
"19"="ntp.sjtu.edu.cn"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config]
"MaxNegPhaseCorrection"=dword:bbf81e00
"MaxPosPhaseCorrection"=dword:bbf81e00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient]
;修改注册表以设置同步周期 十进制604800秒(默认7天:00093a80)改为86400(每一天:00015180)同步一次,修改组策略,放行udp123端口
"SpecialPollInterval"=dword:00015180

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;用户账户控制(UAC)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorUser"=dword:00000003
"DelayedDesktopSwitchTimeout"=dword:00000000
"DisableAutomaticRestartSignOn"=dword:00000001
"DSCAutomationHostEnabled"=dword:00000002
"EnableCursorSuppression"=dword:00000001
"EnableInstallerDetection"=dword:00000001
"EnableSecureUIAPaths"=dword:00000001
"EnableUIADesktopToggle"=dword:00000000
"EnableVirtualization"=dword:00000001
"ValidateAdminCodeSignatures"=dword:00000000
"disablecad"=dword:00000001
"dontdisplaylastusername"=dword:00000001
"legalnoticecaption"=""
"legalnoticetext"=""
"scforceoption"=dword:00000000
"shutdownwithoutlogon"=dword:00000000
"undockwithoutlogon"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorUser"=dword:00000003
"DelayedDesktopSwitchTimeout"=dword:00000000
"DisableAutomaticRestartSignOn"=dword:00000001
"DSCAutomationHostEnabled"=dword:00000002
"EnableCursorSuppression"=dword:00000001
"EnableInstallerDetection"=dword:00000001
"EnableSecureUIAPaths"=dword:00000001
"EnableUIADesktopToggle"=dword:00000000
"EnableVirtualization"=dword:00000001
"ValidateAdminCodeSignatures"=dword:00000000
"disablecad"=dword:00000001
"dontdisplaylastusername"=dword:00000001
"legalnoticecaption"=""
"legalnoticetext"=""
"scforceoption"=dword:00000000
"shutdownwithoutlogon"=dword:00000000

;禁止用户账户控制UAC 0 = 禁用 1(默认值)= 启用
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000001

;应用尝试情况时始终不要通知我(如果值为dword:00000001通知)
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"PromptOnSecureDesktop"=dword:00000000
"undockwithoutlogon"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System]
"PromptOnSecureDesktop"=dword:00000000
"undockwithoutlogon"=dword:00000001

;用户帐户控制: 以管理员批准模式运行所有管理员
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000

;用户帐户控制: 对内置管理员帐户使用管理审批模式-Administrator可以打应用商店
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"FilterAdministratorToken"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies\System]
"FilterAdministratorToken"=dword:00000001

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;删除图标快捷方式的字样
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer]
"Link"=hex:00,00,00,00

;在新建的快捷方式中移除“链接到”前缀
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"Link"=hex:00,00,00,00

; 设置经典小图标的控制面板
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel]
; 设置经典小图标 1 大图标0
"AllItemsIconView"=dword:00000000
"StartupPage"=dword:00000001

;记事本状态栏 换行 坐标
[HKEY_CURRENT_USER\Software\Microsoft\Notepad]
"StatusBar"=dword:00000001
"Wrap"=dword:00000001
"iWindowPosX"=dword:00000140
"iWindowPosY"=dword:0000002e
"lfFaceName"="微软雅黑"
"iPointSize"=dword:00000069
;后来加的不知道能不能用
;度量单位=1为厘米3为Picas;自动选择字词;
"WordSel"=dword:00000000
"Units"=dword:00000003

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CrashControl]
;取消将事件写入系统日志
"LogEvent"=dword:00000000
;取消发送管理警报
"SendAlert"=dword:00000000
;取消自动重新启动
"AutoReboot"=dword:00000000
;取消写入调试信息无
"CrashDumpEnabled"=dword:00000000

;开机不自动运行服务器管理器
[HKEY_CURRENT_USER\Software\Microsoft\ServerManager]
"DoNotOpenServerManagerAtLogon"=dword:00000001

#打开资源管理器时是“此电脑”而不是“快速访问”
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"LaunchTo"=dword:00000001

;去除搜索按钮,如何你想恢复dword:00000000改为dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
"EnableProactive"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search]
"SearchboxTaskbarMode"=dword:00000000

;关闭通知中心,系统部署完进桌面在关闭成功率高
[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer]
"DisableNotificationCenter"=dword:00000001

;运维天涯
;Made By 阿伟
;E-Mail:Hanktod@sina.com
;博客 http://www.fooher.com
;QQ:2016571396  2016.05.01

 

评论已关闭