Software microsoft windows currentversion policies system wallpaper

C помощью групповых политик вы можете задать одинаковый корпоративный рисунок рабочего стола (обои) и экрана входа в Windows на всех компьютерах домена.

Содержание:

  • Создаем групповую политику с обоями для рабочего стола
  • Изменить обои рабочего стола через реестр и GPO
  • Изменить фоновую картинку экрана блокировки Windows с помощью GPO

Вам понадобится файл в формате JPEG с картинкой, которую вы хотите использовать в качестве обоев. Разрешение картинки должно соответствуют минимальному разрешению, которое используется на мониторах в вашей компании (например, 1280 x 1024). Такая картинка будет размещена в центре и растянута на мониторах с большим разрешением.

Вы можете предварительно скопировать JPEG файл на компьютеры пользователей через GPO, или поместить ее в сетевую папку доступную все пользователям. В нашем примере мы будет использовать для хранения обоев каталог SYSVOL на контроллере домена. Этот каталог автоматически реплицируется между всеми DC, что позволит уменьшить нагрузку на WAN каналы при получении клиентами файла с рисунком. Например, в моем случае UNC путь к файлу с фоновым рисунком
\\winitpro.loc\SYSVOL\winitpro.loc\scripts\Screen\corp_wallpaper.jpg
.

картинка для корпоративных обоев wallpaper - gpo

Проверьте, что у всех пользователей и компьютеров домена есть права на чтение этого файла в SYSVOL (в NTFS разрешениях файла должно присуствовать право Read для группы Authenticated Users).

Создаем групповую политику с обоями для рабочего стола

Теперь нужно создать групповую политику, которая задает этот рисунок в качестве обоев рабочего стола.

  1. Откройте консоль управления доменными GPO (
    GPMC.msc
    );
  2. Создайте новую групповую политику gpoSetCorpWallpaper и назначьте ее на нужный OU с пользователями (в нашем примере мы хотим, чтобы политика применялась на все компьютеры и сервера домена, поэтому мы повесим политику на корень домена). Отредактируйте политику;
    GPO для установки обоев рабочего стола в Windows

  3. Перейдите в секцию секции User Configuration -> Policies -> Administrative Templates -> Desktop -> Desktop (Конфигурация пользователя -> Административные шаблоны -> Рабочий стол -> Рабочий стол);
  4. Включите политику Enable Active Desktop (Включить Active Desktop);
    Включить Active Desktop

  5. Затем включите политику Desktop Wallpaper (Фоновые рисунки рабочего стола). В параметрах политики укажите UNC путь к файлу с рисунком и выберите стиль фонового рисунка (Wallpaper Style) — Fill (Заполнение);
    Политика с настройками обоев рабочего стола

    Совет. Как правило, стиль фонового рисунка “Fill” выглядит нормально почти на всех разрешениях экрана.

  6. Обновите настройки групповых политик на компьютере пользователя и перезапустите процесс explorer.exe (можно просто выполнить
    logoff
    ) и проверьте, что на рабочем столе отображаются новые обои.

    Задать рисунок рабочего стола через групповую политику

Если групповая политика не применяется на компьютерах, выполнить диагностику на конкретном клиенте с помощью команды gpresult (убедить что ваша политика отображается в секции Applied Group Policy Objects).

Чтобы запретить пользователям менять фоновый рисунок рабочего стола, включите политику Prevent Changing Desktop Background (Запрет изменения фона рабочего стола) в разделе User Configuration -> Administrative Templates -> Control Panel -> Personalization.

Запрет на смену обоев рабочего стола

С помощью WMI фильтров GPO можно нацелить политику так, чтобы она применялась только к рабочим станциям пользователей с Windows 10 и 11:

Select * from Win32_OperatingSystem WHERE Version like "10.%" AND ProductType= "1"

В Windows 10 и 11 встречается проблема при обновлении файла с обоями рабочего стола в исходном каталоге. Если путь к картинке не изменился, в Windows не происходит обновление кэша, соответственно пользователь будет видеть старую картинку, даже если вы обновили ее в каталоге на сервере.

Поэтому для Windows 10/11 можно добавить дополнительный логоф скрипт GPO, который очищает кэш изображения при выходе пользователя из системы. Это может быть bat файл Clear_wallpaper_cache.bat с кодом:

