GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — PowerCLI-Example-Scripts/Scripts/Start-VMHostSsh.ps1 at master · vmware-archive/PowerCLI-Example-Scripts
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
Expand file tree/ Copy pathStart-VMHostSsh.ps1More file actions 31 lines (30 loc) · 1009 Bytes / Copy pathStart-VMHostSsh.ps1File metadata and controls31 lines (30 loc) · 1009 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 <# .NOTES =========================================================================== Script name: Start-VMHostSsh.ps1 Created on: 2016-07-01 Author: Peter D. Jorgensen (@pjorg, pjorg.com) Dependencies: None known ===Tested Against Environment==== vSphere Version: 5.5, 6.0 PowerCLI Version: PowerCLI 6.5R1 PowerShell Version: 5.0 OS Version: Windows 10, Windows 7 =========================================================================== .DESCRIPTION Starts the TSM-SSH service on VMHosts. .Example .\Start-VMHostSsh -VMHost (Get-VMHost -Name 'esxi-001.lab.local') .Example $OddHosts = Get-VMHost | ?{ $_.Name -match 'esxi-\d*[13579]+.\lab\.local' } .\Start-VMHost -VMHost $OddHosts #> [CmdletBinding()] Param( [Parameter(ValueFromPipeline=$True,Mandatory=$True,Position=0)] [VMware.VimAutomation.ViCore.Impl.V1.Inventory.VMHostImpl[]]$VMHost ) Process { $svcSys = Get-View $VMHost.ExtensionData.ConfigManager.ServiceSystem $svcSys.StartService('TSM-SSH') } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |