一键设置批处理:把Windows Server 2008打造成Workstation(转)
估计很多小白和我一样用Windows Server 2008做自己的桌面OS,因为传说Server 2008“比Vista SP1快”,“内核和Vista SP1完全一样”,“可以通过Vista的OEM激活”,在MSDN Blog(上 下)上看到有人总结了一下安装完毕Server 2008之后改造Workstation的步骤,自己改写了一个批处理版本,双击直接搞定。
核心内容:
- 安装Windows特性:Telnet客户端、桌面体验、无线管理
- 开启Theme、Windows Audio、Superfetch
- 禁用关机理由,登录Ctrl+Alt+Del
- CPU优化为前台程序而不是后台服务(可能需要重启)
- 开启各种视觉效果
- 关闭自动播放
- 再不关闭IE Sec的情况下,把Internet区域的安全设定为Medium-high
代码采用GPL 2开源 -_-!:Windows Server 2008 转换为Workstation批处理设置工具 V1.0
:By est, electronicstar@126.com
:2008-3-12
:可以自行在services.msc里启用Windows Image Acquisition(WIA)增加对摄像头的支持
:需要手动自己关闭DEP
:需要手动在GpEdit.msc里修改 Users 组可以关机
:需要手动开启“防火墙屏蔽程序时通知我”
:某些情况下需要手动编辑磁盘权限,给Users组加上可读写
:可以使用powercfg -h on来开启休眠
:需要手动更改主题为Windows Aero
:至于DX9, DX10, Virtualization, 驱动, 音视频解码包需要用户手动安装
:导入注册表设置
more +40 < "%~f0" > "%temp%\tmp.reg"
regedit /s "%temp%\tmp.reg"
:安装telnet命令、桌面体验、无线支持
pkgmgr /iu:TelnetClient;DesktopExperience;WirelessNetworking
:启用桌面主题
sc config Themes start= auto
sc start Themes
:启用Windows声音
sc config MMCSS start= auto
sc start MMCSS
sc config AudioEndpointBuilder start= auto
sc start AudioEndpointBuilder
sc config Audiosrv start= auto
sc start Audiosrv
:启用Superfetch
sc config SysMain start= auto
sc start SysMain
:结束批处理设置
goto:eof
Windows Registry Editor Version 5.00
;禁用关机理由
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{EEB3B0FE-E195-40F9-B7E5-6A13CDFDC255}Machine\Software\Policies\Microsoft\Windows NT\Reliability]
"ShutdownReasonOn"=dword:00000000
"ShutdownReasonUI"=-
;禁用登录Ctrl+Alt+Del
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"disablecad"=dword:00000001
;允许Superfetch
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000003
"EnableSuperfetch"=dword:00000003
;CPU优化为Programs而不是Backgrond Services
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl]
"Win32PrioritySeparation"=dword:00000026
;开启视觉效果
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
"VisualFXSetting"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ComboBoxAnimation]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ControlAnimations]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DragFullWindows]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DWMEnabled]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewAlphaSelect]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewShadow]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListviewWatermark]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\MenuAnimation]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TaskbarAnimations]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\Themes]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ThumbnailsOrIcon]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TransparentGlass]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\WebView]
"DefaultValue"=dword:00000000
"DefaultApplied"=dword:00000001
;关闭自动播放
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers]
"DisableAutoplay"=dword:00000001
:在不关闭IE Sec的情况下把Internet安全级别调整为Medium-High
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"2004"=dword:00000000
"2001"=dword:00000000
"CurrentLevel"=dword:00011500
"1001"=dword:00000001
"1200"=dword:00000000
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1407"=dword:00000001
"1601"=dword:00000000
"1604"=dword:00000000
"1606"=dword:00000000
"1608"=dword:00000000
"1800"=dword:00000001
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000001
"1A00"=dword:00020000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000003
"1A05"=dword:00000001
"1A06"=dword:00000000
"1C00"=dword:00010000
"1E05"=dword:00020000
"2000"=dword:00000000
"2100"=dword:00000000
"2101"=dword:00000000
"2300"=dword:00000001
"2400"=dword:00000000
"2401"=dword:00000000
"2402"=dword:00000000
"2600"=dword:00000000
"2007"=dword:00010000