del /F /S /Q %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper
del /F /S /Q %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Themes\CachedFiles\*.*

bat файл для очистка кэша wallpaper в windows 10

Изменить обои рабочего стола через реестр и GPO

Вы можете настроить фонового рисунка рабочего стола через реестр. Путь к файлу обоев хранится в строковом (REG_SZ) параметре реестра Wallpaper в ветке HKEY_CURRENT_USER\Control Panel\Desktop\ или HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System. В этом параметре нужно указать UNC путь к вашей картинке.

В этой же ветке реестра параметром WallpaperStyle (REG_SZ) задается положение изображения на рабочем столе. Для растягивания изображения используется значение 2.

Если вы хотите запретить пользователям менять фон рабочего стола, создайте в ветке реестра HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop параметр «NoChangingWallPaper»=dword:00000001

Эти настройки реестра можно распространить на компьютеры пользователей с помощью Group Policy Preferences. Для этого перейдите откройте GPO, перейдите в раздел User Configuration -> Preferences -> Windows Settings и создайте два параметра реестра с режимом Update.

групповые политики - установить картинку фона рабочего стола через реестр

Item level Targeting в GPP позволяет более точно назначить политику обоев на клиентов. Например, можно применить фоновый рисунок рабочего стола только для определенных пользователей (добавленных в группу безопасности AD) и компьютеров с Windows 10.

Откройте свойства парам реестра в политике, на вкладке Common включите Item level Targeting, нажмите кнопку Targeting. Настройте два правила “the operating system is XXX” и “the user is member of the security group XXX”.

wallpaper gpo targeting - тонкое нацеливание на клиентов

Это позволить вам применять разные обои рабочего стола для разных групп категорий сотрудников.

Изменить фоновую картинку экрана блокировки Windows с помощью GPO

Групповые политики позволяют изменить картинку на экране входа в Windows. Для этого нужно настроить политику Force a specific default lock screen and logon image в разделе GPO Computer Configuration -> Policies -> Administrative Templates -> Control Panel -> Personalization. Включите политику и укажите путь к файлу с изображением.

Однако такая политика применяется только к Windows 10/11 с редакциями Enterprise и Education, а также к Windows Server.

GPO - изменить фоновую картинику на экране входа в Windows

Вы можете изменить фоновую картинку на экране входа для Windows 10 Professional через реестр.

  1. Откройтесвою GPO иперейдитевComputer Configuration -> Preferences -> Windows Settings -> Registry;
  2. Создайте следующие параметры в разделе реестра HKEY_LOCAL_MACHINE по пути SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP:
    Имя Действие Тип Значение
    LockScreenImagePath Replace REG_SZ Полный путь к файлу с картинкой (можно UNC путь)
    LockScreenImageStatus Create REG_DWORD 1
    LockScreenImageUrl Replace REG_SZ Полный путь к файлу с картинкой (можно UNC путь)
    PersonalizationCSP Create REG_DWORD 1

    Изменить фоновую картинку экрана входа в Windows 10 Pro

  3. Перезагрузите компьютер и проверьте, что на экране входа в Windows (и на экране блокировки) отображается заданный вами фон.
    Новая картинка на экране входа и блокировки Windows Pro

Несмотря на то, что и Windows 11 и Windows 10 без особенных проблем можно пользоваться без активации, при этом есть некоторые ограничения, в частности — использование параметров персонализации. Чаще всего начинающих пользователей беспокоит невозможность изменить обои, но это легко решаемо.

В этой простой инструкции подробно о способах установить свои обои без активации, когда в параметрах персонализации сообщается «Для персонализации компьютера необходимо активировать Windows». На близкую тему: Бесплатные живые обои рабочего стола Windows 11 и Windows 10.

Установка своих обоев рабочего стола в обход параметров персонализации

Для того, чтобы установить свои обои, не используя при этом параметры персонализации Windows 11 или Windows 10 есть несколько способов. Самый простой из них — контекстное меню проводника:

  1. В проводнике или на рабочем столе нажмите правой кнопкой мыши по файлу фото или другой картинки.
  2. Выберите пункт «Сделать фоном рабочего стола».
    Установка обоев из контекстного меню изображения

Обычно, другие методы изменения обоев даже не требуются, но они существуют.

