From be2b75377c220cb3e2072f46b3b32c444d405444 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 19 Sep 2022 00:24:16 +0200 Subject: [PATCH] Version 7.2 README --- ADACLScan.ps1 | 729 ++++++++++++++++++++++++++++---------------------- 1 file changed, 411 insertions(+), 318 deletions(-) diff --git a/ADACLScan.ps1 b/ADACLScan.ps1 index 316342c..bff1aac 100644 --- a/ADACLScan.ps1 +++ b/ADACLScan.ps1 @@ -99,15 +99,16 @@ https://github.com/canix1/ADACLScanner .NOTES - **Version: 7.1** + **Version: 7.2** - **28 August, 2022** - - *New Features* - * Connect using credentials from CLI + **19 September, 2022** + + *New Features* + * Filter on ApplyTO like "user" or multiple values like "user | computer" **Fixed issues** - * Get-Perm function, argument's name "Access" is not correct. + * Missing command line parameter -SkipProtected + * Comparing function was missing filtering functions #> Param @@ -228,7 +229,7 @@ Param [ValidateNotNull()] [ValidateNotNullOrEmpty()] [String] - $Returns="ALL", + $TemplateFilter="ALL", # User ExcelFile to defined your own path for the excel output # This parameter will allow you to type the excel file path. @@ -271,6 +272,16 @@ Param [switch] $SkipDefaults, + # Skip protected permissions + # This parameter will skip permissions that match the permissions set when selecting "protect object from accidental deletaion" + [Alias("sp")] + [Parameter(Mandatory=$false, + ParameterSetName='Default')] + [ValidateNotNull()] + [ValidateNotNullOrEmpty()] + [switch] + $SkipProtected, + # Skip Built-in security principals # This parameter will skip permissions that match the built in groups [Alias("sb")] @@ -281,6 +292,17 @@ Param [switch] $SkipBuiltIn, + # Filter the trustees on object type. + # This parameter will filter the result on an object type. + [Alias("rt")] + [Parameter(Mandatory=$false, + ParameterSetName='Default')] + [ValidateSet("user", "computer", "group","msds-groupmanagedserviceaccount","*")] + [ValidateNotNull()] + [ValidateNotNullOrEmpty()] + [String] + $ReturnObjectType="*", + # Expand groups # This parameter will search any nested groups to show all security prinicpals that have access. [Alias("rf")] @@ -427,8 +449,8 @@ Param $AccessType, # Filter ACL for a specific permission - # Example 1. -Permissions "WriteProperty" - # Example 2. -Permissions "GenericAll" + # Example 1. -Permissions "GenericAll" + # Example 2. -Permissions "WriteProperty|ExtendedRight" [Alias("perm")] [Parameter(Mandatory=$false)] [ValidateNotNull()] @@ -437,8 +459,8 @@ Param $Permission, # Filter ACL ObjectName - # Example 1. -ApplyTo computer - # Example 2. -ApplyTo user + # Example 1. -ApplyTo user + # Example 2. -ApplyTo "user|computer" [Alias("at")] [Parameter(Mandatory=$false)] [ValidateNotNull()] @@ -746,7 +768,7 @@ $xamlBase = @" -