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

name = 'create-multiple-adgroup'
description = 'Create multiple group object in AD'
args = {
	'group-prefix': dict(help='Name of the user'),
        'group-amount':dict(help='Number of users to created'),
        'path':dict(help='LDAP path of the groups'),
}

ps = '''
$ErrorActionPreference = "Stop"
$amount=%(group_amount)s/1
for($i = 1 ; $i -le $amount; $i++)
{
New-ADGroup -Name "%(group_prefix)s$i" -SamAccountName %(group_prefix)s$i -GroupCategory Security -GroupScope Global -DisplayName "%(group_prefix)s$i" -Path "%(path)s" -Description "Testgroup$i"
}
'''
