Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.7.14 #129

Merged
merged 23 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
34955d8
Improve Organizational Unit table #118
rebelinux Jun 28, 2023
b3f97dd
Add RID percent utilization health check #117
rebelinux Jun 28, 2023
9915024
Health Check : No more than 2 DNS servers Forwarders #116 Improve Do…
rebelinux Jun 28, 2023
676e35a
Health Check: All domains should have at least two domain controllers…
rebelinux Jun 29, 2023
d6fc269
Fix DCs discovery
rebelinux Jun 29, 2023
47e8b6b
Health Check: All domains should have at least two domain controllers…
rebelinux Jun 29, 2023
fdb89ad
AD DS: The infrastructure master for this domain should be held by a …
rebelinux Jun 29, 2023
d938d39
Merge branch 'AsBuiltReport:dev' into dev
rebelinux Jul 11, 2023
04a6bd2
Improve GPO Table(s) #128
rebelinux Jul 15, 2023
37e2938
Improve GPO Table(s) #128
rebelinux Jul 15, 2023
b54d573
Add gMSA identities health check #124
rebelinux Jul 15, 2023
73a28b4
Added GPO version to InfoLevel 2
rebelinux Jul 18, 2023
373446f
Add Service Accounts Assessment healthcheck #123
rebelinux Jul 19, 2023
efe27af
Add File Shares on a Domain Controller health check #125
rebelinux Jul 20, 2023
0efcf13
Modified DC pssession so it can be identified by name
rebelinux Jul 20, 2023
29df92c
Improve GPO Table(s) #128
rebelinux Jul 20, 2023
6080871
Add Privileged User Groups #126
rebelinux Jul 22, 2023
a360982
Add Privileged User Groups #126
rebelinux Jul 22, 2023
0d87011
Add File Shares on a Domain Controller health check #125
rebelinux Jul 22, 2023
69637ef
Add gMSA identities health check #124
rebelinux Jul 25, 2023
89a0f06
Add gMSA identities health check #124
rebelinux Jul 26, 2023
d9bcc47
Added test-connection to verify DC connectivity
rebelinux Jul 26, 2023
c7b4092
Added v0.7.14 changes
rebelinux Jul 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# :arrows_clockwise: Microsoft AD As Built Report Changelog

## [0.7.14] - 2023-07-25

### Fixed

