Reputation: 3989
All the examples I see for Get-Command
show the results as
CommandType Name Definition ----------- ---- ----------
Whereas I get:
CommandType Name Version Source ----------- ---- ------- ------
I am using Windows 7 with Powershell v5, PSCX, more details below:
PS C:\Users\pollock> $PSVersionTable
Name Value
---- -----
PSVersion 5.0.10586.117
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.10586.117
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Any ideas why?
Upvotes: 2
Views: 34
Reputation: 58981
Thats probably because the examples omit the Source
column. However, you can use the Select-Object
cmdlet to select the properties you want:
Get-Command | Select-Object CommandType, Name, Definition
Upvotes: 3