Вы можете установить обои рабочего стола используя стандартные приложения Windows 11 и Windows 10 или с помощью редактора реестра и локальной групповой политики.

Изменение фона рабочего стола без активации с помощью встроенных приложений

Если открыть изображение в стандартном приложении «Фотографии», то в меню вы найдете пункт «Установить как», где можно будет установить текущую картинку в качестве обоев рабочего стола или фона экрана блокировки.

Установка обоев рабочего стола в приложении Фотографии

Графический редактор Paint новой версии в главном меню имеет опцию «Сделать фоном рабочего стола».

Установка обоев рабочего стола в Paint

Раскрыв этот пункт, вы можете выбрать стиль заполнения: заливка, плитка или по центру и, в результате, текущий рисунок из Paint будет установлен в качестве обоев.

В редакторе реестра и редакторе локальной групповой политики

Во всех версиях Windows 11 и Windows 10 вы можете использовать редактор реестра, чтобы установить свои обои на рабочий стол:

  1. Нажмите правой кнопкой мыши по кнопке «Пуск», выберите пункт «Выполнить», введите regedit и нажмите Enter.
  2. Перейдите к разделу (папке) реестра
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\
  3. Если в этом разделе отсутствует подраздел с именем System, создайте его: правый клик по разделу Policies — Создать — Раздел и указываем имя раздела.
  4. Выберите раздел System. В правой панели редактора реестра нажмите правой кнопкой мыши и выберите «Создать» — «Строковый параметр». Задайте имя Wallpaper для него.
  5. Дважды нажмите по созданному параметру и укажите путь к файлу изображения в качестве его значения (путь можно получить, нажав правой кнопкой мыши по картинке в проводнике и выбрав пункт «Копировать как путь», но в реестре кавычки из пути потребуется убрать).
    Изменение обоев рабочего стола в реестре Windows

Фон будет изменен после выхода из системы и повторного входа или перезапуска проводника в диспетчере задач.

В Windows 11/10 Pro и Enterprise можно запустить редактор локальной групповой политики (Win+Rgpedit.msc), перейти в раздел «Конфигурация пользователя» — «Административные шаблоны» — «Рабочий стол» — «Рабочий стол».

В правой панели достаточно будет дважды нажать по политике с именем «Фоновые рисунки рабочего стола», установить «Включено», задать путь к файлу изображения и стиль заполнения рабочего стола.

Установка обоев рабочего стола в редакторе локальной групповой политики

После применения настроек и закрытия редактора локальной групповой политики может потребоваться перезапуск проводника (или выход из системы с повторным входом) для того, чтобы установленные обои начали отображаться.

Также может быть полезным: Где хранятся обои рабочего стола и экрана блокировки Windows 10 (И где в Windows 11).

In this blog post, we will explore how to set a custom desktop wallpaper and lock screen background image using group policy on Active directory domain joined computers including laptops with intermittent network connectivity and those who connect to the corporate network occasionally via VPN. For this setup, we will require:

  • Desktop and Lock Screen Wallpaper files in JPEG or JPG format.
  • Wallpaper files copied to SYSVOL folder on one of the domain controllers.

By default, all domain users have read permissions on SYSVOL folder and it’s accessible from all domain joined computers. You can also use NETLOGON folder instead of SYSVOL.

Netlogon and SYSVOl folder location

Contents

Prepare desktop and lock screen wallpaper files in JPEG or JPG format. For demonstration purpose, I have created two files Desktop-wallpaper.jpg and Lock-screen-background.jpg.

2. Copy Wallpaper files to SYSVOL folder

Next step is to copy wallpaper files to the SYSVOL folder on one of the Active directory domain controllers. To copy the files, follow below steps:

  • Login to one of the Domain controllers.
  • Go to the location \\<domain name\SYSVOL\domain name\scripts and paste the wallpaper files.
Copy Desktop and Lock screen wallpaper files in SYSVOL folder

3. Create a Group Policy

  • Open Group policy management console (gpmc.msc).
Type gpmc.msc to open group policy management console

  • Create and Edit a Group Policy. I have already created a group policy called Desktop and Lock Screen Wallpaper. Right-click on it and select Edit. We will be configuring three group policy settings to change desktop wallpaper and lock screen background image on the windows workstations.
