# -*- coding: utf-8 -*-

name = 'link-gpo'
description = 'link GPO to LDAP container'
args = {
	'name': dict(help='Name of the GPO', required=True),
	'target': dict(help='containcontainer in ldap syntax', required=True),
}

ps = '''
Import-Module grouppolicy
$ErrorActionPreference = "Stop"
New-GPLink -Name "%(name)s" -Target "%(target)s" -order 1 -enforced yes
'''
