在 Win7 中为所有用户设置默认壁纸?

在 Win7 中为所有用户设置默认壁纸?

我正在寻找一种方法来标准化所有经过映像处理并部署给员工的 PC 上的默认壁纸。我们希望在映像处理过程中设置公司壁纸,但我们不想阻止最终用户在以后更改壁纸(如果他们想这样做的话)。我们使用 KACE 作为映像工具,以便我们可以运行任何标准批处理文件/vbscript/wscript 或应用程序。关键是,当对 PC 进行映像处理时,最终用户的配置文件尚未出现在 PC 上(所有映像处理任务都使用本地管理员帐户),因此我们需要一些东西来为将来登录的任何域用户设置默认壁纸。

我曾经考虑过使用 GPO,但是我不想使用,有两个原因是 1) 它将适用于所有用户,我只希望在用户获得新 PC 时将默认壁纸应用于用户;2) 如果壁纸是通过 GPO 设置的,我认为用户无法更改壁纸。

理想情况下,我们希望它的工作方式如下:

  1. PC 获得映像
  2. 最终用户首次通过 AD 登录 PC 并创建其本地配置文件
  3. 用户首次登录时,其壁纸预设为标准公司壁纸
  4. 如果最终用户想要更改壁纸,他们可以这样做

答案1

组策略首选项可能有您需要的内容。

壁纸设置与许多其他设置一样,都是在注册表中设置的。组策略首选项能够像标准 GP 模板一样设置注册表项。

  • 壁纸:HKEY_CURRENT_USER\Control Panel\Desktop\Wallpaper

首选项与标准组策略模板项不同,您可以使用首选项勾选复选框申请一次,不要重复申请。如果使用此选项,您可以一次性设置壁纸注册表值,然后用户可以更改它。

答案2

只需使用组策略。

用户配置\管理模板\桌面\桌面\桌面壁纸

指定在所有用户桌面上显示的桌面背景(“壁纸”)。

此设置允许您指定用户桌面上的壁纸,并阻止用户更改图像或其显示内容。您指定的壁纸可以存储在位图中(.bmp)或 JPEG(.jpg) 文件。

要使用此设置,请键入存储壁纸图像的文件的完全限定路径和名称。您可以键入本地路径,例如 C:\Windows\web\wallpaper\home.jpg 或 UNC 路径,例如 \Server\Share\Corp.jpg。如果用户登录时指定的文件不可用,则不会显示壁纸。用户无法指定替代壁纸。您还可以使用此设置来指定壁纸图像是居中、平铺还是拉伸。用户无法更改此规范。

来源:http://gpsearch.azurewebsites.net/#141

您还可以查看涵盖几个场景的详细指南:http://www.grouppolicy.biz/2011/03/best-practice-using-group-policy-to-configure-desktop-wallpaper-background/

答案3

简单的解决方案是替换默认的 Windows 背景,以防主题服务正在运行并且 Aero 已启用,它位于此处: C:\Windows\Web\Wallpaper\Windows\img0.jpg

不久前,我为 VDI 项目所做的工作是在 VM 映像中启用主题服务和 Aero,然后向默认用户添加以下注册表(请注意,我使用自定义图像作为背景)。当然建议先在实验室中进行测试:

[HKEY_USERS\.DEFAULT\Control Panel\Cursors]
@="Windows Aero"
"Scheme Source"=dword:00000002

