Well, that's very close, yes. I can do a "Get-WUHistory -MaxDate xxx", and
it shows me all the updates since the specified date. But I don't need the
detail, only the last installed date. So I'd have to parse that output.

I will keep poking ... That value shows up when you look at Windows Updates
in a Control Panel, so it has to be *somewhere*. :-) I just have to figure
out where it is, and how to get it.

Thanks!

On Tue, Jan 16, 2018 at 5:02 PM, Michael B. Smith <[email protected]>
wrote:

> Seems pretty clear from the raw docs:
>
>         <!-- Parameter: PSWUSettings -->
>         <command:parameter required="false" globbing="false"
> pipelineInput="false" position="named">
>           <maml:name>PSWUSettings</maml:name>
>           <maml:description>
>             <maml:para>Required parameter for -SendReport.</maml:para>
>             <maml:para>Passes the parameters (as hashtable) necessary to
> send the report: \r\n@{SmtpServer="your.smtp.server";From="sender@email.
> address";To="[email protected]";[Port=25];[Subject="Alternative
> Subject"];[Properties="Alternative object properties"];[Style="Table|
> List"]}</maml:para>
>             <maml:para>Send parameters can also be saved to a
> PSWUSettings.xml file in ModuleBase path: \r\nExport-Clixml
> @{SmtpServer="your.smtp.server";From="sender@email.
> address";To="[email protected]";[Port=25]}"</maml:para>
>           </maml:description>
>           <command:parameterValue required="true">Hashtable</
> command:parameterValue>
>           <dev:type>
>             <maml:name>System.Collections.Hashtable</maml:name>
>             <maml:uri />
>           </dev:type>
>           <dev:defaultValue>System.Collections.Hashtable</dev:
> defaultValue>
>         </command:parameter>
>
> -----Original Message-----
> From: [email protected] [mailto:listsadmin@lists.
> myitforum.com] On Behalf Of Matt Stork
> Sent: Tuesday, January 16, 2018 4:32 PM
> To: [email protected]
> Subject: RE: [NTSysADM] Using PS to query date of latest Windows Updates
> installed
>
> I find the Get-WUHistory from the PSWindowsUpdate module provides far more
> useful information regarding which updates are installed. It has an option
> -SendReport but the help for the cmdlet does not provide any information on
> how to use the option.
> Thanks,
> -Matt
>
> -----Original Message-----
> From: [email protected] [mailto:listsadmin@lists.
> myitforum.com] On Behalf Of Kurt Buff
> Sent: Tuesday, January 16, 2018 2:51 PM
> To: ntsysadm <[email protected]>
> Subject: Re: [NTSysADM] Using PS to query date of latest Windows Updates
> installed
>
> help get-hotfix -full
>
> For your purposes this might work, if you have a small number of computers:
> ( get-hotfix -computername work1, work2, work3 | sort installedon )[-1]
>
> Kurt
>
> On Tue, Jan 16, 2018 at 12:37 PM, Michael Leone <[email protected]>
> wrote:
> > I'm drawing a blank on this. I need to query a set of clients, and return
> > the date that Windows Updates was last run (date updates were installed).
> > Then I will email this to the appropriate person.
> >
> > I'm finding lots of ways to query for the list of needed updates, or a
> list
> > of the installed updates,  but not for the last date/time when updates
> were
> > actually installed. Clue/pointer, anyone? I remember something about a
> user
> > created WSUS module that might have that as a function, but for the life
> of
> > me, I'm not finding it.
> >
> > Thanks
> >
> > (I originally sent this to the [email protected] , but it
> said
> > I didn't have permission to post there. Dunno why, I used to be able to
> post
> > there .. and the return message didn't include instructions on how to
> sign
> > back up)
> >
>
>
>

Reply via email to