New Question

Applyign Group policy using answer file

asked 2016-08-09 13:15:02 +0300

Parth Gandhi gravatar image

updated 2016-11-11 22:14:31 +0300

Claudiu Belu gravatar image

hi, I am using the github cloudbase/windows-openstack-imaging-tools to automate windows image creation. the script works fine and do creates the raw image file however is there a way to apply the group policy while creating the image? I have the .inf file imported from the Group policy. Can I apply it during the specialize or any other phase?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2016-08-24 20:09:38 +0300

maestropandy gravatar image

Hi Parthi,

Seems you want to Import Security Settings from .INF file, For that you have to create GPO file from inf file ( Take backup before that), below single line will do the needful

import-gpo -BackupId GUID -TargetName "Default Domain Policy" -path $ImportGPOPath

Create shell script by referring this script & change it to call your GPO file & don't forget it map it to unattended resource directory

Refer below wall paper unattended answer for reference,

edit flag offensive delete link more


Thanks, I was actually using the local security setting so was able to achieve this using secedit.exe cmdline.

Parth Gandhi gravatar imageParth Gandhi ( 2016-09-01 13:19:59 +0300 )edit

answered 2016-08-24 19:26:48 +0300

avladu gravatar image


You have an example of applying a GPO in the repo:

We are using it to set the wallpaper.

Thank you,

Adrian Vladu

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2016-08-09 13:15:02 +0300

Seen: 66 times

Last updated: Aug 24 '16