Forum Discussion

dmarquesgn's avatar
dmarquesgn
Iron Contributor
Jul 20, 2022
Solved

Output Log for PSWindowsUpdate module

Hi,   I'm deploying PSWindowsUpdate module to manage Windows Updates on around 70 servers. I've already deployed remotely the module and now I can check for updates and install them (tried on 1 se...
  • farismalaeb's avatar
    Jul 22, 2022

    dmarquesgn 

    I never use PSWindowsUpdate, but let's try to resolve this.

    I used the cmdlet Get-WUList.

    You wont be able to export the result by simply pipelining it to export-csv as the object is a Collection You can see this by running  (Get-WUList).GetType()

    Anyway, you still can export it by using the following line

    (Get-WUList).GetEnumerator() | Export-Csv -Path C:\MyUpdate.csv

    Same thing applied for the category.

     

     

     

Resources