We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verbose output of Get-TargetResource returns Microsoft.UpdateServices.Internal.BaseApi.UpdateServer instead of WSUS server name
Get-TargetResource
Microsoft.UpdateServices.Internal.BaseApi.UpdateServer
VERBOSE: [SRV1]: LCM: [ Start Resource ] [[UpdateServicesApprovalRule]Approval] VERBOSE: [SRV1]: LCM: [ Start Test ] [[UpdateServicesApprovalRule]Approval] VERBOSE: [SRV1]: [[UpdateServicesApprovalRule]Approval] Identified WSUS server information: Microsoft.UpdateServices.Internal.BaseApi.UpdateServer VERBOSE: [SRV1]: LCM: [ End Test ] [[UpdateServicesApprovalRule]Approval] in 0.0470 seconds. VERBOSE: [SRV1]: LCM: [ Skip Set ] [[UpdateServicesApprovalRule]Approval] VERBOSE: [SRV1]: LCM: [ End Resource ] [[UpdateServicesApprovalRule]Approval]
UpdateServicesDsc/source/DSCResources/MSFT_UpdateServicesApprovalRule/MSFT_UpdateServicesApprovalRule.psm1
Line 55 in dd6be4e
Change the line to:
Write-Verbose -Message ('Identified WSUS server information: {0}' -f $WsusServer.Name)
Configuration WSUSProduct { Import-DscResource -ModuleName 'PSDesiredStateConfiguration' Import-DscResource -ModuleName 'UpdateServicesDsc' -ModuleVersion 1.2.1 Node localhost { UpdateServicesApprovalRule Approval { Ensure = 'Present' Name = 'Test Approval Rule' Classifications = @( # Updates 'cd5ffd1e-e932-4e3a-bf74-18bf0b1bbd83' ) Products = 'Windows Server 2016' ComputerGroups = 'All Computers' Enabled = $true } } }
OsName : Microsoft Windows Server 2019 Datacenter OsOperatingSystemSKU : DatacenterServerEdition OsArchitecture : 64-bit WindowsVersion : 1809 WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434 OsLanguage : en-US OsMuiLanguages : {en-US}
Name Value ---- ----- PSVersion 5.1.17763.1490 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.17763.1490 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1
Name Version Path ---- ------- ---- UpdateServicesDsc 1.2.1 C:\Program Files\WindowsPowerShell\Modules\UpdateServicesDsc\1.2.1\UpdateServicesDsc.psd1
The text was updated successfully, but these errors were encountered:
Fixing verbose output of WSUS server name
d48f934
Fix dsccommunity#63
Fix issue dsccommunity#62 and dsccommunity#63, fix verbose message
aaec555
and type variable
Fix issue #62 and #63, fix verbose message
182366e
Successfully merging a pull request may close this issue.
Details of the scenario you tried and the problem that is occurring
Verbose output of
Get-TargetResource
returnsMicrosoft.UpdateServices.Internal.BaseApi.UpdateServer
instead of WSUS server nameVerbose logs showing the problem
Suggested solution to the issue
UpdateServicesDsc/source/DSCResources/MSFT_UpdateServicesApprovalRule/MSFT_UpdateServicesApprovalRule.psm1
Line 55 in dd6be4e
Change the line to:
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used
The text was updated successfully, but these errors were encountered: