Uninstalling Data Protection for Microsoft Hyper-V in silent mode

You can silently uninstall Data Protection for Microsoft Hyper-V on a Windows operating system.

About this task

You must first uninstall Data Protection for Microsoft Hyper-V with the Suite installer, and then run a Windows PowerShell cmdlet to remove the following components:
  • IBM Spectrum Protect for Virtual Environments: Data Protection for Microsoft Hyper-V License
  • IBM Spectrum Protect WebServer
  • IBM Spectrum Protect Java™ Virtual Machine (JVM)
Tip: To see a list of installed Data Protection for Microsoft Hyper-V components, issue the following command as administrator from a PowerShell command prompt:
Get-WmiObject -class Win32_Product | Where-Object name -match `
  "IBM Spectrum Protect*" | Format-List Version,InstallDate,Name,InstallLocation

The following procedure can also be used to uninstall Data Protection for Microsoft Hyper-V from Windows Server Core systems.

Tip: To issue PowerShell commands, you must run the PowerShell command prompt in Administrative mode.

Procedure

  1. If you ran instant access operations, remove any instant access virtual machines that were created.
  2. Stop any IBM Spectrum Protect services that are running. The names of the services typically begin with TSM.
    For example, you can run the following command from a PowerShell command prompt:
    stop-service TSM*
  3. From a command prompt, issue the following command:
    cd extract_folder\TSMHYPERV_WIN
    where extract_folder specifies the folder where you extracted the Data Protection for Microsoft Hyper-V installation files.
  4. To uninstall Data Protection for Microsoft Hyper-V with the Suite installer, issue the following command from a PowerShell command prompt:
    Start-Process -FilePath ".\spinstall.exe" -ArgumentList "/silent /remove" -wait
  5. To remove any remaining components, run the following cmdlet from a PowerShell command prompt. Alternatively, include the following cmdlet in a script for automation.
    $ve = "IBM Spectrum Protect for Virtual Environments:"
    $lic = "$ve Data Protection for Microsoft Hyper-V License"
    $ws  = "IBM Spectrum Protect WebServer"
    $jvm = "IBM Spectrum Protect JVM"
    
    Get-WmiObject -class Win32_Product -Filter "Name=`"$lic`"" | Invoke-WmiMethod `
      -Name "Uninstall" | Select-Object ReturnValue
    Get-WmiObject -class Win32_Product -Filter "Name=`"$ws`""  | Invoke-WmiMethod `
      -Name "Uninstall" | Select-Object ReturnValue
    Get-WmiObject -class Win32_Product -Filter "Name=`"jvm`"" | Invoke-WmiMethod `
      -Name "Uninstall" | Select-Object ReturnValue
    

Results

In case you want to save the configuration information after the uninstall operation is completed, configuration and property files are located in the following folders:
  • C:\IBM\SpectrumProtect\webserver\usr\servers\veProfile\tsmVmGUI
  • C:\IBM\SpectrumProtect\webserver\usr\servers\veProfile\frGUI
  • C:\Program Files\IBM\SpectrumProtect\DPHyperV
  • C:\Program Files\Tivoli\TSM\baclient