Uninstalling Windows plug-ins using the command-line interface on the SnapCenter Server host

You can uninstall individual plug-ins or uninstall plug-ins packages from one or more hosts by using the Uninstall-SmHostPackage cmdlet on the SnapCenter Server host command-line interface.

Before you begin

Steps

  1. Launch the PowerShell application.
  2. From the SnapCenter Server command prompt, enter: Open-SMConnection -SMSbaseUrl https://SNAPCENTER_SERVER_NAME/DOMAIN_NAME
  3. From the command prompt, enter: Uninstall-SmHostPackage -HostNames hostname1[,hostname2...] -ApplicationCode plugincode
    • You can specify one or more host names, separated by commas.
    • If you do not specify a host name, a prompt is displayed for you to list the host names.
    • If you do not specify an application (plug-in) code, SnapCenter uninstalls all SnapCenter plug-ins on the host by default. Valid ApplicationCode values are as follows:
      SCSQL SnapCenter Plug-ins Package for Windows
      SCE SnapCenter Plug-in for Microsoft Exchange Server
      SCO SnapCenter Plug-ins Package for Linux
      SCV SnapCenter Plug-in for VMware vSphere
      Name of the custom plug-in SnapCenter Custom Plug-ins
    Example
    The following command uninstalls SnapCenter Plug-in for VMware vSphere from the specified host.
    Uninstall-SmHostPackage -HostNames lab-esx90.test1.com 
    -ApplicationCode SCV
    Example
    The following command uninstalls SnapCenter Plug-in for Microsoft Exchange Server.
    Uninstall-SmHostPackage -HostNames Exchange2016DAG -ApplicationCode SCE -FilesystemCode SCW -RunAsName Admin
    Example
    The following command uninstalls SnapCenter Custom Plug-ins from the specified host.
    Uninstall-SmHostPackage -HostNames lab-esx90.test1.com 
    -ApplicationCode HRPlug-in

    Where, HRPlug-in is the name of the custom plug-in.