Need help writing a script with GPEDIT
Sounds Good
Member Posts: 403
in Off-Topic
Hey all,
I need help writing a batch script to change the background of my desktop. It is currently set and locked via GPEDIT locally and I need to change the target wallpaper. I need to do this for over 100 machines and GP is out of the question.
So the setting I want to change via a batch file is
GPEDIT.msc
User Configuration
Administrative template
Desktop
Desktop
Desktop Wallpaper
then the path to the jpg is what I want to change.
I've done a bit of googling and came up short.
If anyone has any idea how to approach this, that would be fantastic.
Thanks!
I need help writing a batch script to change the background of my desktop. It is currently set and locked via GPEDIT locally and I need to change the target wallpaper. I need to do this for over 100 machines and GP is out of the question.
So the setting I want to change via a batch file is
GPEDIT.msc
User Configuration
Administrative template
Desktop
Desktop
Desktop Wallpaper
then the path to the jpg is what I want to change.
I've done a bit of googling and came up short.
If anyone has any idea how to approach this, that would be fantastic.
Thanks!
On the plate: AWS Solutions Architect - Professional
Scheduled for: Unscheduled
Studying with: Linux Academy, aws docs
Scheduled for: Unscheduled
Studying with: Linux Academy, aws docs
Comments
-
Sounds Good Member Posts: 403
Thanks for the effort though.On the plate: AWS Solutions Architect - Professional
Scheduled for: Unscheduled
Studying with: Linux Academy, aws docs -
jmritenour Member Posts: 565All the local group policy is doing is reading the registry & giving you a graphical front end for editing it. Even the powershell cmdlets for modifying group policy values reference the registry keys.
There's no way to call gpedit.msc in a script, change values, and save it."Start by doing what is necessary, then do what is possible; suddenly, you are doing the impossible." - St. Francis of Assisi -
Asif Dasl Member Posts: 2,116 ■■■■■■■■□□Since GPOs are out you are going to have to do it via registry entries or by cloning local group policy settings.