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

name = 'add-user-to-domainadmin'
description = 'add domain user to domain admin'
args = {
	'username': dict(help='Name of the user'),
}

ps = '''
$ErrorActionPreference = "Stop"
$sid = Get-ADDomain
$domain_user_sid = $sid.DomainSID.Value + '-512'
Add-ADGroupMember -Identity $domain_user_sid -Members %(username)s
'''
