Skip to content

Commit

Permalink
Misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelinux committed Apr 4, 2024
1 parent 5ab468b commit 94fb7b7
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 19 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
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
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 94fb7b7

Please sign in to comment.