Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit c5eb994

Browse files
committed
corrected verbose output for some PowerView functions
1 parent fe7746f commit c5eb994

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Recon/PowerView.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8536,7 +8536,7 @@ https://social.technet.microsoft.com/Forums/windowsserver/en-US/df3bfd33-c070-4a
85368536
}
85378537
}
85388538
catch {
8539-
Write-Warning "[Add-DomainObjectAcl] Error granting principal $($PrincipalObject.distinguishedname) '$Rights' on $($TargetObject.Properties.distinguishedname) : $_"
8539+
Write-Verbose "[Add-DomainObjectAcl] Error granting principal $($PrincipalObject.distinguishedname) '$Rights' on $($TargetObject.Properties.distinguishedname) : $_"
85408540
}
85418541
}
85428542
}
@@ -8789,7 +8789,7 @@ https://social.technet.microsoft.com/Forums/windowsserver/en-US/df3bfd33-c070-4a
87898789
}
87908790

87918791
ForEach ($PrincipalObject in $Principals) {
8792-
Write-Verbose "[Remove-DomainObjectAcl] Granting principal $($PrincipalObject.distinguishedname) '$Rights' on $($TargetObject.Properties.distinguishedname)"
8792+
Write-Verbose "[Remove-DomainObjectAcl] Removing principal $($PrincipalObject.distinguishedname) '$Rights' from $($TargetObject.Properties.distinguishedname)"
87938793

87948794
try {
87958795
$Identity = [System.Security.Principal.IdentityReference] ([System.Security.Principal.SecurityIdentifier]$PrincipalObject.objectsid)
@@ -8817,7 +8817,7 @@ https://social.technet.microsoft.com/Forums/windowsserver/en-US/df3bfd33-c070-4a
88178817
}
88188818
}
88198819
catch {
8820-
Write-Warning "[Remove-DomainObjectAcl] Error granting principal $($PrincipalObject.distinguishedname) '$Rights' on $($TargetObject.Properties.distinguishedname) : $_"
8820+
Write-Verbose "[Remove-DomainObjectAcl] Error removing principal $($PrincipalObject.distinguishedname) '$Rights' from $($TargetObject.Properties.distinguishedname) : $_"
88218821
}
88228822
}
88238823
}

0 commit comments

Comments
 (0)