Edit Desktop and Lock Screen Wallpaper Group Policy

3.1. Force a specific default lock screen and logon image

Navigate to the path Computer Configuration > Policies > Administrative Templates > Control Panel > Personalization and Enable Force a specific default lock screen and logon image policy.

  • Path to lock screen image: Provide the path of the lock screen image. In our example, we have set the path to \\corp.techpress.net\SYSVOL\corp.techpress.net\scripts\Lock-screen-background.jpg.
Configure Force a specific default lock screen and logon image Group policy setting

3.2. Desktop Wallpaper Setting

Navigate to the path User Configuration > Policies > Administrative Templates > Desktop > Desktop and Enable Desktop Wallpaper setting.

  • Wallpaper Name: Provide the path of the desktop wallpaper image. In our example, we have set the path to \\corp.techpress.net\SYSVOL\corp.techpress.net\scripts\Desktop-wallpaper.jpg.
Configure Desktop Wallpaper Group Policy setting

3.3. Loopback Processing Mode

Set the loopback processing mode to Merge by navigating to Computer Configuration > Policies > Administrative Templates > System > Group Policy. Enable the policy setting Configure user Group Policy loopback processing mode and set it to Merge.

Configure Loopback Processing Mode to merge

4. Add Domain Computers to the Security Filtering

Select the Group Policy and add Domain Computers in the Security Filtering.

Add Domain Computers to the Security Filtering

5. Link the GPO to Workstations OU

Once you have configured the GPO settings, link it to an OU containing Windows devices. Right-click on the OU and select Link an Existing GPO.

Link Desktop and Lock Screen wallpaper GPO to Workstations OU

  • Select the GPO Desktop and Lock Screen Wallpaper and click on OK to link.
Select Desktop and Lock Screen wallpaper GPO

  • GPO is now linked to the Workstations OU.

6. Test the Group Policy

  • Login to one of the target Windows client device, open command prompt in admin mode and type gpupdate /force and Restart your computer.
gpupdate /force command to update wallpapers

  • Desktop and Lock screen wallpapers will be set as per the GPO.

By default, group policy refreshes/updates every 90 minutes. To speed up the process, you can open command prompt or PowerShell console in Admin mode and execute gpupdate /force command.

Desktop wallpaper successfully applied

Lock screen wallpaper successfully applied

Verify Desktop and Lock Screen WallPaper Configuration from Registry Editor

Once the desktop and lock screen wallpapers GPO has been applied successfully, it will create registry entries at the following location in the Windows registry editor.

Open Registry editor regedit and Navigate to the following paths:

  • For Desktop wallpaper: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System. There would be a REG_SZ entry called Wallpaper, which will be set to the path of the Desktop wallpaper image configured in the GPO.
Verify Desktop WallPaper Configuration from Registry Editor

For Lock Screen background: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization. There would be a REG_SZ entry called LockScreenImage which will be set to the path of the lock screen image configured in the GPO.

Verify Lock screen image from Registry Editor

Update Desktop and Lock Screen Wallpaper

Once you have configured desktop and lock screen wallpaper on windows devices, you may want to update them with new wallpaper images in the future. To update the wallpapers, follow below steps:

  • Prepare new desktop and lock screen wallpaper images and keep the same name as the one copied in the SYSVOL location.
  • Replace the new wallpaper files to overwrite the files at SYSVOL location. If required, you can first take a backup of old wallpaper files before replacing.
Update Desktop and Lock Screen Wallpaper

  • If prompted, Select Replace the files in the destination.
Replace the files in the destination

  • That’s it! When GPO will refresh next time and users will reboot their devices. New Desktop and Lock Screen Wallpaper Images will be displayed. I have tested the policy for updating both wallpapers and it works fine.

Option 2: Setting Desktop and Lock Screen WallPaper by First Copying Wallpaper files on Client Devices

Previous option to configure desktop and lock screen wallpaper requires windows client devices access to SYSVOL folder. In some cases, if users have intermittent connectivity to the corporate network and does not always have access to SYSVOL folder, desktop and lock screen wallpaper might not set correctly.

Therefore, an alternative approach is to copy the desktop and lock screen image on the client devices first and use the local path of the wallpaper files in the GPO. In this case, even if users does not have access to SYSVOL folder, there will be no issues with desktop and lock screen wallpapers.

