Skip to content

Instantly share code, notes, and snippets.

View markleary's full-sized avatar

Mark Leary markleary

  • Boston, MA
View GitHub Profile
@markleary
markleary / Remove_VMwareTools.ps1
Last active October 8, 2025 19:13 — forked from broestls/Remove_VMwareTools.ps1
Force removal of VMware Tools, Program Files, and Windows Services
# Script to remove VMware Tools artifacts and VMware Pointer (vmmouse) device/driver
# Tested on Windows Server 2016/2019/2022. Requires admin privileges.
#
# To allow unsigned script, first run:
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
function Get-VMwareToolsInstallerID {
foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) {
If ($item.GetValue('ProductName') -eq 'VMware Tools') {
return @{