[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"UserPreferencesMask"=hex:90,12,03,80,10,00,00,00
"WallPaper"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,25,00,\
  55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,00,41,00,70,00,70,\
  00,44,00,61,00,74,00,61,00,5c,00,52,00,6f,00,61,00,6d,00,69,00,6e,00,67,00,\
  5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,5c,00,57,00,69,\
  00,6e,00,64,00,6f,00,77,00,73,00,5c,00,54,00,68,00,65,00,6d,00,65,00,73,00,\
  5c,00,54,00,72,00,61,00,6e,00,73,00,63,00,6f,00,64,00,65,00,64,00,57,00,61,\
  00,6c,00,6c,00,70,00,61,00,70,00,65,00,72,00,2e,00,6a,00,70,00,67,00,00,00

[HKEY_USERS\.DEFAULT\Control Panel\Desktop\WindowMetrics]
"BorderWidth"="-15"
"CaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"CaptionHeight"="-315"
"CaptionWidth"="-315"
"IconFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
  00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"IconTitleWrap"="1"
"MenuFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
  00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"MenuHeight"="-285"
"MenuWidth"="-285"
"MessageFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"ScrollHeight"="-255"
"ScrollWidth"="-255"
"SmCaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,\
  00,00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"SmCaptionHeight"="-255"
"SmCaptionWidth"="-255"
"StatusFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
  00,00,00,01,00,00,05,00,53,00,65,00,67,00,6f,00,65,00,20,00,55,00,49,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"Shell Icon Size"="32"
"AppliedDPI"=dword:00000060
"PaddedBorderWidth"="-60"
"IconSpacing"="-1125"
"IconVerticalSpacing"="-1125"
"MinAnimate"="0"

[HKEY_USERS\.DEFAULT\Software\Microsoft\Internet Explorer\Desktop\General]
"WallpaperSource"="C:\\WINDOWS\\web\\wallpaper\\Windows\\img0-win7.jpg"

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers\Images]
"ID-1"="4XAFA8BUg/E0gouOpBhoYjAArADMdmBAvMkOcBAAAAAAAAAAAAAAAAAAAAAAAAgUAEDAAAAAAwEPbnFEAcVauR2b3NHA8AACAQAAv7r76UoGMxz2ZpCAAAA6DAAAAAQAAAAAAAAAAAAAAAAAAAAAXBQaA4GAkBwbAcHAzBAAAYBAGBQMAAAAAAAT80zUQAwVlJGA0AACAQAAv7r76goGMxTPTpCAAAw5UBAAAAQAAAAAAAAAAAAAAAAAAAAAXBQZAIGAAAgEAgFAxAAAAAAAMxTPTBBAXFETMBVQ+FDAAAEAIAABA8uvurjpswEP9MlKAAAAoTFAAAAABAAAAAAAAAAAAAAAAAAAAcFAhBAbAwGAwBQYAAHAlBgcAAAAYAQ2EEDAAAAAAwEP9MFEAcVauR2b3NHA8AACAQAAv7r76YKLMxTPTpCAAAQ6UBAAAAQAAAAAAAAAAAAAAAAAAAAAXBQaA4GAkBwbAcHAzBAAAYBAHSAAAABAv7bAAAAA1RAAAEHBAAQMTB1UFUdzVzpLbAxkXiAArwS+uGCAAAAEAAAAAsEAlBQeAoDAQBQSAQEAAAwEAAAAkBAAAk3AAAAFAAAAAMEAvBgbAQGApBAdAkGAvBgbAAAACBAAA4BAAAAc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AAAAAuWPHkW3bAS9eYWHnNJOmLZAAAALAAAA8BAGAAAAoCAuAwdAQGAwBAAAAAABAAAAAAAAAQdAAAAUAAAAAwSAUGA5BgOAYEANBAVAkEAEBAAAgAAAAgTAAAA7BANAEDADBgRAUDABBQRAADAtAgRAcDA1AQQA0CA0AAOAADA2AQLAIEAEBAOAcDAtAQNAkDADBwNAQEA5AgMAQDA4AQRAIEA5AQfAAAAAAwKAAAAKAAAAAgTAEGAtBQZAAAAIAAAAABAAAwVAkGAuBAZA8GA3BwcAAAAbAAAAoAAAAAAUBQeAAHAlBAAAMBAAAAAAAAAAAAAAAAAAAgFAAAA"
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\ThemeManager]
"ThemeActive"="1"
"LoadedBefore"="1"
"LastUserLangID"="1033"
"LastLoadedDPI"="96"
"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,54,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"

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Themes]
"CurrentTheme"="C:\\WINDOWS\\resources\\Themes\\aero.theme"

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\DWM]
"Composition"=dword:00000001
"ColorizationOpaqueBlend"=dword:00000000
"EnableAeroPeek"=dword:00000000
"AlwaysHibernateThumbnails"=dword:00000000
"CompositionPolicy"=dword:00000002
"ColorizationColor"=dword:6b74b8fc
"ColorizationColorBalance"=dword:00000008
"ColorizationAfterglow"=dword:6b74b8fc
"ColorizationAfterglowBalance"=dword:0000002b
"ColorizationBlurBalance"=dword:00000031
"ColorizationGlassReflectionIntensity"=dword:00000000

相关内容