我们公司有很多虚拟 Windows 7 实例。根据 VMWare 的建议,我们想自定义视觉效果以优化性能。我们发现可以通过 GPO 更改以下选项:
- 让 Windows 选择最适合我的电脑的选项
- 调整至最佳外观
- 调整以获得最佳性能
- 风俗
VMWare 希望我们选择“自定义”,然后在上述四个选项下方的复选框中应用非常具体的选项。我找到了一篇文章,介绍如何通过注册表手动执行此操作,但这些选项不起作用。GPO 本身也无法处理此问题。有人知道我们如何通过 GPO 将这些选项更改为我们需要的吗?
答案1
首先,看一下这个页面,这是一篇关于针对虚拟化对 Windows 7 进行性能调优的小博客文章。看起来可能会有帮助。
其次,微软支持的唯一实现方法是通过用户配置文件自定义,此处的 Microsoft KB 中记录了此过程。
第三,正如@Zordache 所建议的,设置注册表项是 GPP(组策略首选项)本机处理的功能,这可能是比 GPO 更好的方法。
最后,如果您坚持通过 GPO 执行此操作,最好的选择可能是使用设置相关注册表项的登录或启动脚本。在大多数情况下,它们与XP 中的关键值,但您应该能够自己进行 Google 搜索以获取您想要设置的精确选项的精确键值。
我想,如果链接失效了,我会在下面发布大多数设置的注册表项和值。从那里的第三个链接抓取。
[HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
;0 = Let Windows choose what’s best for my computer
;1 = Adjust for best appearance
;2 = Adjust for best performance
;3 = Custom
"VisualFXSetting"=dword:00000003
[HKCU\Software\Microsoft\Windows\CurrentVersion\ThemeManager]
;Use visual styles on windows and buttons (0=off 1=on)
"ThemeActive"="1"
[HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;Use common tasks in folders (0=off 1=on)
"WebView"=dword:00000001
;Show translucent selection rectangle (0=off 1=on)
"ListviewAlphaSelect"=dword:00000001
;Use drop shadows for icon labels on the desktop (0=off 1=on)
"ListviewShadow"=dword:00000001
;Use a background image for each folder type (0=off 1=on)
"ListviewWatermark"=dword:00000001
;Slide taskbar buttons (0=off 1=on)
"TaskbarAnimations"=dword:00000001
[HKCU\Control Panel\Desktop\WindowMetrics]
;Animate windows when minimizing and maximizing (0=off 1=on)
"MinAnimate"="1"
[HKCU\Control Panel\Desktop]
;Show window contents while dragging (0=off 1=on)
"DragFullWindows"="1"
;Smooth edges of screen fonts (0=off 2=on)
"FontSmoothing"="2"
;Smooth scroll list boxes
;Slide open combo boxes
;Fade or slide menus into view
;Show shadows under mouse pointer
;Fade or slide tooltips into view
;Fade out menu items after clicking
;Show shadows under menus
;(All off = 90,12,01,80 All on = 9e,3e,05,80)
"UserPreferencesMask"=hex:9e,3e,05,80
“UserPreferencesMask” 很棘手,因为它是所有设置的组合,根据您的选择,您将创建不同的十六进制。
答案2
如果有帮助的话,这是一个可以完成这项工作的 reg 文件。
它支持视觉风格和平滑
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"ShellState"=hex:24,00,00,00,38,28,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
01,00,00,00,12,00,00,00,00,00,00,00,32,00,00,00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ListviewAlphaSelect"=dword:00000000
"ListviewShadow"=dword:00000000
"TaskbarAnimations"=dword:00000000
"IconsOnly"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects]
"VisualFXSetting"=dword:00000003
[HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM]
"EnableAeroPeek"=dword:00000000
"CompositionPolicy"=dword:00000001
"AlwaysHibernateThumbnails"=dword:00000000
"Composition"=dword:00000001
"ColorizationOpaqueBlend"=dword:00000000
[HKEY_CURRENT_USER\Control Panel\Desktop]
"DragFullWindows"="0"
"FontSmoothing"="2"
"FontSmoothingGamma"=dword:00000000
"FontSmoothingOrientation"=dword:00000001
"FontSmoothingType"=dword:00000002
"UserPreferencesMask"=hex:98,12,03,80,10,00,00,00
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"MinAnimate"="0"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ThemeManager]
"ThemeActive"="1"
"LMVersion"="105"
"DllName"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,72,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,73,00,5c,\
00,74,00,68,00,65,00,6d,00,65,00,73,00,5c,00,41,00,65,00,72,00,6f,00,5c,00,\
41,00,65,00,72,00,6f,00,2e,00,6d,00,73,00,73,00,74,00,79,00,6c,00,65,00,73,\
00,00,00
"ColorName"="NormalColor"
"SizeName"="NormalSize"
答案3
此类条目的值类型应该是什么?DWORD 无法容纳所有指定的值。
"ShellState"=hex:24,00,00,00,38,28,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
01,00,00,00,12,00,00,00,00,00,00,00,32,00,00,00
"UserPreferencesMask"=hex:98,12,03,80,10,00,00,00
编辑:答案似乎是 REG_BINARY。我导入了有问题的注册表项(来自本文中的文本),然后在注册表中检查了该设置。