This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 @{ |