New Question
0

Applyign Group policy using answer file

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

Parth Gandhi gravatar image

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

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
0

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

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

https://github.com/cloudbase/windows-...,

edit flag offensive delete link more

Comments

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 +0200 )edit
0

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

avladu gravatar image

Hello,

You have an example of applying a GPO in the repo: https://github.com/cloudbase/windows-...

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

Question Tools

1 follower

Stats

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

Seen: 678 times

Last updated: Aug 24 '16