REGEDIT4
;Windows 7 安全,优化,注册表批处理文件,注意务必是Windows7系统,请根据自己的要求修改,注释掉用 ;
;Author: LittleYu.COM 打造安全快速的 Windows 7 桌面系统
;http://support.microsoft.com/kb/979283/
;右键菜单中选择“工具栏”-“新建工具栏”, %UserProfile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch
;Windows 7 任务栏中恢复快速启动工具栏
;在此处打开命令窗口
[HKEY_CLASSES_ROOT\Drive\shell\cmd]
"Extended"=-
;在此处打开命令窗口
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
"Extended"=-
;删除快捷方式上的箭头
;但是会造成 计算机 右键 管理出错,程序加到任务栏也不行,不知M$怎么搞的
[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=-
;去掉快捷方式上的箭头, 右键管理 出错的补充措施
;%windir%\system32\mmc.exe /s %windir%\system32\compmgmt.msc
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command]
@=hex(2):25,77,69,6e,64,69,72,25,5c,73,79,73,74,65,6d,33,32,5c,6d,6d,63,2e,65,\
78,65,20,2f,73,20,25,77,69,6e,64,69,72,25,5c,73,79,73,74,65,6d,33,32,5c,63,\
6f,6d,70,6d,67,6d,74,2e,6d,73,63,00
;去掉创建时 快捷方式字
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"link"=hex:00,00,00,00
;安全设置中所有者,选中当前登陆用户名,替换子容器和对象的所有者,才能删除这个注册表项
;去除资源管理器CAB file显示
[-HKEY_CLASSES_ROOT\CLSID\{0CD7A5C0-9F37-11CE-AE65-08002B2E1262}]
;去除资源管理器ZIP file显示
[-HKEY_CLASSES_ROOT\CLSID\{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31}]
;桌面显示版本
[HKEY_CURRENT_USER\Control Panel\Desktop]
"PaintDesktopVersion"=dword:00000001
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"PaintDesktopVersion"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;显示所有文件、显示文件扩展名、使用传统文件夹
"Hidden"=dword:00000001
"HideFileExt"=dword:00000000
"ShowTypeOverlay"=dword:00000000
"SharingWizardOn"=dword:00000000
"ShowPreviewHandlers"=dword:00000000
;导航窗口-显示所有文件夹
;"NavPaneShowAllFolders"=dword:00000001
;导航窗口-自动扩展到当前文件夹
"NavPaneExpandToCurrentFolder"=dword:00000001
;一直显示菜单
"AlwaysShowMenus"=dword:00000001
;显示运行命令
"Start_ShowRun"=dword:00000001
;任务栏小图标
"TaskbarSmallIcons"=dword:00000001
;在计算机右键添加 上帝模式
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\GodMode\command]
@=hex(2):25,77,69,6e,64,69,72,25,5c,65,78,70,6c,6f,72,65,72,2e,65,78,65,20,73,\
68,65,6c,6c,3a,3a,3a,7b,45,44,37,42,41,34,37,30,2d,38,45,35,34,2d,34,36,35,\
45,2d,38,32,35,43,2d,39,39,37,31,32,30,34,33,45,30,31,43,7d,00
;文件管理器设置,按照时间倒排序
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams]
"Settings"=hex:08,00,00,00,04,00,00,00,01,00,00,00,00,77,7e,13,73,35,cf,11,ae,\
69,08,00,2b,2e,12,62,04,00,00,00,01,00,00,00,43,00,00,00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults]
"{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}"=hex:1c,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,f1,f1,f1,f1,14,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,d0,02,00,00,cc,02,00,00,31,53,50,53,05,\
d5,cd,d5,9c,2e,1b,10,93,97,08,00,2b,2c,f9,ae,83,00,00,00,22,00,00,00,00,47,\
00,72,00,6f,00,75,00,70,00,42,00,79,00,4b,00,65,00,79,00,3a,00,46,00,4d,00,\
54,00,49,00,44,00,00,00,08,00,00,00,4e,00,00,00,7b,00,30,00,30,00,30,00,30,\
00,30,00,30,00,30,00,30,00,2d,00,30,00,30,00,30,00,30,00,2d,00,30,00,30,00,\
30,00,30,00,2d,00,30,00,30,00,30,00,30,00,2d,00,30,00,30,00,30,00,30,00,30,\
00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,7d,00,00,00,00,00,33,00,00,00,\
22,00,00,00,00,47,00,72,00,6f,00,75,00,70,00,42,00,79,00,44,00,69,00,72,00,\
65,00,63,00,74,00,69,00,6f,00,6e,00,00,00,13,00,00,00,01,00,00,00,5b,00,00,\
00,0a,00,00,00,00,53,00,6f,00,72,00,74,00,00,00,42,00,00,00,1e,00,00,00,70,\
00,72,00,6f,00,70,00,34,00,32,00,39,00,34,00,39,00,36,00,37,00,32,00,39,00,\
35,00,00,00,00,00,1c,00,00,00,01,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,\
60,8c,9e,eb,ac,0e,00,00,00,01,00,00,00,25,00,00,00,14,00,00,00,00,47,00,72,\
00,6f,00,75,00,70,00,56,00,69,00,65,00,77,00,00,00,0b,00,00,00,00,00,00,00,\
1b,00,00,00,0a,00,00,00,00,4d,00,6f,00,64,00,65,00,00,00,13,00,00,00,04,00,\
00,00,23,00,00,00,12,00,00,00,00,49,00,63,00,6f,00,6e,00,53,00,69,00,7a,00,\
65,00,00,00,13,00,00,00,10,00,00,00,bd,00,00,00,10,00,00,00,00,43,00,6f,00,\
6c,00,49,00,6e,00,66,00,6f,00,00,00,42,00,00,00,1e,00,00,00,70,00,72,00,6f,\
00,70,00,34,00,32,00,39,00,34,00,39,00,36,00,37,00,32,00,39,00,35,00,00,00,\
00,00,78,00,00,00,fd,df,df,fd,10,00,00,00,00,00,00,00,00,00,00,00,04,00,00,\
00,18,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,\
27,01,00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0e,00,00,00,87,\
00,00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,04,00,00,00,78,00,\
00,00,30,f1,25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0c,00,00,00,50,00,00,\
00,2f,00,00,00,1e,00,00,00,00,47,00,72,00,6f,00,75,00,70,00,42,00,79,00,4b,\
00,65,00,79,00,3a,00,50,00,49,00,44,00,00,00,13,00,00,00,00,00,00,00,1f,00,\
00,00,0e,00,00,00,00,46,00,46,00,6c,00,61,00,67,00,73,00,00,00,13,00,00,00,\
01,00,20,41,31,00,00,00,20,00,00,00,00,4c,00,6f,00,67,00,69,00,63,00,61,00,\
6c,00,56,00,69,00,65,00,77,00,4d,00,6f,00,64,00,65,00,00,00,13,00,00,00,01,\
00,00,00,00,00,00,00,00,00,00,00
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN]
;允许本机的活动内容运行
"iexplore.exe"=dword:00000000
;象xp一样文件管理器 打开 FTP站点
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_INTERNET_SHELL_FOLDERS]
"iexplore.exe"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\Settings]
;允许CD的活动内容运行
"LOCALMACHINE_CD_UNLOCK"=dword:00000001
;关闭所有媒体和设备的自动播放
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers]
"DisableAutoplay"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
;桌面显示计算机
"{20D04FE0-3AEA-1069-A2D8-08002B30309D}"=dword:00000000
;桌面显示控制面板
"{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}"=dword:00000000
;桌面显示网络
"{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}"=dword:00000000
;浏览器设置
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TabbedBrowsing]
;浏览器选项卡由浏览器决定
"PopupsUseNewWindow"=dword:00000000
;不提示关闭多选项卡
"WarnOnClose"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
;加快关机速度
"WaitToKillServiceTimeout"="2000"
;关闭程序兼容性助理
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat]
"DisablePCA"=dword:00000001
;彻底删除Windows7的休眠功能,删除hiberfil.sys文件,节省好多空间
;立即生效用命令 : powercfg /h off
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power]
"HibernateEnabled"=dword:00000000
启用休眠功能,用1
;"HibernateEnabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]
;禁止 $C $D
"AutoShareServer"=dword:00000000
;禁止 $Admin
"AutoShareWks"=dword:00000000
;在局域网中隐藏自己
;"hidden"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
;不允许 SAM 帐户和共享的匿名枚举 $IPC (禁止匿名连接$IPC dword:00000002 SQL Server服务器上慎用)
"restrictanonymous"=dword:00000001
;不使用简单文件共享
"forceguest"=dword:00000000
;空白密码本地帐号只允许控制台登陆
;"limitblankpassworduse"=dword:00000001
;关闭 445 端口,重要
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters]
"SMBDeviceEnabled"=dword:00000000
;关闭一些不必要的服务,加快速度
;2自动,3手动,4禁用
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\XAudioService]
;"DisplayName"="XAudioService"
;"Description"="User-mode gate for Modem Speakerphone"
"Start"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\wscsvc]
;"DisplayName"="Security Center"
"Start"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CscService]
;"DisplayName"="Offline Files"
"Start"=dword:00000003
;如果计算机需要加入 Windows域,设置这个服务为自动
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\lmhosts]
;"DisplayName"="TCP/IP NetBIOS Helper"
"Start"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MDM]
;"DisplayName"="Machine Debug Manager"
;"Description"="支持对 Visual Studio 和脚本调试器进行本地和远程调试。如果该服务停止,调试器将不能正常工作。"
"Start"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\StiSvc]
;"DisplayName"="Windows Image Acquisition (WIA)"
"Start"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ShellHWDetection]
;"DisplayName"="Shell Hardware Detection"
"Start"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\TrkWks]
;"DisplayName"="Distributed Link Tracking Client"
"Start"=dword:00000003
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\WSearch]
;"DisplayName"="Windows Search"
"Start"=dword:00000004