xml/DomainManagement.Format.ps1xml

<?xml version="1.0" encoding="utf-16"?>
<Configuration>
    <SelectionSets>
        <SelectionSet>
            <Name>DomainManagement.TestResults</Name>
            <Types>
                <TypeName>DomainManagement.AccessRule.TestResult</TypeName>
                <TypeName>DomainManagement.Acl.TestResult</TypeName>
                <TypeName>DomainManagement.GPLink.TestResult</TypeName>
                <TypeName>DomainManagement.Group.TestResult</TypeName>
                <TypeName>DomainManagement.GroupPolicy.TestResult</TypeName>
                <TypeName>DomainManagement.GroupMembership.TestResult</TypeName>
                <TypeName>DomainManagement.Object.TestResult</TypeName>
                <TypeName>DomainManagement.OrganizationalUnit.TestResult</TypeName>
                <TypeName>DomainManagement.PSO.TestResult</TypeName>
                <TypeName>DomainManagement.User.TestResult</TypeName>
            </Types>
        </SelectionSet>
    </SelectionSets>
 
    <ViewDefinitions>
        <!-- DomainManagement.*.TestResult -->
        <View>
            <Name>DomainManagement.TestResult</Name>
            <ViewSelectedBy>
                <SelectionSetName>DomainManagement.TestResults</SelectionSetName>
            </ViewSelectedBy>
            <TableControl>
                <AutoSize/>
                <TableHeaders>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem>
                                <PropertyName>Server</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Type</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>ObjectType</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Identity</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Changed</PropertyName>
                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
 
        <!-- DomainManagement.Group -->
        <View>
            <Name>DomainManagement.Group</Name>
            <ViewSelectedBy>
                <TypeName>DomainManagement.Group</TypeName>
            </ViewSelectedBy>
            <TableControl>
                <AutoSize/>
                <TableHeaders>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem>
                                <PropertyName>Present</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Name</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Scope</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Category</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Description</PropertyName>
                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
 
        <!-- DomainManagement.GroupPolicy.Linked -->
        <View>
            <Name>DomainManagement.GroupPolicy.Linked</Name>
            <ViewSelectedBy>
                <TypeName>DomainManagement.GroupPolicy.Linked</TypeName>
            </ViewSelectedBy>
            <TableControl>
                <AutoSize/>
                <TableHeaders>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader>
                        <Label>LinkedTo</Label>
                    </TableColumnHeader>
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem>
                                <PropertyName>DisplayName</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Modified</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <ScriptBlock>
 
foreach ($ou in $_.LinkedTo) {
  $array = ($ou.DistinguishedName -split "," | Where-Object { $_ -like "OU=*" }) -replace "OU="
  if (-not $array) { return $ou -replace ",DC=","." -replace "DC=" }
  [array]::Reverse($array)
  $array -join "/"
}
 
                                </ScriptBlock>
                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
 
        <!-- DomainManagement.GroupPolicyObject -->
        <View>
            <Name>DomainManagement.GroupPolicyObject</Name>
            <ViewSelectedBy>
                <TypeName>DomainManagement.GroupPolicyObject</TypeName>
            </ViewSelectedBy>
            <TableControl>
                <AutoSize/>
                <TableHeaders>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem>
                                <PropertyName>DisplayName</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Description</PropertyName>
                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
 
        <!-- DomainManagement.OrganizationalUnit -->
        <View>
            <Name>DomainManagement.OrganizationalUnit</Name>
            <ViewSelectedBy>
                <TypeName>DomainManagement.OrganizationalUnit</TypeName>
            </ViewSelectedBy>
            <TableControl>
                <AutoSize/>
                <TableHeaders>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem>
                                <PropertyName>Present</PropertyName>
                            </TableColumnItem>
                           <TableColumnItem>
                                <PropertyName>Name</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Description</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Path</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>OldNames</PropertyName>
                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
         
        <!-- DomainManagement.PasswordPolicy -->
        <View>
            <Name>DomainManagement.PasswordPolicy</Name>
            <ViewSelectedBy>
                <TypeName>DomainManagement.PasswordPolicy</TypeName>
            </ViewSelectedBy>
            <TableControl>
                <AutoSize/>
                <TableHeaders>
                    <TableColumnHeader/>
                    <TableColumnHeader>
                        <Label>Prec.</Label>
                    </TableColumnHeader>
                    <TableColumnHeader/>
                    <TableColumnHeader>
                        <Label>PwdLength</Label>
                    </TableColumnHeader>
                    <TableColumnHeader>
                        <Label>Lockout</Label>
                    </TableColumnHeader>
                    <TableColumnHeader/>
                    <TableColumnHeader/>
                </TableHeaders>
                <TableRowEntries>
                    <TableRowEntry>
                        <TableColumnItems>
                            <TableColumnItem>
                                <PropertyName>Name</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Precedence</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>MaxPasswordAge</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>MinPasswordLength</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>LockoutThreshold</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>Description</PropertyName>
                            </TableColumnItem>
                            <TableColumnItem>
                                <PropertyName>SubjectGroup</PropertyName>
                            </TableColumnItem>
                        </TableColumnItems>
                    </TableRowEntry>
                </TableRowEntries>
            </TableControl>
        </View>
    </ViewDefinitions>
</Configuration>