适用于公共机房环境


netsh advfirewall set allprofiles state off
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations /v ModRiskFileTypes /t REG_SZ /d .exe;.bat;.vbs /f gpupdate /force
reg delete "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /f & taskkill /f /im explorer.exe
start explorer.exe
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarSmallIcons /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d 15000 /f
net stop SDRSVC
sc config wuauserv start= disabled
net stop wuauserv
sc config MpsSvc start= disabled
net stop MpsSvc
sc config WSearch start= disabled
net stop WSearch
sc config Eventlog start= disabled
sc config Windefend start= disabled
net stop windefend
sc config iphlpsvc start= disabled
net stop iphlpsvc
sc config SSDPSRV start= disabled
net stop SSDPSRV
sc config seclogon start= disabled
sc config PolicyAgent start= disabled
sc config SENS start= disabled
sc config wersvc start= disabled
sc config TrkWks start= disabled
net stop trkwks
sc config bdesvc start= disabled
sc config HomeGroupProvider start= disabled
sc config HomeGroupListener start= disabled
sc config CSCService start= disabled
net stop CSCService
echo .--
echo .设置电源管理
powercfg -H OFF
powercfg -x -monitor-timeout-ac 300
powercfg -x -monitor-timeout-ac 300
powercfg -x -disk-timeout-ac 000
powercfg -x -disk-timeout-dc 000
powercfg -x -standby-timeout-ac 000
powercfg -x -standby-timeout-dc 000
echo .关闭屏保
REG ADD "HKEY_CURRENT_USER\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_SZ /d 0 /f
REG ADD "HKEY_CURRENT_USER\Control Panel\Desktop" /v "SCRNSAVE.EXE" /t REG_SZ /d "" /f
echo .更改桌面背景图为 ...
REG ADD "HKEY_CURRENT_USER\Control Panel\Desktop" /v "Wallpaper" /t REG_SZ /d "c:\windows\xmuPhoto\xmu5.jpg" /f
echo .-----------DONE------------------

01-22 13:13
查看更多