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

64-bit Windows 10 Pro

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

Similar help and support threads
Thread Forum
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
How to make a multible copy batch file
Below is a batch file I created to copy all the files from a program called A5V5. This batch file works to copy the files to two different drives What I want to do is if the J: Directory is not availble (This is a flash drive) that it will copy to the E:\ directory which is a second HDD and not...
Can you tell me what I need to make this batch file run?
I run a batch file to do image backups. It will only run if I am in the built- in-admin account. When I saw the command line option I thought I had it made. Because the batch file runs in C:\windows\system32\cmd I figured I was already at an elevated commandprompt so I merely added 'net user...
General Discussion
cant make a batch file:)
hello i need help making .bat file from .txt Windows 7 wont make it for me when i rename the thing to .bat i just see it as .bat.txt thx
General Discussion
Make shortcuts using a batch file
Is it possible in any way to make shortcuts (.lnk files) using command prompt/batch files without using any 3rd party apps? I did some googling and found this Solutions found on alt.msdos.batch - Creating Shortcuts in NT but cant make anything out of it. Appreciate any comments and help.
General Discussion

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 20:25.
Twitter Facebook Google+