From d933ef72247c0869d13f7892dd1ba6b1c6949d95 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Tue, 26 Aug 2025 22:14:10 +0200 Subject: [PATCH 1/7] Change verbose messages to debug messages --- CHANGELOG.md | 10 ++++++ source/Public/Compare-DscParameterState.ps1 | 34 +++++++++---------- source/Public/Find-Certificate.ps1 | 2 +- .../Get-LocalizedDataForInvariantCulture.ps1 | 2 +- source/Public/Test-IsNanoServer.ps1 | 2 +- source/Public/Test-ModuleExist.ps1 | 6 ++-- 6 files changed, 33 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e234c8..a85022d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 proper domain name resolution on Windows, Linux, and macOS. - Improved error handling to gracefully fallback to short name when DNS resolution fails. +- `Compare-DscParameterState` + - Changed detailed diagnostic messages from `Write-Verbose` to `Write-Debug` + for variable values, type comparisons, and internal diagnostics. +- `Test-ModuleExist` + - Changed module filtering messages from `Write-Verbose` to `Write-Debug` + for internal implementation details. +- `Test-IsNanoServer` + - Changed operating system SKU diagnostic message from `Write-Verbose` to `Write-Debug`. +- `Find-Certificate` + - Changed certificate filter diagnostic message from `Write-Verbose` to `Write-Debug`. ## [0.22.0] - 2025-04-25 diff --git a/source/Public/Compare-DscParameterState.ps1 b/source/Public/Compare-DscParameterState.ps1 index 9dd41b6..e1cfde2 100644 --- a/source/Public/Compare-DscParameterState.ps1 +++ b/source/Public/Compare-DscParameterState.ps1 @@ -309,24 +309,24 @@ function Compare-DscParameterState # This is a credential object. Compare only the user name if ($currentType.Name -eq 'PSCredential' -and $currentValue.UserName -eq $desiredValue.UserName) { - Write-Verbose -Message ($script:localizedData.MatchPsCredentialUsernameMessage -f $currentValue.UserName, $desiredValue.UserName) + Write-Debug -Message ($script:localizedData.MatchPsCredentialUsernameMessage -f $currentValue.UserName, $desiredValue.UserName) continue # pass to the next key } elseif ($currentType.Name -ne 'string') { - Write-Verbose -Message ($script:localizedData.NoMatchPsCredentialUsernameMessage -f $currentValue.UserName, $desiredValue.UserName) + Write-Debug -Message ($script:localizedData.NoMatchPsCredentialUsernameMessage -f $currentValue.UserName, $desiredValue.UserName) $InDesiredStateTable.InDesiredState = $false } # Assume the string is our username when the matching desired value is actually a credential if ($currentType.Name -eq 'string' -and $currentValue -eq $desiredValue.UserName) { - Write-Verbose -Message ($script:localizedData.MatchPsCredentialUsernameMessage -f $currentValue, $desiredValue.UserName) + Write-Debug -Message ($script:localizedData.MatchPsCredentialUsernameMessage -f $currentValue, $desiredValue.UserName) continue # pass to the next key } else { - Write-Verbose -Message ($script:localizedData.NoMatchPsCredentialUsernameMessage -f $currentValue, $desiredValue.UserName) + Write-Debug -Message ($script:localizedData.NoMatchPsCredentialUsernameMessage -f $currentValue, $desiredValue.UserName) $InDesiredStateTable.InDesiredState = $false } } @@ -337,13 +337,13 @@ function Compare-DscParameterState if (($desiredType.Name -ne 'Unknown' -and $currentType.Name -ne 'Unknown') -and $desiredType.FullName -ne $currentType.FullName) { - Write-Verbose -Message ($script:localizedData.NoMatchTypeMismatchMessage -f $key, $currentType.FullName, $desiredType.FullName) + Write-Debug -Message ($script:localizedData.NoMatchTypeMismatchMessage -f $key, $currentType.FullName, $desiredType.FullName) $InDesiredStateTable.InDesiredState = $false continue # pass to the next key } elseif ($desiredType.Name -eq 'Unknown' -and $desiredType.Name -ne $currentType.Name) { - Write-Verbose -Message ($script:localizedData.NoMatchTypeMismatchMessage -f $key, $currentType.Name, $desiredType.Name) + Write-Debug -Message ($script:localizedData.NoMatchTypeMismatchMessage -f $key, $currentType.Name, $desiredType.Name) $InDesiredStateTable.InDesiredState = $false continue # pass to the next key } @@ -352,7 +352,7 @@ function Compare-DscParameterState #region Check if the value of Current and desired state is the same but only if they are not an array if ($currentValue -eq $desiredValue -and -not $desiredType.IsArray) { - Write-Verbose -Message ($script:localizedData.MatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) + Write-Debug -Message ($script:localizedData.MatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) continue # pass to the next key } #endregion check same value @@ -368,31 +368,31 @@ function Compare-DscParameterState # if there no key, don't need to check if (-not $checkDesiredValue) { - Write-Verbose -Message ($script:localizedData.MatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) + Write-Debug -Message ($script:localizedData.MatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) continue # pass to the next key } #endregion #region Check if desired type is array, if no Hashtable and current type hashtable to if ($desiredType.IsArray -or $desiredType.ImplementedInterfaces -contains [System.Collections.IList]) { - Write-Verbose -Message ($script:localizedData.TestDscParameterCompareMessage -f $key, $desiredType.FullName) + Write-Debug -Message ($script:localizedData.TestDscParameterCompareMessage -f $key, $desiredType.FullName) # Check if the currentValues and desiredValue are empty array. if (-not $currentValue -and -not $desiredValue) { - Write-Verbose -Message ($script:localizedData.MatchValueMessage -f $desiredType.FullName, $key, 'empty array', 'empty array') + Write-Debug -Message ($script:localizedData.MatchValueMessage -f $desiredType.FullName, $key, 'empty array', 'empty array') continue } elseif (-not $currentValue) { #If only currentvalue is empty, the configuration isn't compliant. - Write-Verbose -Message ($script:localizedData.NoMatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) + Write-Debug -Message ($script:localizedData.NoMatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) $InDesiredStateTable.InDesiredState = $false continue } elseif ($currentValue.Count -ne $desiredValue.Count) { #If there is a difference between the number of objects in arrays, this isn't compliant. - Write-Verbose -Message ($script:localizedData.NoMatchValueDifferentCountMessage -f $desiredType.FullName, $key, $currentValue.Count, $desiredValue.Count) + Write-Debug -Message ($script:localizedData.NoMatchValueDifferentCountMessage -f $desiredType.FullName, $key, $currentValue.Count, $desiredValue.Count) $InDesiredStateTable.InDesiredState = $false continue } @@ -439,7 +439,7 @@ function Compare-DscParameterState if (($desiredType.Name -ne 'Unknown' -and $currentType.Name -ne 'Unknown') -and $desiredType.FullName -ne $currentType.FullName) { - Write-Verbose -Message ($script:localizedData.NoMatchElementTypeMismatchMessage -f $key, $i, $currentType.FullName, $desiredType.FullName) + Write-Debug -Message ($script:localizedData.NoMatchElementTypeMismatchMessage -f $key, $i, $currentType.FullName, $desiredType.FullName) $InDesiredStateTable.InDesiredState = $false continue } @@ -504,13 +504,13 @@ function Compare-DscParameterState if ($desiredArrayValues[$i] -ne $currentArrayValues[$i]) { - Write-Verbose -Message ($script:localizedData.NoMatchElementValueMismatchMessage -f $i, $desiredType.FullName, $key, $currentArrayValues[$i], $desiredArrayValues[$i]) + Write-Debug -Message ($script:localizedData.NoMatchElementValueMismatchMessage -f $i, $desiredType.FullName, $key, $currentArrayValues[$i], $desiredArrayValues[$i]) $InDesiredStateTable.InDesiredState = $false continue } else { - Write-Verbose -Message ($script:localizedData.MatchElementValueMessage -f $i, $desiredType.FullName, $key, $currentArrayValues[$i], $desiredArrayValues[$i]) + Write-Debug -Message ($script:localizedData.MatchElementValueMessage -f $i, $desiredType.FullName, $key, $currentArrayValues[$i], $desiredArrayValues[$i]) continue } } @@ -537,7 +537,7 @@ function Compare-DscParameterState #> if ($desiredValue.Keys.Count -eq 0 -and $currentValue.Keys.Count -ne 0) { - Write-Verbose -Message ($script:localizedData.NoMatchKeyMessage -f $desiredType.FullName, $key, $($currentValue.Keys -join ', ')) + Write-Debug -Message ($script:localizedData.NoMatchKeyMessage -f $desiredType.FullName, $key, $($currentValue.Keys -join ', ')) $InDesiredStateTable.InDesiredState = $false } else{ @@ -580,7 +580,7 @@ function Compare-DscParameterState if ($desiredValue -ne $currentValue) { - Write-Verbose -Message ($script:localizedData.NoMatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) + Write-Debug -Message ($script:localizedData.NoMatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) $InDesiredStateTable.InDesiredState = $false } } diff --git a/source/Public/Find-Certificate.ps1 b/source/Public/Find-Certificate.ps1 index 48b0c7c..a0dd41c 100644 --- a/source/Public/Find-Certificate.ps1 +++ b/source/Public/Find-Certificate.ps1 @@ -176,7 +176,7 @@ function Find-Certificate # Join all the filters together $certFilterScript = '(' + ($certFilters -join ' -and ') + ')' - Write-Verbose ` + Write-Debug ` -Message ($script:localizedData.SearchingForCertificateUsingFilters -f $store, $certFilterScript) ` -Verbose diff --git a/source/Public/Get-LocalizedDataForInvariantCulture.ps1 b/source/Public/Get-LocalizedDataForInvariantCulture.ps1 index 162db08..34c8f0b 100644 --- a/source/Public/Get-LocalizedDataForInvariantCulture.ps1 +++ b/source/Public/Get-LocalizedDataForInvariantCulture.ps1 @@ -136,7 +136,7 @@ function Get-LocalizedDataForInvariantCulture } else { - Write-Verbose -Message ('Getting file {0}' -f $languageFile) + Write-Debug -Message ('Getting file {0}' -f $languageFile) } $constrainedState = [System.Management.Automation.Runspaces.InitialSessionState]::Create() diff --git a/source/Public/Test-IsNanoServer.ps1 b/source/Public/Test-IsNanoServer.ps1 index 0991d47..f6db70a 100644 --- a/source/Public/Test-IsNanoServer.ps1 +++ b/source/Public/Test-IsNanoServer.ps1 @@ -25,7 +25,7 @@ function Test-IsNanoServer $operatingSystemSKU = (Get-CimInstance -ClassName Win32_OperatingSystem).OperatingSystemSKU - Write-Verbose -Message ($script:localizedData.TestIsNanoServerOperatingSystemSku -f $operatingSystemSKU) + Write-Debug -Message ($script:localizedData.TestIsNanoServerOperatingSystemSku -f $operatingSystemSKU) return ($operatingSystemSKU -in ($productDatacenterNanoServer, $productStandardNanoServer)) } diff --git a/source/Public/Test-ModuleExist.ps1 b/source/Public/Test-ModuleExist.ps1 index 85ad92c..2127006 100644 --- a/source/Public/Test-ModuleExist.ps1 +++ b/source/Public/Test-ModuleExist.ps1 @@ -103,7 +103,7 @@ function Test-ModuleExist if ($modulePath) { - Write-Verbose -Message "Filtering modules by path '$modulePath'." + Write-Debug -Message "Filtering modules by path '$modulePath'." $modulesToEvaluate = $availableModules | Where-Object -FilterScript { @@ -119,7 +119,7 @@ function Test-ModuleExist { $moduleVersion, $modulePrerelease = $Version -split '-' - Write-Verbose -Message "Filtering modules by version '$moduleVersion'." + Write-Debug -Message "Filtering modules by version '$moduleVersion'." $modulesToEvaluate = $modulesToEvaluate | Where-Object -FilterScript { @@ -128,7 +128,7 @@ function Test-ModuleExist if ($modulesToEvaluate -and $modulePrerelease) { - Write-Verbose -Message "Filtering modules by prerelease '$modulePrerelease'." + Write-Debug -Message "Filtering modules by prerelease '$modulePrerelease'." $modulesToEvaluate = $modulesToEvaluate | Where-Object -FilterScript { From 182ecffd8860b5dd01f49cc7d6fe7f9cbc8aeadc Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Tue, 26 Aug 2025 22:17:01 +0200 Subject: [PATCH 2/7] `Get-LocalizedDataForInvariantCulture`: Change file processing message from `Write-Verbose` to `Write-Debug` for internal diagnostic information --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a85022d..509d36f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changed operating system SKU diagnostic message from `Write-Verbose` to `Write-Debug`. - `Find-Certificate` - Changed certificate filter diagnostic message from `Write-Verbose` to `Write-Debug`. +- `Get-LocalizedDataForInvariantCulture` + - Changed file processing message from `Write-Verbose` to `Write-Debug` + for internal diagnostic information. ## [0.22.0] - 2025-04-25 From 96f300b2e63f27df50713ad426efa0b6379aec64 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Tue, 26 Aug 2025 22:21:22 +0200 Subject: [PATCH 3/7] Enhance Get-ComputerName for cross-platform support and improve error handling --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 509d36f..397a68c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,7 +41,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- `Get-ComputerName` +- `Get-ComputerName`s - Replaced platform-specific logic with cross-platform implementation using `[System.Environment]::MachineName` for consistent short name behavior. - Enhanced FQDN functionality to use `[System.Net.Dns]::GetHostEntry()` for From ce0c4cbfcf4f8bd3f7018cd5c814975def33b012 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Wed, 27 Aug 2025 15:24:14 +0200 Subject: [PATCH 4/7] Change debug messages to verbose in Compare-DscParameterState for improved logging --- CHANGELOG.md | 2 ++ source/Public/Compare-DscParameterState.ps1 | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 397a68c..1a9997b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Compare-DscParameterState` - Changed detailed diagnostic messages from `Write-Verbose` to `Write-Debug` for variable values, type comparisons, and internal diagnostics. + - Comparison result still uses `Write-Verbose` to provide user-actionable + information about parameter state differences. - `Test-ModuleExist` - Changed module filtering messages from `Write-Verbose` to `Write-Debug` for internal implementation details. diff --git a/source/Public/Compare-DscParameterState.ps1 b/source/Public/Compare-DscParameterState.ps1 index e1cfde2..f2ce244 100644 --- a/source/Public/Compare-DscParameterState.ps1 +++ b/source/Public/Compare-DscParameterState.ps1 @@ -314,7 +314,7 @@ function Compare-DscParameterState } elseif ($currentType.Name -ne 'string') { - Write-Debug -Message ($script:localizedData.NoMatchPsCredentialUsernameMessage -f $currentValue.UserName, $desiredValue.UserName) + Write-Verbose -Message ($script:localizedData.NoMatchPsCredentialUsernameMessage -f $currentValue.UserName, $desiredValue.UserName) $InDesiredStateTable.InDesiredState = $false } @@ -326,7 +326,7 @@ function Compare-DscParameterState } else { - Write-Debug -Message ($script:localizedData.NoMatchPsCredentialUsernameMessage -f $currentValue, $desiredValue.UserName) + Write-Verbose -Message ($script:localizedData.NoMatchPsCredentialUsernameMessage -f $currentValue, $desiredValue.UserName) $InDesiredStateTable.InDesiredState = $false } } @@ -337,13 +337,13 @@ function Compare-DscParameterState if (($desiredType.Name -ne 'Unknown' -and $currentType.Name -ne 'Unknown') -and $desiredType.FullName -ne $currentType.FullName) { - Write-Debug -Message ($script:localizedData.NoMatchTypeMismatchMessage -f $key, $currentType.FullName, $desiredType.FullName) + Write-Verbose -Message ($script:localizedData.NoMatchTypeMismatchMessage -f $key, $currentType.FullName, $desiredType.FullName) $InDesiredStateTable.InDesiredState = $false continue # pass to the next key } elseif ($desiredType.Name -eq 'Unknown' -and $desiredType.Name -ne $currentType.Name) { - Write-Debug -Message ($script:localizedData.NoMatchTypeMismatchMessage -f $key, $currentType.Name, $desiredType.Name) + Write-Verbose -Message ($script:localizedData.NoMatchTypeMismatchMessage -f $key, $currentType.Name, $desiredType.Name) $InDesiredStateTable.InDesiredState = $false continue # pass to the next key } @@ -385,14 +385,14 @@ function Compare-DscParameterState elseif (-not $currentValue) { #If only currentvalue is empty, the configuration isn't compliant. - Write-Debug -Message ($script:localizedData.NoMatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) + Write-Verbose -Message ($script:localizedData.NoMatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) $InDesiredStateTable.InDesiredState = $false continue } elseif ($currentValue.Count -ne $desiredValue.Count) { #If there is a difference between the number of objects in arrays, this isn't compliant. - Write-Debug -Message ($script:localizedData.NoMatchValueDifferentCountMessage -f $desiredType.FullName, $key, $currentValue.Count, $desiredValue.Count) + Write-Verbose -Message ($script:localizedData.NoMatchValueDifferentCountMessage -f $desiredType.FullName, $key, $currentValue.Count, $desiredValue.Count) $InDesiredStateTable.InDesiredState = $false continue } @@ -439,7 +439,7 @@ function Compare-DscParameterState if (($desiredType.Name -ne 'Unknown' -and $currentType.Name -ne 'Unknown') -and $desiredType.FullName -ne $currentType.FullName) { - Write-Debug -Message ($script:localizedData.NoMatchElementTypeMismatchMessage -f $key, $i, $currentType.FullName, $desiredType.FullName) + Write-Verbose -Message ($script:localizedData.NoMatchElementTypeMismatchMessage -f $key, $i, $currentType.FullName, $desiredType.FullName) $InDesiredStateTable.InDesiredState = $false continue } @@ -504,7 +504,7 @@ function Compare-DscParameterState if ($desiredArrayValues[$i] -ne $currentArrayValues[$i]) { - Write-Debug -Message ($script:localizedData.NoMatchElementValueMismatchMessage -f $i, $desiredType.FullName, $key, $currentArrayValues[$i], $desiredArrayValues[$i]) + Write-Verbose -Message ($script:localizedData.NoMatchElementValueMismatchMessage -f $i, $desiredType.FullName, $key, $currentArrayValues[$i], $desiredArrayValues[$i]) $InDesiredStateTable.InDesiredState = $false continue } @@ -537,7 +537,7 @@ function Compare-DscParameterState #> if ($desiredValue.Keys.Count -eq 0 -and $currentValue.Keys.Count -ne 0) { - Write-Debug -Message ($script:localizedData.NoMatchKeyMessage -f $desiredType.FullName, $key, $($currentValue.Keys -join ', ')) + Write-Verbose -Message ($script:localizedData.NoMatchKeyMessage -f $desiredType.FullName, $key, $($currentValue.Keys -join ', ')) $InDesiredStateTable.InDesiredState = $false } else{ @@ -580,7 +580,7 @@ function Compare-DscParameterState if ($desiredValue -ne $currentValue) { - Write-Debug -Message ($script:localizedData.NoMatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) + Write-Verbose -Message ($script:localizedData.NoMatchValueMessage -f $desiredType.FullName, $key, $currentValue, $desiredValue) $InDesiredStateTable.InDesiredState = $false } } From 22b5bfa9f51277c3c5d352fb59291f5b560fb243 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Wed, 27 Aug 2025 15:24:20 +0200 Subject: [PATCH 5/7] Refactor Find-Certificate to remove redundant verbose logging in filter search --- source/Public/Find-Certificate.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/Public/Find-Certificate.ps1 b/source/Public/Find-Certificate.ps1 index a0dd41c..c6f4a2a 100644 --- a/source/Public/Find-Certificate.ps1 +++ b/source/Public/Find-Certificate.ps1 @@ -176,9 +176,7 @@ function Find-Certificate # Join all the filters together $certFilterScript = '(' + ($certFilters -join ' -and ') + ')' - Write-Debug ` - -Message ($script:localizedData.SearchingForCertificateUsingFilters -f $store, $certFilterScript) ` - -Verbose + Write-Debug -Message ($script:localizedData.SearchingForCertificateUsingFilters -f $store, $certFilterScript) $certs = Get-ChildItem -Path $certPath | Where-Object -FilterScript ([ScriptBlock]::Create($certFilterScript)) From 50a4e202888fa68b887fff99e1dd21172dbce17e Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Wed, 27 Aug 2025 15:27:26 +0200 Subject: [PATCH 6/7] Change diagnostic messages from Write-Verbose to Write-Debug for internal details in multiple commands --- CHANGELOG.md | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a9997b..319d09f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- `Compare-DscParameterState` + - Changed detailed diagnostic messages from `Write-Verbose` to `Write-Debug` + for variable values, type comparisons, and internal diagnostics. + - Comparison result still uses `Write-Verbose` to provide user-actionable + information about parameter state differences. +- `Test-ModuleExist` + - Changed module filtering messages from `Write-Verbose` to `Write-Debug` + for internal implementation details. +- `Test-IsNanoServer` + - Changed operating system SKU diagnostic message from `Write-Verbose` to `Write-Debug`. +- `Find-Certificate` + - Changed certificate filter diagnostic message from `Write-Verbose` to `Write-Debug`. +- `Get-LocalizedDataForInvariantCulture` + - Changed file processing message from `Write-Verbose` to `Write-Debug` + for internal diagnostic information. + ## [0.24.1] - 2025-08-27 ### Added @@ -48,21 +66,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 proper domain name resolution on Windows, Linux, and macOS. - Improved error handling to gracefully fallback to short name when DNS resolution fails. -- `Compare-DscParameterState` - - Changed detailed diagnostic messages from `Write-Verbose` to `Write-Debug` - for variable values, type comparisons, and internal diagnostics. - - Comparison result still uses `Write-Verbose` to provide user-actionable - information about parameter state differences. -- `Test-ModuleExist` - - Changed module filtering messages from `Write-Verbose` to `Write-Debug` - for internal implementation details. -- `Test-IsNanoServer` - - Changed operating system SKU diagnostic message from `Write-Verbose` to `Write-Debug`. -- `Find-Certificate` - - Changed certificate filter diagnostic message from `Write-Verbose` to `Write-Debug`. -- `Get-LocalizedDataForInvariantCulture` - - Changed file processing message from `Write-Verbose` to `Write-Debug` - for internal diagnostic information. ## [0.22.0] - 2025-04-25 From 8767e703280431de2524fae881c3b6ba6b322b66 Mon Sep 17 00:00:00 2001 From: Johan Ljunggren Date: Wed, 27 Aug 2025 16:33:58 +0200 Subject: [PATCH 7/7] Enhance Get-ComputerName for cross-platform consistency and improved FQDN functionality --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 319d09f..075100f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,7 +59,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- `Get-ComputerName`s +- `Get-ComputerName` - Replaced platform-specific logic with cross-platform implementation using `[System.Environment]::MachineName` for consistent short name behavior. - Enhanced FQDN functionality to use `[System.Net.Dns]::GetHostEntry()` for