From 68c446b9b98db80d6cc683330f3b212907c02136 Mon Sep 17 00:00:00 2001 From: Harmj0y Date: Mon, 25 Apr 2016 19:52:39 -0400 Subject: Changed some property types in Get-ObjectACL --- Recon/PowerView.ps1 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Recon') diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index dd63509..cbe5d83 100644 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -2846,18 +2846,25 @@ function Get-ObjectAcl { Get the ACLs for the matt.admin user in the testlab.local domain and resolve relevant GUIDs to their display names. + + .EXAMPLE + + PS C:\> Get-NetOU -FullData | Get-ObjectAcl -ResolveGUIDs + + Enumerate the ACL permissions for all OUs in the domain. #> [CmdletBinding()] Param ( - [Parameter(ValueFromPipeline=$True)] + [Parameter(ValueFromPipelineByPropertyName=$True)] [String] $SamAccountName, + [Parameter(ValueFromPipelineByPropertyName=$True)] [String] $Name = "*", - [Alias('DN')] + [Parameter(ValueFromPipelineByPropertyName=$True)] [String] $DistinguishedName = "*", -- cgit v1.2.3