Skip to content

Instantly share code, notes, and snippets.

@zDEFz
zDEFz / Remove_VMwareTools.ps1
Created July 21, 2025 02:51 — 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;
@zDEFz
zDEFz / iomemdec.py
Created December 28, 2022 20:22 — forked from paulguy/iomemdec.py
Script to output /proc/iomem size
#!/usr/bin/env python
import sys
SUFFIXES = ('', 'KiB', 'MiB', 'GiB', 'TiB')
def decode(filename, human=False):
with open(filename, 'r') as infile:
for line in infile:
line = line[:-1]