This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Start or stop SSH on an ESXi host | |
.DESCRIPTION | |
Takes a hostname or a piped Get-VMHost object starts or stops the SSH service depending on the value of the State parameter | |
.PARAMETER VMHost | |
The name of a host to start ssh on or a VMHost object | |
.PARAMETER State | |
State to set the SSH service to. Valid values are Start or Stop | |
.EXAMPLE |