Skip to content

Instantly share code, notes, and snippets.

View DavidArsene's full-sized avatar

DavidArsene

  • Bucharest
  • 05:40 (UTC +03:00)
View GitHub Profile
@DavidArsene
DavidArsene / VBS-Disabler-UEFI.ps1
Created March 29, 2024 07:20
Disable VBS UEFI Lock. Disable in Group Policy first (System\Device Guard\Turn On VBS). Reboot after running and follow the prompts.
using namespace System.Security.Principal
if (-Not ([WindowsPrincipal] [WindowsIdentity]::GetCurrent()).IsInRole([WindowsBuiltInRole]::Administrator)) {
Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -File `"$PSCommandPath`""
Exit
}
$id = "0cb3b571-2f2e-4343-a879-d86a476d7215"
mountvol X: /s # EFI Partition
#!/bin/bash
[ "$EUID" -ne 0 ] && echo "This script must be ran as root!" && exit 1
system=$(settings list system)
secure=$(settings list secure)
global=$(settings list global)
read -p "Press Enter after changing settings..."
@DavidArsene
DavidArsene / kill_chromium_cache.ps1
Created January 1, 2022 14:56
Prevents Chrome and other Chromium-based apps from using the cache folders. Has no side effects
ForEach ($folder in 'Cache', 'Code Cache', 'GPUCache') { Remove-Item -Recurse "$folder/*"; icacls $folder /deny Everyone:F }
# Revert
ForEach ($folder in 'Cache', 'Code Cache', 'GPUCache') { icacls $folder /remove:d Everyone }
@DavidArsene
DavidArsene / CompatTelRunner.reg
Created October 10, 2021 19:12
Permanently kill CompatTelRunner.exe
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe]
"Debugger"="%1"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe]
"Debugger"="%1"