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/Stop-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 pathStop-VMHostSsh.ps1More file actions 31 lines (30 loc) · 1006 Bytes / Copy pathStop-VMHostSsh.ps1File metadata and controls31 lines (30 loc) · 1006 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: Stop-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 Stops the TSM-SSH service on VMHosts. .Example .\Stop-VMHostSsh -VMHost (Get-VMHost -Name 'esxi-001.lab.local') .Example $EvenHosts = Get-VMHost | ?{ $_.Name -match 'esxi-\d*[02468]+.\lab\.local' } .\Stop-VMHost -VMHost $EvenHosts #> [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.StopService('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. |