r/LearnPowerShell • • Jun 10 '23

Format-Table - Blank Parameters

Very new to actually learning PowerShell, versus just copying and pasting basic commandlets. So I apologize if this is really simple.

I'm trying to use the Get-HotFix commandlet, to filter for a single KB, while also cutting down some of the table columns I don't need. When I run a simple Get-HotFix, it spits out a table which includes the Source column.

However, when I use Get-HotFix KB4535680 | Format-Table HotFixID, InstalledOn, Source, the source column is blank. Can anyone explain what's causing this?

3 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jan 25 '24

Correct. Get-Member will show you exactly what is presented. For an example, if you use this command
Get-HotFix | select-object PSComputerName, Description, HotFixID, InstalledBy, InstalledOn | ft

you will get exactly the same results as just by running Get-Hotfix.