Forum Discussion
Output Log for PSWindowsUpdate module
- Jul 22, 2022
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.csvSame thing applied for the category.
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.csvSame thing applied for the category.
That was exactly what I needed. Thank you so much, and I've learned something new.
I'm trying to get the "Category" or "RootCategories", but as it's a parameter for the cmdlet, I'm not being ablet to understand how will I extract "Category" or "RootCategories".
Thanks