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
| 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"> |
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
| # 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 |
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
| # 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) |