Make GPO changes from a batch file?

wildcat

New member
Local time
5:46 AM
Messages
14
Hi I'm confused and seeking guidance.

I physically manage well over 100 systems on a hardware level and very little on a software level. Yet, there are many tiny modification I've install to keep things running for the end users.

The only time I actually interact with the system on a software level is when I reinstall it. A customized corp. edition of Windows gets deployed and during the installation pretty much everything gets installed except for my tiny modification. These I'll inject with one batch file, right before I deploy the system on it's physical location.

I've to set some GPO screensaver settings for "all users" to force the use of a screen saver that logs users off after a set period of time.

I'm unable to inject registry settings on current user level, because the users don't have admin rights.

The registry solution posted doesn't really work for me. I've to set it in the GPO manually and locally. I'm not allowed nor have access to push this out to other systems through GPO.

So I'm wondering if I can make GPO changes through the use of a batch file?
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
CPU
I7-2600K
Motherboard
Asus P8Z68V-PRO
Memory
4x2GB 1333Mhz DDR3 Kingston
Graphics Card(s)
Asus GTX 670
Sound Card
Creative / Onboard / G35
Monitor(s) Displays
26" ProLite E2607WS
Screen Resolution
1920x1200
Hard Drives
1x OCZ-Vector 120GB (OS)
1x OCZ-Agility3 120GB
1x WD 1TB
PSU
750Watt
You don't have access to the OU that contains these machines?
 

My Computer

Computer Manufacturer/Model Number
Alienware m15x (my main PC)
OS
Windows 7 Ultimate x64
CPU
Intel Core i7 740QM
Memory
G. Skill 8GB (2x4GB) DDR3 @ 1333MHz
Graphics Card(s)
nVidia GeForce GTX 460M
Sound Card
IDT Integrated HD Audio
Monitor(s) Displays
15.6HDF+ WLED
Screen Resolution
1600 x 900
Hard Drives
240GB OCZ Agility 3 SSD
Mouse
Razer Orochi
Internet Speed
50Mb/s
Other Info
Intel Ultimate N Wi-Fi Link 5300, Bluetooth 2.0
Nope, no access.
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
CPU
I7-2600K
Motherboard
Asus P8Z68V-PRO
Memory
4x2GB 1333Mhz DDR3 Kingston
Graphics Card(s)
Asus GTX 670
Sound Card
Creative / Onboard / G35
Monitor(s) Displays
26" ProLite E2607WS
Screen Resolution
1920x1200
Hard Drives
1x OCZ-Vector 120GB (OS)
1x OCZ-Agility3 120GB
1x WD 1TB
PSU
750Watt
Hello Wildcat,

You might see if you may be able to make registry changes using a BAT file that will in effect change the GPO.

Code:
REG ADD "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d "[B][COLOR=red]full-path-to-screensaver.scr-you-want[/COLOR][/B]"
 
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d "[B][COLOR=red]full-path-to-screensaver.scr-you-want[/COLOR][/B]"

Hope this may help,
Shawn
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top