|
|
我是将批处理放到启动里了,电脑启动是自动执行
@echo off
Rem ================= 禁用诊断服务
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\System\ControlSet001\Services\DPS" /v "Start" /t REG_DWORD /d "4" /f
Rem ================= 禁用NTFS链接跟踪服务
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\System\ControlSet001\Services\TrkWks" /v "Start" /t REG_DWORD /d "3" /f
Rem ================= 隐藏资源管理器导航窗口中的网络
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xb0940064" /f
Rem ================= 隐藏资源管理器导航窗口中的库
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xb090010d" /f
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xb090010d" /f
Rem ================= 隐藏资源管理器导航窗口中的收藏夹
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xa0c00100" /f
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{323CA680-C24D-4099-B94D-446DD2D7249E}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xa0c00100" /f
Rem ================= 隐藏资源管理器导航窗口中的可移动设备
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xb0100000" /f
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xb0100000" /f
Rem ================= 隐藏资源管理器导航窗口中的快速访问
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\Software\Classes\CLSID\{679f85cb-0220-4080-b29b-5540cc05aab6}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xa0500000" /f
C:\Windows\Setup\Files\Tools.Ins\PowerRun_x64.exe "Reg.exe" add "HKEY_LOCAL_MACHINE\Software\Classes\WOW6432Node\CLSID\{679f85cb-0220-4080-b29b-5540cc05aab6}\ShellFolder" /v "Attributes" /t REG_DWORD /d "0xa0500000" /f
Rem ================= 删除该文件
del /f /s /q "%0"
|
|