Skip to content

Commit e2e16b5

Browse files
author
Robin Granberg
committed
8.4 version - incorrect parameter name
1 parent 9fee459 commit e2e16b5

File tree

2 files changed

+11
-27
lines changed

2 files changed

+11
-27
lines changed

ADACLScan.ps1

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,12 @@
105105

106106
.NOTES
107107

108-
**Version: 8.3**
108+
**Version: 8.4**
109109

110-
**26 May, 2025**
110+
**11 June, 2025**
111111

112112
**Fixed issues**
113-
* Running from CLI does not require "ApartmentState" to be Single-Threaded Apartment (STA).
114-
115-
**New Features**
116-
* Search with onelevel and set the depth of the search
117-
* Get version number of the ntsecuritydescription
118-
* Export defaultsecuritydescriptor with readable permissions
119-
* Skip banner in CLI
113+
* Removed incorrect parameter name 'bolObjClass'
120114

121115

122116
#>
@@ -522,7 +516,7 @@ Param
522516

523517
)
524518

525-
[string]$ADACLScanVersion = "-------`nAD ACL Scanner 8.3 , Author: Robin Granberg, @ipcdollar1, Github: github.com/canix1 `n-------"
519+
[string]$ADACLScanVersion = "-------`nAD ACL Scanner 8.4 , Author: Robin Granberg, @ipcdollar1, Github: github.com/canix1 `n-------"
526520
[string]$global:SessionID = [GUID]::NewGuid().Guid
527521
[string]$global:ACLHTMLFileName = "ACLHTML-$SessionID"
528522
[string]$global:SPNHTMLFileName = "SPNHTML-$SessionID"
@@ -13210,13 +13204,13 @@ Function ConvertCSVtoHTM {
1321013204
if ($tmpOU -ne $strOU) {
1321113205

1321213206
$bolOUHeader = $true
13213-
WriteOUT -bolACLExist $true -sd $txtSdObject -DSObject $strOU -Canonical $CanonicalName -strColorTemp $strColorTemp -boolReplMetaDate $bolReplMeta -strReplMetaDate $objLastChange -strObjClass $strObjectClass -bolObjClass $bolObjType -Type $OutputFormat -bolShowCriticalityColor $bolShowCriticalityColor -CREDS $CREDS -Version $strVersion -bolShowOUProtected $bolGetOUProtected -bolOUPRotected $bolOUProtected -boolACLSize $bolACLsize -strACLSize $strACLSize -CompareMode $bolCompare -OUHeader $bolOUHeader -FilterMode $bolFilter -bolTranslateGUID $bolGUIDtoText -GPO $GPO -GPODisplayname $GPOdisplayname -strSDDL $strSDDL -htmfileout $strFileHTA -bolCriticalityLevel $ShowCriticalityColor
13207+
WriteOUT -bolACLExist $true -sd $txtSdObject -DSObject $strOU -Canonical $CanonicalName -strColorTemp $strColorTemp -boolReplMetaDate $bolReplMeta -strReplMetaDate $objLastChange -strObjClass $strObjectClass -Type $OutputFormat -bolShowCriticalityColor $bolShowCriticalityColor -CREDS $CREDS -Version $strVersion -bolShowOUProtected $bolGetOUProtected -bolOUPRotected $bolOUProtected -boolACLSize $bolACLsize -strACLSize $strACLSize -CompareMode $bolCompare -OUHeader $bolOUHeader -FilterMode $bolFilter -bolTranslateGUID $bolGUIDtoText -GPO $GPO -GPODisplayname $GPOdisplayname -strSDDL $strSDDL -htmfileout $strFileHTA -bolCriticalityLevel $ShowCriticalityColor
1321413208

1321513209

1321613210
$tmpOU = $strOU
1321713211
} else {
1321813212
$bolOUHeader = $false
13219-
WriteOUT -bolACLExist $true -sd $txtSdObject -DSObject $strOU -Canonical $CanonicalName -strColorTemp $strColorTemp -boolReplMetaDate $bolReplMeta -strReplMetaDate $objLastChange -strObjClass $strObjectClass -bolObjClass $bolObjType -Type $OutputFormat -bolShowCriticalityColor $bolShowCriticalityColor -CREDS $CREDS -Version $strVersion -bolShowOUProtected $bolGetOUProtected -bolOUPRotected $bolOUProtected -boolACLSize $bolACLsize -strACLSize $strACLSize -CompareMode $bolCompare -OUHeader $bolOUHeader -FilterMode $bolFilter -bolTranslateGUID $bolGUIDtoText -GPO $GPO -GPODisplayname $GPOdisplayname -strSDDL $strSDDL -htmfileout $strFileHTA -bolCriticalityLevel $ShowCriticalityColor
13213+
WriteOUT -bolACLExist $true -sd $txtSdObject -DSObject $strOU -Canonical $CanonicalName -strColorTemp $strColorTemp -boolReplMetaDate $bolReplMeta -strReplMetaDate $objLastChange -strObjClass $strObjectClass -Type $OutputFormat -bolShowCriticalityColor $bolShowCriticalityColor -CREDS $CREDS -Version $strVersion -bolShowOUProtected $bolGetOUProtected -bolOUPRotected $bolOUProtected -boolACLSize $bolACLsize -strACLSize $strACLSize -CompareMode $bolCompare -OUHeader $bolOUHeader -FilterMode $bolFilter -bolTranslateGUID $bolGUIDtoText -GPO $GPO -GPODisplayname $GPOdisplayname -strSDDL $strSDDL -htmfileout $strFileHTA -bolCriticalityLevel $ShowCriticalityColor
1322013214

1322113215

1322213216
}
@@ -13574,7 +13568,7 @@ Function Get-DefaultSD {
1357413568
Write-PermCSVTemplate -sd $sd -object $entry.distinguishedName -canonical $CanonicalName -objType $strObjectClassName -fileout $File -ACLMeta $bolReplMeta -strACLDate $strLastChangeDate -strInvocationID $strOrigInvocationID -strOrgUSN $strOrigUSN -Outfile $true -GPO $GPO -GPOdisplayname $GPOdisplayname -CREDS $CREDS
1357513569
} else {
1357613570
$OutputFormat = "Object"
13577-
WriteOUT -bolACLExist $True -sd $sd -DSObject $entry.distinguishedName -Canonical $CanonicalName -boolReplMetaDate $bolReplMeta -strReplMetaDate $strLastChangeDate -strObjClass $strObjectClassName -bolObjClass $true -Type $OutputFormat -bolShowCriticalityColor $bolShowCriticalityColor -CREDS $CREDS -Version $strVersion
13571+
WriteOUT -bolACLExist $True -sd $sd -DSObject $entry.distinguishedName -Canonical $CanonicalName -boolReplMetaDate $bolReplMeta -strReplMetaDate $strLastChangeDate -strObjClass $strObjectClassName -Type $OutputFormat -bolShowCriticalityColor $bolShowCriticalityColor -CREDS $CREDS -Version $strVersion
1357813572
}
1357913573
} else {
1358013574
WriteDefSDAccessHTM -bolACLExist $true -sd $sd -bolObjClass $true -strObjectClass $strObjectClassName -strColorTemp $strColorTemp -htmfileout $strFileDefSDHTA -strFileHTM $strFileDefSDHTM -OUHeader $bolOUHeader -boolReplMetaDate $bolReplMeta -strReplMetaVer $strVersion -strReplMetaDate $strLastChangeDate -bolCriticalityLevel $bolShowCriticalityColor -CompareMode $bolCompare -xlsxout $strFileEXCEL -Type $OutType

README.md

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,14 @@
22

33
## Current version
44

5-
**Version: 8.3**
5+
**Version: 8.4**
66

7-
**26 May, 2025**
7+
**11 June, 2025**
88

9-
**SHA256:** E7E5E1E9600326E8C9F0E3816A69BAF1D55B9EC26CA6E01ED6F75562E9AE5869
9+
**SHA256:** 170D73007102C2D19611BE712346A8D94246C0A09FFD9D33F32455D6B398E4BD
1010

1111
**Fixed issues**
12-
* Running from CLI does not require "ApartmentState" to be Single-Threaded Apartment (STA).
13-
14-
**New Features**
15-
* Search with onelevel and set the depth of the search
16-
* Example:
17-
```
18-
ADACLScan.ps1 -Base rootdse -SearchDepth 3 -LDAPFilter "(objectClass=OrganizationalUnit)"
19-
```
20-
* Get version number of the ntsecuritydescription
21-
* Export defaultsecuritydescriptor with readable permissions
22-
* Skip banner in CLI with -NoBanner
12+
* Removed incorrect parameter name 'bolObjClass'
2313

2414

2515

0 commit comments

Comments
 (0)