Skip to content

Create-Subscriptions Target group issue #10

@PhilM-IT

Description

@PhilM-IT

When you're not using the pre-defined target groups of "Domain Controllers" or "Domain Computers" the resulting subscription that's loaded can't be opened in the UI (error screen shot attached).

capture

This is because the resulting XML tag "AllowedSourceDomainComputers" ends up containing the name of the target group instead of the group SID. Adjusting the line in the script per below converts the group name to a SID and results in the problem being "fixed"

Default{$xmlWriter.WriteElementString("AllowedSourceDomainComputers","O:NSG:BAD:P(A;;GA;;;"+([System.Security.Principal.NTAccount]($Channel.TargetGroup)).Translate([System.Security.Principal.SecurityIdentifier]).Value+")S:")}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions