Make GPO changes from a batch file? - Windows 7 Help Forums
Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Make GPO changes from a batch file?

28 Dec 2011   #1

Windows 7 Ultimate x64
Make GPO changes from a batch file?

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 System SpecsSystem Spec
30 Dec 2011   #2

Windows 7 Ultimate x64

You don't have access to the OU that contains these machines?
My System SpecsSystem Spec
18 Jan 2012   #3

Windows 7 Ultimate x64

Nope, no access.
My System SpecsSystem Spec
18 Jan 2012   #4
Microsoft MVP

64-bit Windows 8.1 Enterprise

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.

REG ADD "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d "full-path-to-screensaver.scr-you-want"
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop" /v SCRNSAVE.EXE /t REG_SZ /d "full-path-to-screensaver.scr-you-want"
Hope this may help,
My System SpecsSystem Spec

 Make GPO changes from a batch file?

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:23.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App