From 5ca7ba08fe86dc3f28e07b4316a6b1710b134eff Mon Sep 17 00:00:00 2001 From: Philip Woolford Date: Mon, 20 Jan 2020 23:58:24 +1030 Subject: [PATCH] Fix smart quotes Smart quotes in the previous patch caused issue importing the script. --- Recon/PowerView.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index b51863c..81a5e2a 100755 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -3634,7 +3634,7 @@ function Add-ObjectAcl { # restrict object changes to ACL only [System.DirectoryServices.DirectoryEntryConfiguration]$SecOptions = $Object.get_Options() - $SecOptions.SecurityMasks = [System.DirectoryServices.SecurityMasks]’Dacl’ + $SecOptions.SecurityMasks = [System.DirectoryServices.SecurityMasks]'Dacl' # add ACE $Object.PsBase.ObjectSecurity.AddAccessRule($ACE)