Set-VMHostService

This cmdlet modifies a host service.

Syntax

[-Policy]  <HostServicePolicy>
-HostService  <HostService[]>
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Policy
HostServicePolicy 1 Specifies an activation policy for the host service.
required
HostService
HostService[] named
  • pipeline
  • Specifies the host service you want to update.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Host.HostService

    Examples


    Example 1

    Get-VMHostService -VMHost Host | Set-VMHostService -Policy "Automatic"

    Sets the policy of all services the Host virtual machine host to "Automatic".

    Related Commands

    Feedback

    Was this page helpful?