Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
>>
>> # This should return the following output:
>>
>> Name : OpenSSH.Client~~0.0.1.0~~0.0.1.0
>> State : NotPresent
>> Name : OpenSSH.Server
>> 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
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
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
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
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
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 -_-'
Most helpful comment
I have stupidly copy paste the whole stuff with the comment -_-'