Prepare wallpaper.bat file

  • Save Desktop and Lock screen wallpaper files in SYSVOL folder.
  • Download wallpaper.bat file from my Github repo.
  • Update desktopCopyFrom and lockscreenCopyFrom variables and point it to the desktop and lock screen wallpaper files.
Batch file to copy desktop and lock screen wallpaper files on local computer

Create a Group Policy

  • Create and Edit a Group Policy. I have already created a group policy called Desktop and Lock Screen Wallpaper. Right-click on it and select Edit.
Edit desktop and lock screen wallpaper GPO

  • Navigate to Computer Configuration > Policies > Windows Settings > Scripts.
  • Double-click on Startup and click on Show Files button at the bottom.
Click on Show Files to open the Startup scripts folder

  • Copy and Paste wallpaper.bat file in the Startup folder.
Copy wallpaper.bat file to the startup scripts folder

  • Go back to the Startup Properties settings. Click on Add and then click on Browse button.
Add wallpaper.bat file in Startup Script

  • Select wallpaper.bat file.
Select wallpaper.bat file

  • wallpaper.bat file added.
  • Enable Force a specific default lock screen and logon image and set path to lock screen image as c:\wallpaper\<lockscreenimage>.jpg.
Configure Force a specific default lock screen and logon image to set to local lock screen image path

  • Enable Desktop Wallpaper setting and set Wallpaper name to: C:\wallpaper\<desktopwallpaperimage>.jpg. Configure a Wallpaper Style.
Configure Desktop Wallpaper GPO setting and set it to local desktop wallpaper path

  • Enable Configure user Group Policy loopback processing mode and set it to Merge.
Enable Configure user Group Policy loopback processing mode and set it to Merge.

Add Domain Computers to the Security Filtering

Select the Group Policy and add Domain Computers in the Security Filtering.

Add Domain Computers to the Security Filtering

Link the GPO to Workstations OU

Link the GPO to an OU containing Windows computers.

Test the Group Policy

You can wait for group policy refresh or to speed up the testing you can use gpupdate /force command and reboot the client computer. Let’s check the steps:

  • Login to one of the target Windows computer.
  • Open command prompt as an adminstrator and type gpupdate /force command.
  • Reboot the computer and verify if desktop and lock screen wallpapers are set.

Deploy Desktop and Lock Screen Wallpaper (In a VPN Scenario)

Its more challenging to set desktop and lock screen wallpaper for remote users who do not connect to the corporate network very often. This may include the users who are working from home using domain joined windows computers and connect via VPN.

First solution we discussed configures wallpapers using SYSVOL location and In the second solution, we copied wallpaper files using a Startup script. In some cases, you may have Issues with the execution of Startup script and therefore wallpaper files are not copied on the client machine.

Either you can provide wallpaper.bat file to the user so that they can double-click on it and manually Execute it to fetch the wallpapers or you can also create a GPO that will copy Wallpaper. bat file from a shared location accessible from the device on to users desktop or any other location on their device (e.g. c:\temp).

Copy Wallpaper.bat file on Users desktop

  • Create and Edit a Group Policy and navigate to User configuration > Preferences > Windows Settings > Files. Right-click on it > New > File.
  • Source file: Provide the location of the wallpaper.bat file which is accessible from client devices. For example: \\corp.techpress.net\SYSVOL\corp.techpress.net\scripts\wallpaper.bat or it could be a shared folder on a file server \\fileserver01\batchfiles\wallpaper.bat.
  • Destination file: C:\users\%username%\desktop to copy wallpaper.bat on to users desktop or you can provide c:\temp or any other location which users can easily access.

  • Under Common tab, select Run in logged-in user’s security context.

Configure Execution of Wallpaper.bat file

To ensure that wallpaper.bat file is executed everytime the device is restarted. You can create an entry in the Run registry location: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run.

  • Go to Computer Configuration > Preferences > Registry > Create a registry Item

  • Action: Update
  • Hive: HKEY_LOCAL_MACHINE
  • Key Path: /SOFTWARE\Microsoft\Windows\CurrentVersion\Run
  • Value Name: Wallpaper
  • Value type: REG_SZ
  • Value data: C:\users\%username%\desktop\wallpaper.bat
  • Make sure to enable Configure user Group Policy loopback processing mode and set it to Merge in the same GPO.

