Skip to content

Instantly share code, notes, and snippets.

View NordloSydost-Pajje's full-sized avatar

Per-Åke Moberg NordloSydost-Pajje

  • Nordlo Sydost
  • Kalmar, Sweden
View GitHub Profile
@NordloSydost-Pajje
NordloSydost-Pajje / Remove_VMwareTools.ps1
Created August 26, 2025 14:12 — forked from broestls/Remove_VMwareTools.ps1
Force removal of VMware Tools, Program Files, and Windows Services
# This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019
# Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes.
# This function pulls out the common ID used for most of the VMware registry entries along with the ID
# associated with the MSI for VMware Tools.
function Get-VMwareToolsInstallerID {
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) {
If ($item.GetValue('ProductName') -eq 'VMware Tools') {
return @{
reg_id = $item.PSChildName;