Skip to content

Commit

Permalink
Fix DCDIAG and added Diagrammer.Core Module dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelinux committed Feb 20, 2024
1 parent 5b2e8e7 commit 54168df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
shell: pwsh
run: |
Install-Module -Name PScriboCharts -Repository PSGallery -Force
- name: Install Diagrammer.Core module
shell: pwsh
run: |
Install-Module -Name Diagrammer.Core -Repository PSGallery -Force
- name: Install Diagrammer.Microsoft.AD module
shell: pwsh
run: |
Expand Down
5 changes: 3 additions & 2 deletions Src/Private/Get-AbrADDCDiag.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Get-AbrADDCDiag {
}

process {
if ($DC) {
if (Test-Connection -ComputerName $DC -Quiet -Count 2) {
try {
$DCDIAG = Invoke-DcDiag -DomainController $DC
if ($DCDIAG) {
Expand Down Expand Up @@ -92,9 +92,10 @@ function Get-AbrADDCDiag {
} catch {
Write-PScriboMessage -IsWarning "Active Directory DCDiag Section: $($_.Exception.Message)"
}
} else {
Write-PScriboMessage -IsWarning "Active Directory DCDiag Section: Unable to connect to DC server $DC."
}
}

end {}

}

0 comments on commit 54168df

Please sign in to comment.