Group Policy Troubleshooting

If there are any issues with the GPO, you can follow below steps to troubleshoot.

  • Ensure that the domain controllers are replicating fine. To force AD replication, open the command prompt as an administrator on a domain controller and run repadmin /syncall /APed.
  • Run gupdate /force command on the workstation to force sync any policy changes.
  • Run the command gpresult /r /v | more to get a list o policies applied on the computer. This will only show user configuration policy settings.
  • To check the computer configuration policy, open the command prompt as an administrator and run the command gpresult /r /v /scope computer | more.

Gpresult User Configuration Policy

Group Policy Troubleshooting

Gpresult Computer Configuration Policy

Group Policy Troubleshooting

Read Next

Рассмотрим, как с помощью групповых политик можно установить одинаковый рисунок рабочего стола (обои) на всех компьютерах домена. Как правило, такое требование возникает в крупных организациях, требующих от пользователей использовать единообразный вид фонового рисунка рабочего стола, выполненного в корпоративном стиле компании.

Требования к инфраструктуре: уровень домена должен быть не меньше Windows 2008, а клиенты не ниже Windows 7.

Нам понадобится, собственно файл с рисунком, который вы хотите использовать в качестве обоев. Это может быть файл формата bmp или jpg. Желательно заранее протестировать корректность отображения файла на экранах с разным разрешением.

Данный файл можно предварительно скопировать на все компьютеры, но гораздо более удобно, чтобы клиенты автоматически брали файл из сетевого каталога. Для этого можно использовать файл-сервер, каталог SYSVOL на контроллерах домена или DFS каталог. Для нашей распределенной сети мы выбрали второй вариант, ведь так как содержимое SYSVOL автоматически реплицируется между всеми DC, это уменьшит WAN — трафик между филиалами при получении клиентами файла с рисунком.

Скопируем файл с изображением на любом контроллер домена в каталог

C:\Windows\SYSVOL\sysvol\winitpro.loc\scripts\Screen. 

UNC путь к файлу будет выглядеть так:

\\winitpro.loc\SYSVOL\winitpro.loc\scripts\Screen\corp_wallpaper.jpg

Естественно, у пользователей должны быть права на чтение этого файла (проверьте NTFS разрешения, предоставив право Read группе Domain Users).

Затем откроем консоль управления GPO (GPMC.msc). Создайте новую политику и назначьте ее на нужный OU с пользователями (в нашем примере мы хотим, чтобы политика применялась на все компьютеры и сервера домена, поэтому мы просто отредактируем политику Default Domain Policy). Перейдем в режим правки политики.

Нас интересуют настройки в секции User Configuration -> Policies -> Administrative Templates -> Desktop -> Desktop (Конфигурация пользователя -> Административные шаблоны -> Рабочий стол -> Рабочий стол).

Нам нужно включить политику Enable Active Desktop (Включить Active Desktop).

Затем включаем политику Desktop Wallpaper (Фоновые рисунки рабочего стола). В параметрах политики указываем UNC путь к файлу с рисунком и выбираем стиль фонового рисунка Fill (Заполнение).

Совет. Как правило, стиль фонового рисунка “Fill” выглядит нормально почти на всех разрешениях экрана.

Чтобы проверить работу политики, выполните выход из системы (logoff) и зайдите в систему опять. На рабочем столе пользователя должны отобразиться заданные обои.

Если требуется запретить пользователям менять фоновый рисунок рабочего стола, включите политику Prevent Changing Desktop Background (Запрет изменения фона рабочего стола) в разделе 

User Configuration -> Administrative Templates -> Control Panel -> Personalization.

Совет. Задать файл с фоновым рисунком рабочего стола можно и через реестр, изменив путь к файлу в параметре Wallpaper в разделе реестра

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System. 

Изменить значение параметра реестра удобно через расширение GPO – Group Policy Preferences, позволяющем помимо прочего реализовать сценарии назначения разных обоев разным группам пользователей.

Запрет на смену обоев также может быть задан через реестр:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop]
 "NoChangingWallPaper"=dword:00000001

If for some reason you can’t set a desktop wallpaper or you want to set it for all the connected devices, you can try the methods mentioned here. In this post, we will discuss how to set desktop wallpaper using the Group Policy or Registry Editor on a Windows 11/10 computer.

