-targetObject: The object that will be part of the security groups defined in the template
-groupMemberships: The groups specified in the template

To fetch the group memberships from Security_Templates.xml, use Get-SecurityTemplateGroupMemberships

For instance:

$groupMemberships=Get-SecurityTemplateGroupMemberships -templateName "ProductionFileServer"

Apply-SecurityTemplateGroupMemberships -targetObject SRV90210 -groupMemberships $groupMemberships

Last edited Jul 10, 2014 at 8:26 PM by misabel_gem, version 3