This repository was archived by the owner on Jan 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6141,12 +6141,12 @@ filter Get-GroupsXML {
6141
6141
[XML ]$GroupsXMLcontent = Get-Content $TargetGroupsXMLPath - ErrorAction Stop
6142
6142
6143
6143
# process all group properties in the XML
6144
- $GroupsXMLcontent | Select-Xml " // Groups" | Select-Object - ExpandProperty node | ForEach-Object {
6144
+ $GroupsXMLcontent | Select-Xml " /Groups/Group " | Select-Object - ExpandProperty node | ForEach-Object {
6145
6145
6146
- $Groupname = $_.Group. Properties.groupName
6146
+ $Groupname = $_.Properties.groupName
6147
6147
6148
6148
# extract the localgroup sid for memberof
6149
- $GroupSID = $_.Group. Properties.GroupSid
6149
+ $GroupSID = $_.Properties.groupSid
6150
6150
if (-not $LocalSid ) {
6151
6151
if ($Groupname -match ' Administrators' ) {
6152
6152
$GroupSID = ' S-1-5-32-544'
@@ -6163,16 +6163,16 @@ filter Get-GroupsXML {
6163
6163
}
6164
6164
6165
6165
# extract out members added to this group
6166
- $Members = $_.Group. Properties.members | Select-Object - ExpandProperty Member | Where-Object { $_.action -match ' ADD' } | ForEach-Object {
6166
+ $Members = $_.Properties.members | Select-Object - ExpandProperty Member | Where-Object { $_.action -match ' ADD' } | ForEach-Object {
6167
6167
if ($_.sid ) { $_.sid }
6168
6168
else { $_.name }
6169
6169
}
6170
6170
6171
6171
if ($Members ) {
6172
6172
6173
6173
# extract out any/all filters...I hate you GPP
6174
- if ($_.Group. filters ) {
6175
- $Filters = $_.Group. filters.GetEnumerator () | ForEach-Object {
6174
+ if ($_.filters ) {
6175
+ $Filters = $_.filters.GetEnumerator () | ForEach-Object {
6176
6176
New-Object - TypeName PSObject - Property @ {' Type' = $_.LocalName ;' Value' = $_.name }
6177
6177
}
6178
6178
}
You can’t perform that action at this time.
0 commit comments