- Resolve [#113](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/113)
- Resolve [#116](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/116)
- Resolve [#117](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/117)
- Resolve [#118](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/118)
- Resolve [#119](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/119)
- Resolve [#120](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/120)
- Resolve [#121](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/121)
- Resolve [#123](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/123)
- Resolve [#124](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/124)
- Resolve [#125](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/125)
- Resolve [#126](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/126)
- Resolve [#128](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/128)

## [0.7.13] - 2023-06-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrADDCRoleFeature.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Get-AbrADDCRoleFeature {
process {
Write-PscriboMessage "Collecting AD Domain Controller Role & Features information for domain $Domain"
try {
$DCPssSession = New-PSSession $DC -Credential $Credential -Authentication $Options.PSDefaultAuthentication
$DCPssSession = New-PSSession $DC -Credential $Credential -Authentication $Options.PSDefaultAuthentication -Name 'ADDCRoleFeature'
if ($DCPssSession) {
Write-PscriboMessage "Discovered Active Directory DC Role & Features information of $DC."
Section -ExcludeFromTOC -Style NOTOCHeading6 $($DC.ToString().ToUpper().Split(".")[0]) {
Expand Down
8 changes: 4 additions & 4 deletions Src/Private/Get-AbrADDFSHealth.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ function Get-AbrADDFSHealth {
}
try {
Write-PscriboMessage "Discovered AD Domain Sysvol Health information from $Domain."
$DC = Invoke-Command -Session $TempPssSession {Get-ADDomain -Identity $using:Domain | Select-Object -ExpandProperty ReplicaDirectoryServers | Select-Object -First 1}
$DCPssSession = New-PSSession $DC -Credential $Credential -Authentication $Options.PSDefaultAuthentication
$DC = Invoke-Command -Session $TempPssSession {(Get-ADDomain -Identity $using:Domain).ReplicaDirectoryServers | Select-Object -First 1}
$DCPssSession = New-PSSession $DC -Credential $Credential -Authentication $Options.PSDefaultAuthentication -Name 'DomainSysvolHealth'
# Code taken from ClaudioMerola (https://github.com/ClaudioMerola/ADxRay)
$SYSVOLFolder = Invoke-Command -Session $DCPssSession {Get-ChildItem -path $('\\'+$using:Domain+'\SYSVOL\'+$using:Domain) -Recurse | Where-Object -FilterScript {$_.PSIsContainer -eq $false} | Group-Object -Property Extension | ForEach-Object -Process {
New-Object -TypeName PSObject -Property @{
Expand Down Expand Up @@ -165,8 +165,8 @@ function Get-AbrADDFSHealth {
}
try {
Write-PscriboMessage "Discovered AD Domain Netlogon Health information from $Domain."
$DC = Invoke-Command -Session $TempPssSession {Get-ADDomain -Identity $using:Domain | Select-Object -ExpandProperty ReplicaDirectoryServers | Select-Object -First 1}
$DCPssSession = New-PSSession $DC -Credential $Credential -Authentication $Options.PSDefaultAuthentication
$DC = Invoke-Command -Session $TempPssSession {(Get-ADDomain -Identity $using:Domain).ReplicaDirectoryServers | Select-Object -First 1}
$DCPssSession = New-PSSession $DC -Credential $Credential -Authentication $Options.PSDefaultAuthentication -Name 'NetlogonHealth'
# Code taken from ClaudioMerola (https://github.com/ClaudioMerola/ADxRay)
$NetlogonFolder = Invoke-Command -Session $DCPssSession {Get-ChildItem -path $('\\'+$using:Domain+'\NETLOGON\') -Recurse | Where-Object -FilterScript {$_.PSIsContainer -eq $false} | Group-Object -Property Extension | ForEach-Object -Process {
New-Object -TypeName PSObject -Property @{
Expand Down
126 changes: 107 additions & 19 deletions Src/Private/Get-AbrADDNSInfrastructure.ps1

Large diffs are not rendered by default.

23 changes: 21 additions & 2 deletions Src/Private/Get-AbrADDomain.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrADDomain {
.DESCRIPTION

.NOTES
Version: 0.7.13
Version: 0.7.14
Author: Jonathan Colon
Twitter: @jcolonfzenpr
Github: rebelinux
Expand Down Expand Up @@ -59,10 +59,16 @@ function Get-AbrADDomain {
'Users Container' = ConvertTo-ADCanonicalName -DN $DomainInfo.UsersContainer -Domain $Domain
'ReadOnly Replica Directory Servers' = ConvertTo-EmptyToFiller $DomainInfo.ReadOnlyReplicaDirectoryServers
'ms-DS-MachineAccountQuota' = Invoke-Command -Session $TempPssSession {(Get-ADObject -Server $using:DC -Identity (($using:DomainInfo).DistinguishedName) -Properties ms-DS-MachineAccountQuota -ErrorAction SilentlyContinue).'ms-DS-MachineAccountQuota'}
'RID Issued/Available' = "$($RIDsIssued) / $($RIDsRemaining)"
'RID Issued/Available' = try {"$($RIDsIssued) / $($RIDsRemaining) ($([math]::Truncate($CompleteSIDS / $RIDsRemaining))% Issued)"} catch {"$($RIDsIssued)/$($RIDsRemaining)"}
}
$OutObj += [pscustomobject]$inobj

if ($HealthCheck.Domain.BestPractice) {
if ([math]::Truncate($CompleteSIDS / $RIDsRemaining) -gt 80) {
$OutObj | Set-Style -Style Warning -Property 'RID Issued/Available'
}
}

$TableParams = @{
Name = "Domain Summary - $($Domain.ToString().ToUpper())"
List = $true
Expand All @@ -72,6 +78,19 @@ function Get-AbrADDomain {
$TableParams['Caption'] = "- $($TableParams.Name)"
}
$OutObj | Table @TableParams
if ($HealthCheck.Domain.BestPractice -and ([math]::Truncate($CompleteSIDS / $RIDsRemaining) -gt 80)) {
Paragraph "Health Check:" -Bold -Underline
BlankLine
Paragraph {
Text "Best Practice:" -Bold
Text "The RID Issued is greater than 80%, a thorough evaluation of their utilization is recommended to prevent RIDs from being exhausted."
}
BlankLine
Paragraph {
Text "Reference:" -Bold
Text "https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/managing-rid-pool-depletion/ba-p/399736"
}
}
}
}
catch {
Expand Down
Loading
Loading