set desktop wallpaper using Group Policy or Registry Editor

Before getting started, note down the wallpaper path in your clipboard. Also, you cannot change the path once it is set. Otherwise, your PC will show a blank background.

Read: Windows Settings not opening or working in Windows 11/10

To set desktop wallpaper using Local Group Policy Editor, follow these steps-

  1. Search for gpedit.msc in the Taskbar search box.
  2. Click on Edit group policy in the search result.
  3. Navigate to Desktop in User Configuration.
  4. Double-click on Desktop Wallpaper setting.
  5. Select the Enabled option.
  6. Enter the wallpaper path in Wallpaper Name box.
  7. Choose Wallpaper Style.
  8. Click the OK button.

To know more about these steps, continue reading.

At first, search for gpedit.msc in the Taskbar search box and click on Edit group policy or the respective search result to open Local Group Policy Editor. After that, navigate to this path-

User Configuration > Administrative Templates > Desktop > Desktop

On your right-hand side, you will find a setting called Desktop Wallpaper. Double-click on it and select the Enabled option. Next, enter the wallpaper path in Wallpaper Name box.

How to set desktop wallpaper using Group Policy and Registry Editor

Following that, expand the Wallpaper Style drop-down list and choose a style according to your wallpaper and screen resolution.

At last, click the OK button to save the change. Next, sign out of your account and re-sign into your user account to get the change.

Related: Delete user profiles older than a specified number of days on system restart.

Set the desktop wallpaper using Registry Editor

To set the desktop background using Registry Editor, follow these steps-

  1. Press Win+R.
  2. Type regedit and hit the Enter button.
  3. Click the Yes button.
  4. Navigate to Policies in HKCU.
  5. Right-click on Policies > New > Key.
  6. Name it as System.
  7. Right-click on System > New > String Value.
  8. Name it as Wallpaper.
  9. Double-click on it and enter the wallpaper path.
  10. Right-click on System > New > String Value.
  11. Name it as WallpaperStyle.
  12. Double-click on it to set a Value data.
  13. Click OK to save the change.

Let’s check out these steps in detail.

Precaution: Before getting started, don’t forget to create a System Restore point to be on the safe side.

At first, press Win+R, type regedit and hit the Enter button. It will show the UAC prompt. If so, click the Yes button to open the Registry Editor. Following that, navigate to this path-

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies

Right-click on Policies > New > Key and name it as System. Then, right-click on System > New > String Value and name it as Wallpaper.

How to set desktop wallpaper using Group Policy and Registry Editor

Double-click on it and enter the file path as Value data. Then, click the OK button.

How to set desktop wallpaper using Group Policy and Registry Editor

Next, right-click on System > New > String Value and name it as WallpaperStyle. After that, double-click on WallpaperStyle and set the Value data as follows-

  • Center: 0
  • Tile: 1
  • Stretch: 2
  • Fit: 3
  • Fill: 4
  • Span: 5

Click the OK button to save the change.

How to set desktop wallpaper using Group Policy and Registry Editor

At last, sign out of your user account and re-sign in. Once done, you will find your new wallpaper as a desktop background.

In case you want to remove this wallpaper, navigate to the following path-

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies

And right-click on Policies > Delete. Then, confirm the change by clicking the Delete button again.

I hope you find this tutorial useful.

Read: Prevent users from changing the Desktop Background in Windows.

How to set Desktop Wallpaper through group policy?

To set up a desktop wallpaper through the Group Policy Editor, you need to configure the Desktop Wallpaper policy. You can enable it and set it to the location of the image you want to set as wallpaper. If you are using a Windows Home and do not have the Group Policy Editor, use the Registry Editor instead. Check out the steps mentioned above for both guides.

How to change Desktop Wallpaper using regedit?

With the help of Registry Editor, you can create a string called ‘Wallpaper’ and set it to the path of your image. You can visit the guide mentioned earlier to learn how to do the same.

Also Read: Disable Wallpaper compression & improve image quality in Windows.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Программа для установки драйверов windows с флешки
  • Windows xp какая по счету
  • Windows сапер про онлайн
  • Itunes windows 10 проблемы
  • Нвидиа драйвера приложение для windows