Skip to content

Commit

Permalink
Merge pull request #27 from rebelinux/dev
Browse files Browse the repository at this point in the history
Fix v0.5.4 imporvements
  • Loading branch information
rebelinux authored Apr 8, 2024
2 parents 4741965 + 1c3d366 commit 915ed14
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ on:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
schedule:
- cron: '20 14 * * 1'

permissions:
contents: read
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.5.4] - Unreleased

### Added
### Fixed

- Fix [#25](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.Windows/issues/25)
- Fix [#26](https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.Windows/issues/26)

## [0.5.3] - 2024-03-06

Expand Down
13 changes: 7 additions & 6 deletions Src/Private/Get-AbrWinApplication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Get-AbrWinApplication {
.DESCRIPTION
Documents the configuration of Microsoft Windows Server in Word/HTML/Text formats using PScribo.
.NOTES
Version: 0.5.2
Version: 0.5.4
Author: Andrew Ramsay
Editor: Jonathan Colon
Twitter: @asbuiltreport
Expand Down Expand Up @@ -40,14 +40,15 @@ function Get-AbrWinApplication {
$TempAddRemoveReport = [PSCustomObject]@{
'Application Name' = $App.DisplayName
'Publisher' = $App.Publisher
'Version' = Switch ([string]::IsNullOrEmpty($App.Version)) {
'Version' = Switch ([string]::IsNullOrEmpty($App.DisplayVersion)) {
$true { "--" }
$false { $App.Version }
$false { $App.DisplayVersion }
default { "Unknown" }
}
'Install Date' = Switch (($App.InstallDate).count) {
0 { "--" }
default { $App.InstallDate }
'Install Date' = Switch ([string]::IsNullOrEmpty($App.InstallDate)) {
$true { "--" }
$false {$App.InstallDate}
default { 'Unknown' }
}
}
$AddRemoveReport += $TempAddRemoveReport
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrWinDNSZone.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function Get-AbrWinDNSZone {
<#
.SYNOPSIS
Used by As Built Report to retrieve Microsoft Windows Domain Name System Zone information.
Used by As Built Report to retrieve Microsoft Windows Domain Name System Zone information.
.DESCRIPTION
Documents the configuration of Microsoft Windows Server in Word/HTML/Text formats using PScribo.
.NOTES
Expand Down
12 changes: 5 additions & 7 deletions Src/Private/Get-AbrWinFOCluster.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Get-AbrWinFOCluster {

begin {
Write-PScriboMessage "FailOverCluster InfoLevel set at $($InfoLevel.FailOverCluster)."
Write-PscriboMessage "Collecting Host FailOver Cluster Server information."
Write-PScriboMessage "Collecting Host FailOver Cluster Server information."
}

process {
Expand All @@ -38,9 +38,8 @@ function Get-AbrWinFOCluster {
'Description' = ConvertTo-EmptyToFiller $Settings.Description
}
$OutObj += [pscustomobject]$inobj
}
catch {
Write-PscriboMessage -IsWarning $_.Exception.Message
} catch {
Write-PScriboMessage -IsWarning $_.Exception.Message
}

$TableParams = @{
Expand All @@ -53,9 +52,8 @@ function Get-AbrWinFOCluster {
}
$OutObj | Table @TableParams
}
}
catch {
Write-PscriboMessage -IsWarning $_.Exception.Message
} catch {
Write-PScriboMessage -IsWarning $_.Exception.Message
}
}

Expand Down
12 changes: 6 additions & 6 deletions Src/Private/Get-AbrWinFOClusterFaultDomain.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ function Get-AbrWinFOClusterFaultDomain {
'Name' = $Setting.Name
'Type' = $Setting.Type
'Parent Name' = Switch ([string]::IsNullOrEmpty($Setting.ParentName)) {
$true {"--"}
$false {$Setting.ParentName}
default {'Unknown'}
$true { "--" }
$false { $Setting.ParentName }
default { 'Unknown' }
}
'Children Names' = Switch ([string]::IsNullOrEmpty($Setting.ChildrenNames)) {
$true {"--"}
$false {$Setting.ChildrenNames}
default {'Unknown'}
$true { "--" }
$false { $Setting.ChildrenNames }
default { 'Unknown' }
}
'Location' = ConvertTo-EmptyToFiller $Setting.Location
}
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrWinHostStorageVolume.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function Get-AbrWinHostStorageVolume {
process {
if ($InfoLevel.Storage -ge 1) {
try {
$HostVolumes = Invoke-Command -Session $TempPssSession -ScriptBlock { Get-Volume | Where-Object {$_.DriveType -ne "CD-ROM" -and $NUll -ne $_.DriveLetter} }
$HostVolumes = Invoke-Command -Session $TempPssSession -ScriptBlock { Get-Volume | Where-Object {$_.DriveType -ne "CD-ROM" -and $_.DriveLetter} }
if ($HostVolumes) {
Section -Style Heading3 'Host Volumes' {
Paragraph 'The following section details local volumes on the host'
Expand Down
4 changes: 2 additions & 2 deletions Src/Private/Get-AbrWinNetDNSClient.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function Get-AbrWinNetDNSClient {
$DnsClient = Invoke-Command -Session $TempPssSession { Get-DnsClientGlobalSetting }
if ($DnsClient) {
Section -Style Heading3 'DNS Client' {
Paragraph 'The following table details the DNS Seach Domains'
Paragraph 'The following table details the DNS Search Domains'
BlankLine
$DnsClientReport = [PSCustomObject]@{
'DNS Suffix' = $DnsClient.SuffixSearchList -Join ","
Expand All @@ -39,7 +39,7 @@ function Get-AbrWinNetDNSClient {
'Devolution Level' = $DnsClient.DevolutionLevel
}
$TableParams = @{
Name = "DNS Seach Domain"
Name = "DNS Search Domain"
List = $false
ColumnWidths = 40, 20, 20, 20
}
Expand Down
2 changes: 1 addition & 1 deletion Src/Private/Get-AbrWinSQLBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Get-AbrWinSQLBuild {
$Build = Get-DbaBuild -SqlInstance $SQLServer -WarningAction SilentlyContinue
if ($Properties) {
Section -Style Heading3 'General Information' {
Paragraph 'The following table details sql server Properties information'
Paragraph 'The following table details sql server properties information'
BlankLine
[array]$SQLServerObjt = @()
$TempSQLServerObjt = [PSCustomObject]@{
Expand Down

0 comments on commit 915ed14

Please sign in to comment.