On Wed, Jan 17, 2018 at 11:38 AM, Joseph L. Casale <
[email protected]> wrote:
> > PS P:\software\PHA Scripts> Get-WULastResults
> > WARNING: To perform some operations you must run an elevated Windows
> PowerShell console.
> > Get-WULastResults : Object reference not set to an instance of an object.
>
> /snip
>
> > So this cmdlet should return exactly what I am looking for, but for some
> reason it isn't working for me ...
>
>
> Does the warning not indicate the issue?
>
No, because I also did it as Administrator, and got the same results ...
Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.
Loading many modules; please to be exercising your patience
PS SQLSERVER:\> get-wulastresults
get-wulastresults : Object reference not set to an instance of an object.
At line:1 char:1
+ get-wulastresults
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-WULastResults],
NullReferenceException
+ FullyQualifiedErrorId :
System.NullReferenceException,PSWindowsUpdate.GetWULastResults