From d48f934819632d8df71a672706cce55e902f2f9e Mon Sep 17 00:00:00 2001 From: Martin Vokurek Date: Fri, 12 Feb 2021 22:01:38 +0100 Subject: [PATCH] Fixing verbose output of WSUS server name Fix #63 --- CHANGELOG.md | 1 + .../MSFT_UpdateServicesApprovalRule.psm1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b0fbf6..9d7c8dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Process multiple product categories with the same name correctly (e.g. "Windows Admin Center") - Verbose output of Products only displayed one product - Fixed verbose output of Languages in `UpdateServiceServer` +- Fixed verbose output of WSUS server in `UpdateServicesApprovalRule` ### Changed diff --git a/source/DSCResources/MSFT_UpdateServicesApprovalRule/MSFT_UpdateServicesApprovalRule.psm1 b/source/DSCResources/MSFT_UpdateServicesApprovalRule/MSFT_UpdateServicesApprovalRule.psm1 index 87f4c11..39376b8 100644 --- a/source/DSCResources/MSFT_UpdateServicesApprovalRule/MSFT_UpdateServicesApprovalRule.psm1 +++ b/source/DSCResources/MSFT_UpdateServicesApprovalRule/MSFT_UpdateServicesApprovalRule.psm1 @@ -52,7 +52,7 @@ function Get-TargetResource if ($null -ne $WsusServer) { - Write-Verbose -Message ('Identified WSUS server information: {0}' -f $WsusServer) + Write-Verbose -Message ('Identified WSUS server information: {0}' -f $WsusServer.Name) $ApprovalRule = $WsusServer.GetInstallApprovalRules() | Where-Object -FilterScript { $_.Name -eq $Name }