Forum Discussion
Can we Edit the Local Computer Policy ?
Hi, Vinay335
I have some question about your environment.
Is there any group policy for change desktop wall paper?
If it exist, you can't change wallpaper via local group policy. You just said you achieved the success with local policy, but it maybe temporarily.
If not, you have a 2 direction.
A. Using LGPO.exe
- Export local group policy template
- Modify exported template for only adjust wallpaper template
- Adjust modified template to other pc with Powershell
B. Change registry value with Set-ItemProperty
[Ref]
-LGPO
-Set-ItemProperty
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-itemproperty?view=powershell-7.2
- Vinay335Dec 29, 2021Copper Contributor
somnio0505
Thanks for your response. There is no GPO for the desktop wallpaper.Set-ItemProperty : with this I can only able to change the current user session only. Not for every user.
I believe LGPO is the only option.
Do we have any powershell cmdlet to use this LGPO ?- somnio0505Dec 29, 2021Brass Contributor
If you want to chagne all local user's desktop wallpaper, you should change "HKEY_USERS" registry value not a HKEY_CURRENT_USER.
You can change other user's value HKLM > HKU\SID(S-1-xxxx)
But it's temporarily too.
LGPO is standalone. You just type LGPO commands in script.
# Export (Backup)
# You shoud using path all user can access.
"PATH"\LGPO.exe /b "PATH"\"BACKUP"
# Adjust
"PATH"\LGPO.exe /g "PATH"\"BACKUP"There are several things to watch out before you try this.
* Other local policies are being used individually
* How to execute LGPO to all users.
The question arises as I write this, why was the group policy excluded?
- Vinay335Dec 29, 2021Copper ContributorGroup Policy is under progress. checking for the workaround. So there is no direct approach to change the local computer policy directly / through script.