一般我在新装完系统之后重要作下面的事情:显示文件扩展名,关闭简单共享、系统还原、远程协助错误报告等等,在桌面上显示我的文档和我的电脑,添加自己喜欢的字体等等,这个批处理我放进了安装光盘中的guionce里面,感觉很不错:D (XP用)
- [[bat]]
- @echo off
- color a
- echo.
- echo 正在开启文件扩展名...
- reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d "0" /f>nul
- echo.
- echo 正在关闭简单共享...
- reg add "HKLM\SYSTEM\ControlSet001\Control\Lsa" /v "forceguest" /t REG_DWORD /d "0" /f>nul & REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v "forceguest" /t REG_DWORD /d "0" /f>nul
- echo.
- echo 正在关闭系统还原...
- reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "DisableSR" /t REG_DWORD /d "1" /f>nul
- echo.
- echo 正在关闭远程协助...
- reg add "HKLM\SYSTEM\ControlSet001\Control\Terminal Server" /v "fAllowToGetHelp" /t REG_DWORD /d "0" /f>nul
- reg add "HKLM\SYSTEM\ControlSet001\Control\Terminal Server" /v "fEnableSalem" /t REG_DWORD /d "0" /f>nul
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fAllowToGetHelp" /t REG_DWORD /d "0" /f>nul
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v "fEnableSalem" /t REG_DWORD /d "0" /f>nul
- echo.
- echo 正在关闭事件日志和内存调试信息...
- reg add "HKLM\SYSTEM\ControlSet001\Control\CrashControl" /v "LogEvent" /t REG_DWORD /d "0" /f>nul
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "LogEvent" /t REG_DWORD /d "0" /f>nul
- reg add "HKLM\SYSTEM\ControlSet001\Control\CrashControl" /v "CrashDumpEnabled" /t REG_DWORD /d "0" /f>nul
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\CrashControl" /v "CrashDumpEnabled" /t REG_DWORD /d "0" /f>nul
- echo.
- echo 正在关闭错误报告...
- reg add "HKLM\SOFTWARE\Microsoft\PCHealth\ErrorReporting" /v "DoReport" /t REG_DWORD /d "0" /f >nul
- echo.
- echo 正在打开资源窗口的状态栏...
- reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "StatusBarOther" /t REG_DWORD /d "1" /f>nul
- echo.
- echo 正在桌面上显示我的电脑和我的文档
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d "0" /f>nul
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{450D8FBA-AD25-11D0-98A8-0800361B1103}" /t REG_DWORD /d "0" /f>nul
- ::这段是字体,大家自己改
- copy e:\myfonts\bird*.ttf %windir%\fonts
- echo.
- echo 正在注册BirdMan Bold字体...
- REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Birdman Bold (TrueType)" /d "Birdman Bold.ttf">nul
- echo 正在注册BirdMan Light字体...
- REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "Birdman Light (TrueType)" /d "Birdman Light.ttf">nul
- ::字体设置结束
- echo.
- echo 结束了.:) ... 按任意键退出...
- pause>nul && exit
复制代码
|