PowerShell "Get-Command -Verb Get" format different from documentation

M

MesPia

According to the documentation for PowerShell 6, the PowerShell command "Get-Command -Verb Get" should output a format similar to:

CommandType Name Definition

----------- ---- ----------
Cmdlet Get-Acl Get-Acl [[-Path] <String[]>]...
Cmdlet Get-Alias Get-Alias [[-Name] <String[]...
Cmdlet Get-AuthenticodeSignature Get-AuthenticodeSignature [-...
Cmdlet Get-ChildItem Get-ChildItem [[-Path] <Stri...
...


However, when I enter the same command in either the default version of Windows PowerShell or PowerShell 6.2.3, it's headinglooks like


CommandType Name Version Source
----------- ---- ------- ------

Function Get-AppBackgroundTask 1.0.0.0 AppBackgroundTask
Function Get-AppxLastError 2.0.1.0 Appx
Function Get-AppxLog 2.0.1.0 Appx


It doesn't show the Definition (syntax) as shown in the documentation. Is the documentation wrong, or does it apply yet another version of PowerShell?

Continue reading...
 
Back
Top Bottom