Skip to content

Instantly share code, notes, and snippets.

View csds33-cell's full-sized avatar

csds33-cell

  • Joined May 12, 2026
View GitHub Profile
Add-Type -AssemblyName PresentationFramework, System.Windows.Forms, System.Drawing
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
[System.Windows.MessageBox]::Show("Elevated Privileges Required.")
return
}
[xml]$xaml = @"
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Title="PRAGMATIC OPTIMIZER vFINAL" Height="750" Width="500" Background="#121212">
# Admin Check
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Error "Requires admin privs."
return
}
function Show-Header {
Clear-Host
$Color = "Cyan"
Write-Host "================================================" -ForegroundColor $Color
# Run as Admin
# Pragmatist AIO Optimization Tool (No-Gimmick/No-App-Installer)
Add-Type -AssemblyName System.Windows.Forms
$form = New-Object System.Windows.Forms.Form
$form.Text = "Pragmatist AIO Tool"
$form.Size = New-Object System.Drawing.Size(450, 550)
$form.StartPosition = "CenterScreen"
$checkedList = New-Object System.Windows.Forms.CheckedListBox
$checkedList.Location = New-Object System.Drawing.Point(15, 15)