Install OpenSSH on PCs
##Check if openssh is installed
if((Get-WindowsCapability -Online | ? Name -like OpenSSH*).State -eq "Installed")
{
- Write-Host "OpenSSH Server is installed."
+ Write-Output "OpenSSH Server is installed."
}
else
{
- Write-Host "OpenSSH Server is NOT installed.";
+ Write-Output "OpenSSH Server is NOT installed.";
## Install SSH
Add-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0"
