Skip to content

Instantly share code, notes, and snippets.

@Zsoldier
Created June 29, 2023 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zsoldier/16039f2019348aab37d96866f085c70a to your computer and use it in GitHub Desktop.
Save Zsoldier/16039f2019348aab37d96866f085c70a to your computer and use it in GitHub Desktop.
Deletes HCX related extension from vcenter
connect-viserver $vcenter -Credential $creds
$view = get-view extensionmanager
$hcxextensions = $view.extensionlist | where {$_.key -match "com.vmware.hybridity"}
foreach ($ext in $hcxextensions){
$view.UnregisterExtension($ext.key)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment