Skip to content

Commit bdbc2c3

Browse files
authored
Merge pull request #228 from rebelinux/dev
v0.9.11 Wip
2 parents 219e583 + c7e359f commit bdbc2c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+556
-101
lines changed

.github/workflows/Release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ jobs:
2121
shell: pwsh
2222
run: |
2323
Install-Module -Name PSPKI -Repository PSGallery -Force
24-
- name: Install PScriboCharts module
25-
shell: pwsh
26-
run: |
27-
Install-Module -Name PScriboCharts -Repository PSGallery -Force
2824
- name: Install Diagrammer.Core module
2925
shell: pwsh
3026
run: |

AsBuiltReport.Microsoft.AD.psd1

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'AsBuiltReport.Microsoft.AD.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.9.10'
15+
ModuleVersion = '0.9.11'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -54,16 +54,12 @@
5454
RequiredModules = @(
5555
@{
5656
ModuleName = 'AsBuiltReport.Core';
57-
ModuleVersion = '1.5.1'
57+
ModuleVersion = '1.6.1'
5858
},
5959
@{
6060
ModuleName = 'PSPKI';
6161
ModuleVersion = '4.3.0'
6262
},
63-
@{
64-
ModuleName = 'PScriboCharts';
65-
ModuleVersion = '0.9.0'
66-
},
6763
@{
6864
ModuleName = 'Diagrammer.Core';
6965
ModuleVersion = '0.2.37'

AsBuiltReport.Microsoft.AD.psm1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# Get assemblies files and import them
2+
switch ($PSVersionTable.PSEdition) {
3+
'Core' {
4+
if ($IsMacOS) {
5+
Import-Module ("$PSScriptRoot{0}Src{0}Tools{0}Bin{0}osx-x64{0}AsBuiltReportChart.dll" -f [System.IO.Path]::DirectorySeparatorChar)
6+
} elseif ($IsLinux) {
7+
Import-Module ("$PSScriptRoot{0}Src{0}Tools{0}Bin{0}linux-x64{0}AsBuiltReportChart.dll" -f [System.IO.Path]::DirectorySeparatorChar)
8+
} elseif ($IsWindows) {
9+
Import-Module ("$PSScriptRoot{0}Src{0}Tools{0}Bin{0}windows-x64{0}AsBuiltReportChart.dll" -f [System.IO.Path]::DirectorySeparatorChar)
10+
}
11+
}
12+
'Desktop' {
13+
Import-Module ("$PSScriptRoot{0}Src{0}Tools{0}Bin{0}windows-x64{0}AsBuiltReportChart.dll" -f [System.IO.Path]::DirectorySeparatorChar)
14+
}
15+
default {
16+
Write-Verbose -Message 'Unable to find compatible assemblies.'
17+
}
18+
}
19+
120
# Get public and private function definition files and dot source them
221
$Public = @(Get-ChildItem -Path $PSScriptRoot\Src\Public\*.ps1 -ErrorAction SilentlyContinue)
322
$Private = @(Get-ChildItem -Path $PSScriptRoot\Src\Private\*.ps1 -ErrorAction SilentlyContinue)

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
##### This project is community maintained and has no sponsorship from Microsoft, its employees or any of its affiliates.
99

10+
## [0.9.11] - Unreleased
11+
12+
### :toolbox: Added
13+
14+
- Migrate all chart to AsBuiltReport.Chart
15+
- Add bin modules to report
16+
17+
### :arrows_clockwise: Changed
18+
19+
- Update module version to `0.9.11`
20+
- Upgrade AsBuiltReport.Core module to version `1.6.1`
21+
22+
### :bug: Fixed
23+
24+
- Fix the computer/user stats table so that it displays the correct values
25+
- Fix Avoid using the ! negation operator warning in New-AbrADDiagram cmdlet
26+
27+
### :x: Removed
28+
29+
- Remove PscriboCharts module dependency
30+
1031
## [0.9.10] - 2026-01-26
1132

1233
### :arrows_clockwise: Changed

Src/Private/Get-AbrADDomainController.ps1

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,15 @@ function Get-AbrADDomainController {
122122
$TableParams['Caption'] = "- $($TableParams.Name)"
123123
}
124124
try {
125-
# Chart Section
126125
$sampleData = $inObj.GetEnumerator() | Select-Object @{ Name = 'Name'; Expression = { $_.key } }, @{ Name = 'Value'; Expression = { $_.value } } | Sort-Object -Property 'Category'
127-
128-
$chartFileItem = Get-PieChart -SampleData $sampleData -ChartName 'DomainControllerObject' -XField 'Name' -YField 'value' -ChartLegendName 'Category' -ChartTitleName 'DomainControllerObject' -ChartTitleText 'DC vs GC Distribution' -ReversePalette $True
129-
126+
$Chart = New-PieChart -Values $sampleData.Value -Labels $sampleData.Name -Title 'DC vs GC Distribution' -EnableLegend -LegendOrientation Horizontal -LegendAlignment UpperCenter -Width 600 -Height 400 -Format base64 -TitleFontSize 20 -TitleFontBold -EnableCustomColorPalette -CustomColorPalette $AbrCustomPalette -EnableChartBorder -ChartBorderStyle DenselyDashed -ChartBorderColor DarkBlue
130127
} catch {
131-
Write-PScriboMessage -IsWarning -Message "$($_.Exception.Message) (Domain Controller Count Chart)"
128+
Write-PScriboMessage -IsWarning $_.Exception.Message
132129
}
133130
if ($OutObj) {
134-
if ($chartFileItem) {
131+
if ($Chart) {
135132
BlankLine
136-
Image -Text 'Domain Controller Object - Diagram' -Align 'Center' -Percent 100 -Base64 $chartFileItem
133+
Image -Text 'Domain Controller Object - Chart' -Align 'Center' -Percent 100 -Base64 $Chart
137134
}
138135
$OutObj | Table @TableParams
139136
}

0 commit comments

Comments
 (0)