Launch As Trusted Installer is a specialized wrapper script designed to elevate the execution privileges of another PowerShell script to "TrustedInstaller" level. This is the highest level of access in Windows, surpassing standard Administrator rights, and is often required to modify protected system files or registry keys.
This specific script is configured to launch the Restore-Legacy-Resolution-Control-Panel.PS1 script.
Built by: Zachary Whiteman & Google Gemini Ai.
This is a launcher script that relies on external tools.
To run this script, you will need:
- Windows Operating System.
- PowerShell 5.1 or newer.
- NSudo: The
NSudo.exeutility must be present in the same directory as this script. NSudo is the tool that actually performs the token impersonation to grant TrustedInstaller rights. - Target Script: The script
Restore-Legacy-Resolution-Control-Panel.PS1must also be in the same directory.
- Download: Download the
Launch-As_Trusted-Installer.PS1script file. - Dependencies: Ensure
NSudo.exeandRestore-Legacy-Resolution-Control-Panel.PS1are in the folder with it. - Unblock: Right-click the file, go to Properties, and click
Unblock. - Run: Execute the script from a PowerShell console or by double-clicking it.
.\Launch-As_Trusted-Installer.PS1
The script is fully automated and has no user interface of its own.
- Launch: When you run the script, it immediately hides its own console window to reduce clutter.
- Elevation: It calls
NSudo.exewith specific flags (-U:T -P:E) to request TrustedInstaller user privileges and Enable All Privileges. - Execution: It tells NSudo to launch
pwsh.exe(PowerShell Core) to run the target scriptRestore-Legacy-Resolution-Control-Panel.PS1. - Exit: Once the target script closes, this launcher script will exit automatically.
- Silent Launch: Uses native Windows APIs to hide its own console window immediately upon startup.
- Maximum Privileges: Leverages NSudo to bypass standard Windows file protection (WFP) and registry permission lists (ACLs) by running as the TrustedInstaller account.
- Targeted Execution: Specifically designed to launch a companion script that requires these high-level permissions.
- Scripting Language: PowerShell
- Elevation Tool:
NSudo.exe(External Dependency). - Windows API: P/Invoke access to
user32.dllandkernel32.dllfor window management.
- Security Risk: Running scripts as TrustedInstaller bypasses almost all security controls in Windows. Only run scripts you fully trust with this launcher.
- Dependency: This script will fail if
NSudo.exeis missing.
Distributed under the MIT License. See LICENSE.txt for more information.
Zach Whiteman - elitesoftwarecolimited@gmail.com
HuggingFace - https://huggingface.co/EliteSoftware
HuggingFace (Personal) - https://huggingface.co/TheShadyRainbow
LinkTree - https://linktr.ee/zachrainbow