index.bat
@echo off color 9F mode con cols=70 lines=20 title 洛阳翼展科技电脑服务中心 www.80c.cc echo ----------------------------------------------------------------- echo. echo 翼展电脑服务中心 系统设置助手 %date:~0,4%%date:~5,2%%date:~8,2% www.80c.cc echo. echo 本程序会自动设置系统,自动安装软件,如弹出提示请确认。 echo. echo ----------------------------------------------------------------- echo.&echo // 正在激活系统,请手动关闭弹出的通知... mshta vbscript:createobject("sapi.spvoice").speak("开始激活系统!")(window.close) slmgr /ipk WNMTR-4C88C-JK8YV-HQ7T2-76DF9 slmgr /skms 1.80c.cc slmgr /ato echo.&echo // 设置桌面壁纸 mshta vbscript:createobject("sapi.spvoice").speak("系统激活成功,开始优化系统!")(window.close) copy %~dp0desk.jpg C:\desk.jpg >NUL reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /V WallPaper /D C:\desk.jpg /F >NUL cls&echo.&echo // 桌面图标大小32 reg add "HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop" /f /v "IconSize" /t REG_DWORD /d 32 cls&echo.&echo // 桌面显示我的电脑/网络/用户 reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {59031a47-3f72-44a7-89c5-5595fe6b30ee} /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {59031a47-3f72-44a7-89c5-5595fe6b30ee} /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {F02C1A0D-BE21-4350-88B0-7367FC96EF3C} /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v {F02C1A0D-BE21-4350-88B0-7367FC96EF3C} /d 0 /t REG_DWORD /f cls&echo.&echo // 设置C盘卷标 label C: 翼展系统>NUL cls&echo.&echo // 任务栏显示小图标,从不合并 reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v TaskbarSmallIcons /t REG_DWORD /d 1 /f reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v TaskbarGlomLevel /t REG_DWORD /d 1 /f cls&echo.&echo // 关闭任务栏预览窗口 REG add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ExtendedUIHoverTime /t REG_DWORD /d 10000 /f cls&echo.&echo // 关闭任务栏视图 REG add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /d 0 /t REG_DWORD /f cls&echo.&echo // 隐藏任务栏人脉图标 REG add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" /v "PeopleBand" /d 1 /t REG_DWORD /f cls&echo.&echo // 隐藏任务栏右键人脉项 REG add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "HidePeopleBar" /d 1 /t REG_DWORD /f cls&echo.&echo // 右下角显示所有图标 reg add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer /v EnableAutoTray /t REG_DWORD /d 0 /f cls&echo.&echo // 去除快捷方式小箭头和后缀 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" /v link /d "00000000" /t REG_BINARY /f del "%userprofile%\AppData\Local\iconcache.db" /f /q cls&echo.&echo // 去除快捷方式小箭头方法二 reg delete "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /f cls&echo.&echo // 设置成最佳性能/最佳外观 REG add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v VisualFXSetting /t REG_DWORD /d 2 /f cls&echo.&echo // 个性化颜色 0暗 1亮 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "AppsUseLightTheme" /t REG_DWORD /d 1 /f cls&echo.&echo // 个性化透明效果 0开 1关 reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v "EnableTransparency" /t REG_DWORD /d 1 /f cls&echo.&echo // 从右键上下文菜单中删除“使用Windows Defender扫描”(仅在WD被禁用时有效) reg delete "HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\EPP" /f reg delete "HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\EPP" /f reg delete "HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\EPP" /f cls&echo.&echo // 把此电脑改成我的电脑 rem reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /ve /t REG_SZ /d 我的电脑 /f cls&echo.&echo // 禁用索引服务 sc stop WMPNetworkSvc sc stop wsearch sc config WMPNetworkSvc start= disabled sc config wsearch start= disabled cls&echo.&echo // 禁止window发送错误报告 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "Disabled" /d 1 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PCHealth\ErrorReporting" /v "DoReport" /d 0 /t REG_DWORD /f cls&echo.&echo // 禁用"最近使用的项目" reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackProgs" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /d 0 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v "IconStreams" /t REG_BINARY /f reg add "HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify" /v "PastIconsStream" /t REG_BINARY /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /d 1 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoInstrumentation" /d 1 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /d 1 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "DisableSearchHistory" /d 1 /t REG_DWORD /f cls&echo.&echo // 关闭Windows Defender reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f cls&echo.&echo // 关闭Windows防火墙 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PrivateProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\PublicProfile" /v "EnableFirewall" /d 0 /t REG_DWORD /f cls&echo.&echo // 检查更新而不自动下载更新 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /d 2 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "ScheduledInstallDay" /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "ScheduledInstallTime" /d 3 /t REG_DWORD /f cls&echo.&echo // 启动电源计划:高性能/卓越性能 rem powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c powercfg.exe -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 cls&echo.&echo // 禁用休眠(删除休眠文件) POWERCFG -H OFF cls&echo.&echo // 设置关闭显示器时间:一直开着 powercfg -x -monitor-timeout-ac 0 rem -change -monitor-timeout-ac 1 cls&echo.&echo // 唤醒时需要密码 if /i "%SCHEME_GUID%"=="a1841308-3541-4fab-bc81-f71556f20b4a" (powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c) else powercfg.exe -setactive a1841308-3541-4fab-bc81-f71556f20b4a reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51" /v "ACSettingIndex" /d "1" /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power\PowerSettings\0e796bdb-100d-47d6-a2d5-f7d2daa51f51" /v "DCSettingIndex" /d "1" /t REG_DWORD /f cls&echo.&echo // 转移虚拟内存到非系统盘 reg add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management" /v "PagingFiles" /d "D:\pagefile.sys 1024 2048" /t REG_MULTI_SZ /f cls&echo.&echo // 关闭系统保护并删除还原点 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "RPSessionInterval" /d 0 /t REG_DWORD /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients" /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR" /d 1 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer" /v "LimitSystemRestoreCheckpointing" /d 1 /t REG_DWORD /f cls&echo.&echo // 关闭用户账户控制(UAC) rem reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /d 0 /t REG_DWORD /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /d 0 /t REG_DWORD /f cls&echo.&echo // 去除UAC小盾牌 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 77 /d "%systemroot%\system32\imageres.dll,197" /t reg_sz /f cls&echo.&echo // 去除文件图标盾牌 attrib -s -r -h "%userprofile%\AppData\Local\iconcache.db" cls&echo.&echo // 移除右键菜单中的SkyDrive Pro reg delete "HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\SPFS.ContextMenu" /f cls&echo.&echo // 禁用任务计划程序自启项 SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\Windows Error Reporting\QueueReporting" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\SkyDrive\Routine Maintenance Task" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\SkyDrive\Idle Sync Maintenance Task" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\Diagnosis\Scheduled" SCHTASKS /Change /DISABLE /TN "\Microsoft\Windows\Defrag\ScheduledDefrag" SCHTASKS /Change /DISABLE /TN "\GoogleUpdateTaskMachineUA" SCHTASKS /Change /DISABLE /TN "\GoogleUpdateTaskMachineCore" SCHTASKS /Change /DISABLE /TN "\Microsoft\Office\OfficeTelemetryAgentFallBack" SCHTASKS /Change /DISABLE /TN "\Microsoft\Office\OfficeTelemetryAgentLogOn" SCHTASKS /Change /DISABLE /TN "\AdobeAAMUpdater-1.0-%computername%-%username%" SCHTASKS /Change /DISABLE /TN "\Microsoft\Office\Office 15 Subscription Heartbeat" cls&echo.&echo // 禁止运行计算机自动维护计划 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\ScheduledDiagnostics" /v "EnabledExecution" /d 0 /t REG_DWORD /f cls&echo.&echo // 关闭程序兼容性助手 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisablePCA" /d 1 /t REG_DWORD /f sc stop PcaSvc sc config PcaSvc start= disabled cls&echo.&echo // 禁止一联网就打开浏览器 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\NetworkConnectivityStatusIndicator" /v "NoActiveProbe" /d 1 /t REG_DWORD /f cls&echo.&echo // 删除“这台电脑”7个文件夹 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{374DE290-123F-4565-9164-39C4925E467B}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f cls&echo.&echo // 显示受保护的系统文件 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL" /v "CheckedValue" /d 1 /t REG_DWORD /f cls&echo.&echo // 启用IE增强保护模式 reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Isolation" /d "PMEM" /t REG_SZ /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Isolation64Bit" /d 1 /t REG_DWORD /f cls&echo.&echo // 转移临时文件夹到D盘----------- rem reg add "HKEY_CURRENT_USER\Environment" /v "TMP" /d "D:\temp" /t REG_EXPAND_SZ /f rem reg add "HKEY_CURRENT_USER\Environment" /v "TEMP" /d "D:\temp" /t REG_EXPAND_SZ /f cls&echo.&echo // 更改IE默认下载目录----------- rem reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Default Download Directory" /d "D:\download" /t REG_SZ /f cls&echo.&echo // 关闭家庭组 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\HomeGroup" /v "DisableHomeGroup" /d 1 /t REG_DWORD /f cls&echo.&echo // 延迟启动 Superfetch 服务 sc config "SysMain" start= delayed-auto cls&echo.&echo // 关闭客户体验改善计划 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /d 0 /t REG_DWORD /f cls&echo.&echo // 隐藏操作中心任务栏托盘 reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "HideSCAHealth" /d 1 /t REG_DWORD /f cls&echo.&echo // 关闭自动播放 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoDriveTypeAutoRun" /d 255 /t REG_DWORD /f cls&echo.&echo // 设置窗口超窄边框 reg add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "PaddedBorderWidth" /d 0 /t REG_SZ /f cls&echo.&echo // 删除回收站右键固定到开始屏幕 reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\PintoStartScreen" /f cls&echo.&echo // 关闭Smartscreen应用筛选器 reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "SmartScreenEnabled" /d off /t REG_SZ /f cls&echo.&echo // 关机时强制杀后台不等待 reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" /v "WaitToKillServiceTimeout" /d 0 /t REG_SZ /f cls&echo.&echo // 关闭不必要的视觉动画效果 reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\DWM" /v "DisallowAnimations" /d 1 /t REG_dword /f reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "TurnOffSPIAnimations" /d 1 /t REG_dword /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics" /v "MinAnimate" /d 0 /t REG_SZ /f cls&echo.&echo // 任务栏日期显示“星期几” reg add "HKEY_CURRENT_USER\Control Panel\International" /v "sLongDate" /d "yyyy'年'M'月'd'日', dddd" /t REG_SZ /f reg add "HKEY_CURRENT_USER\Control Panel\International" /v "sShortDate" /d "yyyy/M/d/ddd" /t REG_SZ /f cls&echo.&echo // 禁用系统日志和内存转储 reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl" /v "LogEvent" /d 0 /t REG_dword /f reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl" /v "AutoReboot" /d 0 /t REG_dword /f reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Windows Error Reporting" /v "LoggingDisabled" /d 1 /t REG_dword /f wmic recoveros set DebugInfoType = 0 cls&echo.&echo // 禁用疑难解答和系统诊断服务 sc stop WdiSystemHost sc stop WdiServiceHost sc stop DPS sc config DPS start= disabled sc config WdiServiceHost start= disabled sc config WdiSystemHost start= disabled cls&echo.&echo // 打开IE请勿追踪功能(Do Not Track) reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "DoNotTrack" /d "1" /t REG_DWORD /f @rem 变量设置区--------------------------------------------------------- set pcname=EZ-%date:~0,4%%date:~5,2%%date:~8,2% set miaoshu=微软MSDN原版镜像系统,安装日期:%date:~0,4%年%date:~5,2%月%date:~8,2%日。 set StartPage=http://80c.cc/u/?baidu @rem 变量设置区--------------------------------------------------------- cls&echo.&echo // 删除我的电脑中的快速访问 //本注册表需要修改权限 reg add "HKEY_CLASSES_ROOT\CLSID\{679f85cb-0220-4080-b29b-5540cc05aab6}\ShellFolder" /v Attributes /t reg_sz /d dword:a0600000 /f cls&echo.&echo // 设置计算机名称和描述 reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ActiveComputerName" /v ComputerName /t reg_sz /d %pcname% /f reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName" /v ComputerName /t reg_sz /d %pcname% /f reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t reg_sz /d %pcname% /f reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters" /v Hostname /t reg_sz /d %pcname% /f reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\lanmanserver\Parameters" /v srvcomment /t reg_sz /d %miaoshu% /f cls&echo.&echo // 锁定浏览器主页 reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" /v "HomePage" /d "1" /t REG_DWORD /f reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main" /v "Start Page" /d "%StartPage%" /t REG_SZ /f cls&echo.&echo // 查询是否安装winrar,如果没有安装就判断系统位数选择安装 mshta vbscript:createobject("sapi.spvoice").speak("安装WINRAR!")(window.close) reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\|find /i "winrar" if %errorlevel%==0 (echo 已经安装winRAR) else (if /i %PROCESSOR_IDENTIFIER:~0,3%==x86 (start winrar590scp.exe /s) else (start winrar-x64-590scp.exe /s)) ping -n 3 127.0.0.1 >NUL cls&echo.&echo // 根据系统位数选择运行OEM设置程序 mshta vbscript:createobject("sapi.spvoice").speak("请设置OEM信息!")(window.close) cd / cd %~dp0 if /i %PROCESSOR_IDENTIFIER:~0,3%==x86 (start oem86.exe) else (start oem64.exe) cls&echo.&echo // 安装、修改谷歌浏览器快捷方式 cd / cd /d "C:\Users\Public\Desktop\" rem ren "Google Chrome.lnk" "Chrome.lnk" del /f /s /q "Google Chrome.lnk" for /f "tokens=2,*" %%i in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v "Desktop"') do ( set desk=%%j ) copy %~dp0chrome.lnk C:\Users\Public\Desktop\chrome.lnk ping -n 2 127.0.0.1 >NUL copy %~dp0VIP视频.lnk C:\Users\Public\Desktop\VIP视频.lnk echo //禁止升级开始------------------------------------------------- cls&echo.&echo // 结束进程 taskkill /im Windows10UpgraderApp.exe 2>nul del /f /q "%USERPROFILE%\Desktop\微软 Windows 10 易升.lnk" 2>nul del /f /q "%USERPROFILE%\Desktop\Windows 10 Update Assistant.lnk" 2>nul cls&echo.&echo // 添加防火墙规则 netsh advfirewall firewall add rule name="Block_Windows10UpgraderApp" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\Windows10UpgraderApp.exe" action=block netsh advfirewall firewall add rule name="Block_WinREBootApp32" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp32.exe" action=block netsh advfirewall firewall add rule name="Block_WinREBootApp64" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp64.exe" action=block netsh advfirewall firewall add rule name="Block_bootsect" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\bootsect.exe" action=block netsh advfirewall firewall add rule name="Block_DW20" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\DW20.EXE" action=block netsh advfirewall firewall add rule name="Block_DWTRIG20" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\DWTRIG20.EXE" action=block netsh advfirewall firewall add rule name="Block_GatherOSState" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\GatherOSState.EXE" action=block netsh advfirewall firewall add rule name="Block_GetCurrentRollback" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\GetCurrentRollback.EXE" action=block netsh advfirewall firewall add rule name="Block_HttpHelper" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\HttpHelper.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistant" dir=in program="%SYSTEMROOT%\UpdateAssistant\UpdateAssistant.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantCheck" dir=in program="%SYSTEMROOT%\UpdateAssistant\UpdateAssistantCheck.exe" action=block netsh advfirewall firewall add rule name="Block_Windows10Upgrade" dir=in program="%SYSTEMROOT%\UpdateAssistant\Windows10Upgrade.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\UpdateAssistant.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantCheckV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\UpdateAssistantCheck.exe" action=block netsh advfirewall firewall add rule name="Block_Windows10UpgradeV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\Windows10Upgrade.exe" action=block cls&echo.&echo // 设置ACL echo y|cacls C:\Windows\UpdateAssistant\*.exe /t /p everyone:n echo y|cacls C:\Windows10Upgrade\*.exe /t /p everyone:n cls&echo.&echo // 停止Windows Update服务 net stop wuauserv sc config wuauserv start= disabled cls&echo.&echo // 删除自动升级计划任务 schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistant" /f schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantAllUsersRun" /f schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantCalendarRun" /f schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantWakeupRun" /f cls&echo.&echo // 设置注册表 del /q /f %SYSTEMDRIVE%\NAU.reg 2>nul echo Windows Registry Editor Version 5.00 >> %SYSTEMDRIVE%\NAU.reg echo.>> %SYSTEMDRIVE%\NAU.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]>> %SYSTEMDRIVE%\NAU.reg echo "DoNotConnectToWindowsUpdateInternetLocations"=dword:00000001 >> %SYSTEMDRIVE%\NAU.reg echo.>> %SYSTEMDRIVE%\NAU.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]>> %SYSTEMDRIVE%\NAU.reg echo "NoAutoUpdate"=dword:00000001>> %SYSTEMDRIVE%\NAU.reg REG IMPORT %SYSTEMDRIVE%\NAU.reg del /q /f %SYSTEMDRIVE%\NAU.reg 2>nul echo //禁止升级结束------------------------------------------------- rem cls&echo.&echo // 强制更新组策略,重启EXPLOER RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters gpupdate /force taskkill /f /im explorer.exe start explorer cls&echo.&echo // 优化完成,弹出提示! mshta vbscript:createobject("sapi.spvoice").speak("系统优化完成,开始清理系统垃圾!")(window.close) mshta vbscript:CreateObject("Wscript.Shell").popup("系统优化完成!部分设置需要重启电脑后生效!",5,"翼展电脑服务中心",vbOKOnly)(window.close) echo //清理垃圾开始------------------------------------------------- cls&echo.&echo // 全盘删除Thumbs.db(缩略图缓存文件) for /f "delims=\" %%i in ('fsutil fsinfo drives^|find ""') do ( set drive_=%%i fsutil fsinfo drivetype !drive_:~0,2!|find "固定">nul && del /a /f /q /s !drive_:~0,2!\Thumbs.db ) cls&echo.&echo // 正在清理系统垃圾文件,请稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive%\recycled\*.* del /f /s /q %windir%\*.bak del /f /s /q %windir%\*.tmp del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /q %userprofile%\cookies\*.* del /f /q %userprofile%\recent\*.* del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*" del /f /s /q "%userprofile%\recent\*.*" del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*" del /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk" del /f /s /q %systemdrive%\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\*.* del /f /s /q %systemdrive%\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\*.* del /f /s /q %windir%\system32\dllcache\*.* del /f /s /q %SystemDrive%\AMD\*.* del /f /s /q %windir%\Intel\*.* del /f /s /q %windir%\NVIDIA\*.* del /f /s /q %windir%\Prog\*.* del /f /s /q %systemdrive%\Windows\Temp\*.* del /f /s /q %temp%\*.* cls&echo.&echo // 清理局域网共享痕迹 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\WorkgroupCrawler\Shares" /f cls&echo.&echo // 用户运行或操作历史记录 reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\Folder" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.txt" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rar" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.mp3" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.jpg" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ini" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.bmp" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.doc" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.eip" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.htm" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.ico" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.inf" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.gif" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.wav" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.xls" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs\.rm" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\*" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\mp3" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\rm" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\wav" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\bat" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\exe" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\eip" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\ico" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\htm" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\jpg" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{5E6AB780-7743-11CF-A12B-00AA004AE837}\Count" /va /f reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-006097DEACF9}\Count" /va /f reg delete "HKCU\Software\WinRAR\ArcHistory" /va /f reg delete "HKCU\Software\WinRAR\DialogEditHistory\ArcName" /va /f reg delete "HKCU\Software\WinRAR\DialogEditHistory\ExtrPath" /va /f reg delete "HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList" /va /f reg delete "HKCU\Software\Microsoft\Microsoft Management Console\Recent File List" /va /f reg delete "HKCU\Software\Microsoft\Office\11.0\PowerPoint\Recent File List" /va /f reg delete "HKCU\Software\Microsoft\Office\11.0\Excel\Recent File" /va /f reg delete "HKCU\Software\Microsoft\Office\11.0\Word\Data" /v "Settings" /f reg delete "HKCU\Software\VMware, Inc." /va /f cls&echo.&echo // 清理IE浏览历史的下拉列表 reg delete "HKCU\Software\Microsoft\Internet Explorer\TypedUrls" /va /f cls&echo.&echo // 清空回收站 for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do ( if exist %%a:\ ( del /f /s /q "%%a:\$recycle.bin\*.*" >nul 2>nul ) ) echo //清理垃圾结束------------------------------------------------- cls&echo.&echo // 全部完成,弹出提示! mshta vbscript:createobject("sapi.spvoice").speak("系统垃圾清理完成!建议注销系统或重启电脑!祝您使用愉快!")(window.close) mshta vbscript:CreateObject("Wscript.Shell").popup("系统垃圾清理完成!建议注销系统或重启电脑!祝您使用愉快!",15,"翼展电脑服务中心",vbOKOnly)(window.close) exit
hta调用exe
<script language="VBScript"> Set Hello = CreateObject("Wscript.Shell") Hello.Run "calc.exe" </script>
用批处理获取屏幕分辨率
@cc_on @if (0==0) @else @rem BAT 部分 @echo off cls setlocal set width= set height= for /f "tokens=1,2" %%a in ('cscript //nologo //e:jscript "%~dpnx0"') do (set width=%%a & set height=%%b) echo.&echo 屏幕宽度:%width% echo.&echo 屏幕高度:%height% echo.&cmd /k >nul pause goto :eof @end // JScript 部分 var screen = new ActiveXObject("HTMLFile").parentWindow.screen; WScript.Echo(screen.width + ' ' + screen.height);
禁用Windows10自动更新批处理
@echo off title 禁用Windows10自动更新 - 翼展电脑服务中心 mode con cols=43 lines=12 color 9F @rem 以管理员身份运行本程序 %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit cd /d "%~dp0" ::检测是否有cmdow.exe程序 if not exist cmdow.exe goto NoCmdow ::获取当前屏幕分辨率尺寸 for /f "tokens=2,10-11" %%a in ('cmdow /p') do ( if "%%a"=="0" set "WIDTH=%%b" & set "HEIGHT=%%c" ) ::获取当前CMD窗口尺寸 for /f "skip=1 tokens=10-11" %%a in ('cmdow @ /p') do ( set "@WIDTH=%%a" & set "@HEIGHT=%%b" ) ::计算局中位置 set /a Left=WIDTH/2,@Left=@WIDTH/2,Top=HEIGHT/2,@Top=@HEIGHT/2,L=Left-@Left,T=Top-@Top ::调整当前CMD窗口至屏幕局中 cmdow @ /top /mov %L% %T% ::开始正常程序 CLS @echo off title 翼展电脑服务中心 mode con cols=43 lines=12 color 9F echo ※※※※※※※※※※※※※※※※※※※※※ echo ※ ※ echo ※ 禁用Windows10自动更新 ※ echo ※ ※ echo ※※※※※※※※※※※※※※※※※※※※※ echo. pause CLS echo 结束进程 taskkill /im Windows10UpgraderApp.exe 2>nul del /f /q "%USERPROFILE%\Desktop\微软 Windows 10 易升.lnk" 2>nul del /f /q "%USERPROFILE%\Desktop\Windows 10 Update Assistant.lnk" 2>nul CLS echo 添加防火墙规则 netsh advfirewall firewall add rule name="Block_Windows10UpgraderApp" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\Windows10UpgraderApp.exe" action=block netsh advfirewall firewall add rule name="Block_WinREBootApp32" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp32.exe" action=block netsh advfirewall firewall add rule name="Block_WinREBootApp64" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp64.exe" action=block netsh advfirewall firewall add rule name="Block_bootsect" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\bootsect.exe" action=block netsh advfirewall firewall add rule name="Block_DW20" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\DW20.EXE" action=block netsh advfirewall firewall add rule name="Block_DWTRIG20" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\DWTRIG20.EXE" action=block netsh advfirewall firewall add rule name="Block_GatherOSState" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\GatherOSState.EXE" action=block netsh advfirewall firewall add rule name="Block_GetCurrentRollback" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\GetCurrentRollback.EXE" action=block netsh advfirewall firewall add rule name="Block_HttpHelper" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\HttpHelper.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistant" dir=in program="%SYSTEMROOT%\UpdateAssistant\UpdateAssistant.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantCheck" dir=in program="%SYSTEMROOT%\UpdateAssistant\UpdateAssistantCheck.exe" action=block netsh advfirewall firewall add rule name="Block_Windows10Upgrade" dir=in program="%SYSTEMROOT%\UpdateAssistant\Windows10Upgrade.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\UpdateAssistant.exe" action=block netsh advfirewall firewall add rule name="Block_UpdateAssistantCheckV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\UpdateAssistantCheck.exe" action=block netsh advfirewall firewall add rule name="Block_Windows10UpgradeV2" dir=in program="%SYSTEMROOT%\UpdateAssistantV2\Windows10Upgrade.exe" action=block CLS echo 设置ACL echo y|cacls C:\Windows\UpdateAssistant\*.exe /t /p everyone:n 2>nul echo y|cacls C:\Windows10Upgrade\*.exe /t /p everyone:n 2>nul echo. ping -n 3 127.0.0.1 >NUL CLS echo 停止Windows Update服务 net stop wuauserv sc config wuauserv start= disabled CLS echo 删除计划任务 schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistant" /f 2>nul schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantAllUsersRun" /f 2>nul schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantCalendarRun" /f 2>nul schtasks /delete /TN "\Microsoft\Windows\UpdateOrchestrator\UpdateAssistantWakeupRun" /f 2>nul CLS echo 设置注册表 del /q /f %SYSTEMDRIVE%\NAU.reg 2>nul echo Windows Registry Editor Version 5.00 >> %SYSTEMDRIVE%\NAU.reg echo.>> %SYSTEMDRIVE%\NAU.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]>> %SYSTEMDRIVE%\NAU.reg echo "DoNotConnectToWindowsUpdateInternetLocations"=dword:00000001 >> %SYSTEMDRIVE%\NAU.reg echo.>> %SYSTEMDRIVE%\NAU.reg echo [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]>> %SYSTEMDRIVE%\NAU.reg echo "NoAutoUpdate"=dword:00000001>> %SYSTEMDRIVE%\NAU.reg REG IMPORT %SYSTEMDRIVE%\NAU.reg del /q /f %SYSTEMDRIVE%\NAU.reg 2>nul CLS echo 任务结束,请立即应用阻止程序 echo. start Wub.exe&exit
grldr 文件内容
pxe detect configfile default 0 timeout 1 title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst errorcheck off configfile /menu.lst || configfile /MENU.LST configfile /boot/grub/menu.lst || configfile /BOOT/GRUB/MENU.LST configfile /grub/menu.lst || configfile /GRUB/MENU.LST find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst errorcheck on commandline title commandline commandline title reboot reboot title halt halt
Syslinux引导ISO
LABEL WIN7PE.iso LINUX memdisk INITRD /boot/wins/WIN7PE.iso APPEND iso raw
GRUB加载图形化背景
2020-4-27 乱云飞 评论(0) 浏览(448) 标签: GRUB menu.lst
#设置图形背景文件 gfxmenu (pd)/message
win10开机密码
2020-4-14 乱云飞 评论(0) 浏览(375) 标签: 开机密码 Windows密码 16位密码 系统密码
同时包含大写字母、小写字母、特殊符号和数字的16位密码!
示例:
!taoqYg5GSbF~yXd
PGq/pEm9h(NrZaSI
,McsG5j%#eKW6Zng
Dy07\~N.^(RQo&cK
FXUlo_fx+-!Z1T8W
Y\l^,DbWe#6X0P3g
l+qn7NT&~.jKah5I
pTy^YAH.uZ9W-47P
P1WQ~z&c.NIu-0Mi
F6%02*\-8P~Ou9LN
火绒恶意网址过滤规则
{ "ver": "5.0", "tag": "malurl_user", "data": [ { "id": 5, "power": true, "name": "自己收集", "rules": "*.360.com*\r*.360.cn*\r*.2345.com*\r" } ] }
http://bbs.huorong.cn/forum.php?mod=attachment&aid=NDkyODR8NmJlOWQxNTl8MTU4NDIzMzMyOHw3NDQ1M3wxNzg2Mg%3D%3D&ck=fe0710ae
VIP解析播放器代码备份
$vip_bofangqi = <<< vip_bofangqi <html> <head> <title>测试版播放器</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body scroll="no" style="margin:0px; overflow: hidden;" bgcolor=#fcfcfc> <script src="jquery.js"></script> <script language="javascript"> document.write("<iframe src="+Base64.decode("$vipurl_fan".split("").reverse().join(""))+" /v/ style='width:90%;height:100%;' scrolling=auto frameborder=0 align=center border=0 overflow:hidden; seamless;></iframe>"); </script> </body> </html> vip_bofangqi;