Jump to content

Update local policy after I sysprep'ed an image


Recommended Posts

I've been working on a Windows 7 image for the past few days, getting it up to par with our needs and requirements. After I did all the work, I just remembered I needed to set a local group policy. Is there a way I can do this without having to re-sysprep and re-image the entire system again? Maybe through DISM or unattend.xml? Thanks!

Link to comment
Share on other sites


What policy needs te be set.

What I know is for example the policy setting for: Prevent installation of Removable devices

GPEdit.msc then go to in Local Computer Policy ->Computer Configuration ->Administrative Templates->System -> Device Installation -> Device Installation Restrictions ->Enable/Disable the "Prevent installation of Removable devices".

is the same as

HKEY_LOCAL_MACHINE » Software » Policies » Microsoft » Windows » DeviceInstall » Restrictions

The keyname will be DenyRemovableDevices value = 1

So I think u should mount the image.

Load the registry components from %mount_dir%\windows\system32\config in the registry and add your settings.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...