From 0ce2878dea8486232865a02c7d7808c1d843c9ca Mon Sep 17 00:00:00 2001 From: Adwiteeya Agrawal Date: Mon, 23 Nov 2020 10:51:14 -0800 Subject: [PATCH] Update Powerview.cs Change fail condition for SIDs in Get_DomainGPOUserLocalGroupMapping --- SharpView/PowerView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharpView/PowerView.cs b/SharpView/PowerView.cs index 1829cca..2897e22 100644 --- a/SharpView/PowerView.cs +++ b/SharpView/PowerView.cs @@ -5461,7 +5461,7 @@ public static IEnumerable Get_DomainGPOUserLocalGroupMappi TargetSIDs.AddRange(sid); } TargetObjectSID = TargetSIDs; - if (TargetSIDs != null) + if (TargetSIDs == null) { throw new Exception($@"[Get-DomainGPOUserLocalGroupMapping] Unable to retrieve SID for identity '{args.Identity}'"); }