Windowsserverdocs: Installing OpenSSH with PowerShell - Does not seems to works

Created on 12 Mar 2020  ·  3Comments  ·  Source: MicrosoftDocs/windowsserverdocs

Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
>>
>> # This should return the following output:
>>
>> Name : OpenSSH.Client~~0.0.1.0
>> State : NotPresent
>> Name : OpenSSH.Server
~~0.0.1.0
>> State : NotPresent

Name : OpenSSH.Client~~~~0.0.1.0
State : Installed

Name : OpenSSH.Server~~~~0.0.1.0
State : NotPresent

Name : The term 'Name' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:5 char:1

  • Name : OpenSSH.Client~~~~0.0.1.0
  • ~~~~

    • CategoryInfo : ObjectNotFound: (Name:String) [], CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException

State : The term 'State' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:6 char:1

  • State : NotPresent
  • ~

    • CategoryInfo : ObjectNotFound: (State:String) [], CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException

Name : The term 'Name' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:7 char:1

  • Name : OpenSSH.Server~~~~0.0.1.0
  • ~~~~

    • CategoryInfo : ObjectNotFound: (Name:String) [], CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException

State : The term 'State' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:8 char:1

  • State : NotPresent
  • ~

    • CategoryInfo : ObjectNotFound: (State:String) [], CommandNotFoundException

    • FullyQualifiedErrorId : CommandNotFoundException


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Most helpful comment

I have stupidly copy paste the whole stuff with the comment -_-'

All 3 comments

error was coming from me.

👍 Thank you for the follow-up, for finding the error, and enlightening us about your side of the issue.

I have stupidly copy paste the whole stuff with the comment -_-'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jdrch picture jdrch  ·  3Comments

skyflyer picture skyflyer  ·  3Comments

gynnantonix picture gynnantonix  ·  5Comments

osresearch picture osresearch  ·  5Comments

alanmreagan picture alanmreagan  ·  5Comments