mgajda83 / PSWindowsUpdate

This module contain cmdlets to manage Windows Update Client.
MIT License
253 stars 24 forks source link

Sendreport mail contains only the updates of the last server of a list of -computername #10

Closed sir-Higgins closed 7 months ago

sir-Higgins commented 7 months ago

Hello Good work with this module :-) Here is a little bug that I found.

I executed this command get-wulist -ComputerName srv-infor-app1,int-infor-app1,dev-infor-app1 -WindowsUpdate -SendReport -PSWUSettings @{SmtpServer="smtp.xxxx.xx";From="yyy@xxx.ch";To="yyy@xxx.ch"} -Verbose

The updates are listed in the console image

I receive the mail, but only the updates of the last server in the list are listed

image

My configuration :

PS C:> $psversiontable

Name Value


PSVersion 5.1.19041.3570 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.19041.3570 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

PS C:> Get-Module PSWindowsUpdate

ModuleType Version Name ExportedCommands


Binary 2.2.1.3 PSWindowsUpdate {Add-WUServiceManager, Enable-WURemoting, Get-WindowsUpdate, Get-W...

mgajda83 commented 7 months ago

I confirm it was a bug. It resolved in new version.