Why is my "help" command in Windows 11 Home powershell not giving a list of other commands to use with the "helped command"?

Ghxste 0 Reputation points
2024-11-20T05:16:05.94+00:00

I am learning how to use the PS and whenever I use the "help" cmd, it does not display other commands. My PS is shown in the first image, and my online course is shown in the 2nd. In the 3rd image, I have already tried update-help and the update failed. Am I doing something wrong?Screenshot 2024-11-19 220959

Screenshot 2024-11-19 220921

Screenshot 2024-11-19 221439

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,643 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 34,516 Reputation points
    2024-11-21T01:07:09.0966667+00:00

    Powershell implemented aliases for commands. One reason for doing that was because users who were familiar with a command prompt were used to typing in "dir" to get a directory list. Users who mainly used Unix used the "ls" command. The Get-Alias cmdlet will list all aliases, or you can specify which alias you are interested in.

    PS C:\> get-alias dir,ls
    CommandType     Name                                               Version    Source
    -----------     ----                                               -------    ------
    Alias           dir -> Get-ChildItem
    Alias           ls -> Get-ChildItem
    

    So rather than forcing users to type out the full Get-ChildItem command, they could type in the simple 2 or 3 letter "command" that they were used to typing in.

    In a Powershell prompt, all of these commands will display the same help output for Get-ChildItem. Note that "help" is a function that pipes the output of get-help to "more.com" to pause the display.

    help dir
    help ls
    help gci
    help Get-ChildItem
    Get-Help dir
    Get-Help ls
    Get-Help gci
    Get-Help Get-ChildItem
     
    

    Also note the other options.

    REMARKS
        To see the examples, type: "get-help Get-ChildItem -examples".
        For more information, type: "get-help Get-ChildItem -detailed".
        For technical information, type: "get-help Get-ChildItem -full".
        For online help, type: "get-help Get-ChildItem -online" 
     
    

    In a command prompt (your second image), a help command (help.exe) will display a list of commands. That is how a command prompt works. You can also run help.exe in a Powershell prompt. It will display the same output as in a command prompt. That's because in both cases you are telling cmd/PS to run a specific program.

    In Powershell you can run "Get-Command" to view a list of available cmdlets, functions,

    I got the same errors from Update-Help, but you should have seen a blue background when it updated the help for other commands.

    https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/01-getting-started?view=powershell-5.1

    0 comments No comments

  2. Ian Xue 38,046 Reputation points Microsoft Vendor
    2024-11-21T01:39:13.82+00:00

    Hi Ghxste,

    Windows has two command-line shells: CMD and PowerShell. In your first screenshot, help the built-in help function of PowerShell and dir is just the alias of the Get-ChildItem cmdlet. In your second screenshot, help is the executable help.exe and dir is a built-in command of CMD. If you want to use help.exe in PowerShell you can run help.exe dir.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.