Deploy Script via GPO

rgjutro
rgjutro used Ask the Experts™
on
I'm trying to push out a registry change via GPO using a script.  I've created a test OU and created a GPO to apply to it to do this.  I've added the script to be applied during Startup in Computer Configuration ->Windows Settings->Startup->Show Files->Paste in Batch file->Then add the file.

I checked gpresults on my test workstation and it says it's being applied, but the registry key is not there.  I don't see any errors in the event viewer.  I can't figure out why it's not working.  Here's what my batch file says:

regedit.exe /s \\SERVERNAME\c$\WINDOWS\SYSVOL\domain\scripts\VSSDisableRestore.reg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
While not an exact solution for the problem you've present, here's how I've pushed out some registry updates to computers.  I'm using a batch file, similar to what you've done, but instead of using regedit.exe, I'm using reg.exe.  For example, as part of my "system" to disable removable media, I'm calling the following startup script:

@echo off
reg.exe ADD HKLM\SYSTEM\CurrentContorlSet\Services\USBSTOR /v Start /t REG_DWORD /d 4 /f

Hope that helps.

I forgot to say that I'm using the similar setup you are, including the GPO and putting the batch file in the Computer Config->Windows Settings->Scripts->Startup.
DonNetwork Administrator

Commented:
Since you are using "Computer Config" is the registry change a HKLM or is it HKCU ?
 
If the latter(HKCU) it wont work....this is a user setting
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Network Administrator
Commented:
Also check if this pertains to what you are trying to achieve  
 
http://support.microsoft.com/kb/888603 

Author

Commented:
Registry change is in HKLM
DonNetwork Administrator

Commented:
and the hotfix?

Author

Commented:
I'll try the hotfix on Friday when I'm back onsite at that client and will update.  Thanks for the help!

Author

Commented:
This solved it, thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial