VMware Cloud Community
jrwise
Enthusiast
Enthusiast

Restart wsman service via PowerCLI?

We use Dell OpenManage to monitor our host CIM data. There is currently a known issue which requires the wsman service to be restarted:  http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=204346...

I was hoping to accomplish this via the PowerCLI. Here is the command I attempted to use:

Get-Cluster -Name "ClusterName" | get-vmhost | Get-VMHostService | ? {($_.Key -eq "wsman") -and ($_.Running -eq $True)} | Restart-VMHostService

wsman is not listed in the result set. Is there any way for me to control this service via the PowerCLI?

0 Kudos
1 Reply
LucD
Leadership
Leadership

The only other way I can think of is via a SSH session or a plink.exe to the ESXi.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos