As part of my organisation's Windows 7 rollout process, we would deploy a Windows 7 image onto a target machine, then manually install LocalGPO on it followed by applying a set of group policies via the following script (right now we have to manually copy in the C:\SETUPGCB\ folder post-deployment) :
echo *************************Change Path LocalGPO*************************
cd /d "C:\Program Files\LocalGPO"
echo *************************Run Policy***********************************
cscript LocalGPO.wsf /path:C:\SETUPGCB\{3AFCFA90-5E1C-4854-ACC8-069399F4E00F}
cscript LocalGPO.wsf /path:C:\SETUPGCB\{8E7E3C0B-1CB5-4F52-A825-832AB93081B6}
cscript LocalGPO.wsf /path:C:\SETUPGCB\{8FBAD1C1-75F0-43C2-818E-FD700AC78D5F}
cscript LocalGPO.wsf /path:C:\SETUPGCB\{042F3731-1FC3-4E51-B06F-31F967E74D1A}
cscript LocalGPO.wsf /path:C:\SETUPGCB\{61A09835-BED1-4573-A599-3E87118754CA}
pause
In order to save the steps of manually installing LocalGPO and running this script everytime we deploy the image to a machine, I am thinking about re-making the Windows 7 image by:
- Setting up a new reference Windows 7 system and install any software/modifications specific to my organisation.
- Install LocalGPO.
- Run the script I showed above to apply group policies.
- Execute the "sysprep /generalize /oobe /shutdown /unattend:[my answer file]" command to sysprep the system.
- Image and deploy.
My question is will sysprep respect and retain all the group policies I applied when making the image this way? If so that's great. If not, how should I sysprep the system so that I can achieve this goal?
Thank you very much!
P.S. Unfortunately my only experience with setting up group policies (other than the steps stated above) is using gpedit.msc to manually edit items, so I might need some more detailed explanations if modifying the files in C:\SETUPGCB (which contains lots of nested folders, *.xml, and *.pol files) is required...