PowerCLI Reference

Uninstall-HCXSentinel

Synopsis

This cmdlet uninstalls the sentinel from a virtual machine.

Syntax

Uninstall-HCXSentinel -VM <HCXVM> [-Server <HcxServer[]>] [-WhatIf] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet uninstalls the sentinel software running on the source virtual machine.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ServerHcxServer[]Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.falseFalse
VMHCXVMSpecifies the ID of the virtual machine where the sentinel software runs.trueFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

VMware.VimAutomation.Hcx.Types.V1.HCXJob

Notes

Examples

-------------------------- Example 1 --------------------------

$site=Get-HCXSite -Type "Sentinel"

$vm=Get-HCXVM -Name $vmName -Site $site

Uninstall-HCXSentinel -VM $vm

Retrieves the source site by type.


Uninstalls the sentinel software that runs on the virtual machine.

-------------------------- Example 2 --------------------------

$site=Get-HCXSite -Name "Non vSphere Inventory"

$vm=Get-HCXVM -Name $vmName -Site $site

Uninstall-HCXSentinel -VM $vm

Retrieves the source site by Name


Uninstalls the sentinel software that runs on the virtual machine.


Copyright © VMware, Inc. All rights reserved.