From 6daaef2706953caabbce44e788493c99de8970eb Mon Sep 17 00:00:00 2001 From: Meatballs Date: Sun, 3 Apr 2016 08:09:33 +0100 Subject: //Group -> //Groups --- Recon/PowerView.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Recon') diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index 8672e76..d95443f 100644 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -5440,7 +5440,7 @@ function Get-GroupsXML { $FolderPath = $Parts[0..($Parts.length-2)] -join '\' $FilePath = $Parts[-1] $RandDrive = ("abcdefghijklmnopqrstuvwxyz".ToCharArray() | Get-Random -Count 7) -join '' - + Write-Verbose "Mounting path $GroupsXMLPath using a temp PSDrive at $RandDrive" try { @@ -5462,7 +5462,7 @@ function Get-GroupsXML { [xml] $GroupsXMLcontent = Get-Content $GroupsXMLPath -ErrorAction Stop # process all group properties in the XML - $GroupsXMLcontent | Select-Xml "//Group" | Select-Object -ExpandProperty node | ForEach-Object { + $GroupsXMLcontent | Select-Xml "//Groups" | Select-Object -ExpandProperty node | ForEach-Object { $Members = @() $MemberOf = @() -- cgit v1.2.3