File tree 4 files changed +8
-2
lines changed
4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
RootModule = ' ADSec.psm1'
4
4
5
5
# Version number of this module.
6
- ModuleVersion = ' 1.0.3 '
6
+ ModuleVersion = ' 1.0.4 '
7
7
8
8
# ID used to uniquely identify this module
9
9
GUID = ' 1cfaca0a-3c7d-47dd-bb9f-9711310a0b9d'
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## 1.0.3 (2025-01-22)
3
+ ## 1.0.4 (2025-01-22)
4
4
5
5
- Upd: Raised PSFramework Dependency Version to 1.12.346
6
6
- Upd: Get-AdsAcl - Enabled retrieving ACL from deleted objects
7
+ - Upd: Get-AdsAcl - Detect insufficient access rights to retrieve security information
7
8
8
9
## 1.0.1 (2022-04-04)
9
10
Original file line number Diff line number Diff line change 13
13
' Enable-AdsInheritance.Processing' = ' Starting process to enable inheritance on {0}' # $pathItem
14
14
' Enable-AdsInheritance.ReadAcl.Failed' = ' Failed to access acl on {0}' # $pathItem
15
15
' Enable-AdsInheritance.Updating.Acl' = ' Enabling inheritance' #
16
+ ' Get-AdsAcl.NoSecurityProperty' = ' No security information found on {0}. Ensure you have sufficient access.' # $pathItem
16
17
' Get-AdsAcl.ObjectError' = ' Error accessing item: {0}' # $pathItem
17
18
' Get-AdsAcl.Processing' = ' Retrieving Acl from {0}' # $pathItem
18
19
' Get-AdsOrphanAce.Read.Failed' = ' Failed to access {0}' # $pathItem
Original file line number Diff line number Diff line change 57
57
try { $adObject = Get-ADObject @adParameters - Identity $pathItem - Properties ntSecurityDescriptor - IncludeDeletedObjects }
58
58
catch { Stop-PSFFunction - String ' Get-AdsAcl.ObjectError' - StringValues $pathItem - Target $pathItem - EnableException $EnableException - Cmdlet $PSCmdlet - ErrorRecord $_ - Continue }
59
59
$aclObject = $adObject.ntSecurityDescriptor
60
+ if (-not $aclObject ) {
61
+ Stop-PSFFunction - String ' Get-AdsAcl.NoSecurityProperty' - StringValues $pathItem - Target $pathItem - EnableException $EnableException - Cmdlet $PSCmdlet - Category PermissionDenied - Continue
62
+ }
63
+
60
64
Add-Member - InputObject $aclObject - MemberType NoteProperty - Name DistinguishedName - Value $adObject.DistinguishedName - Force
61
65
$aclObject
62
66
}
You can’t perform that action at this time.
0 commit comments