{"repo":"AveYo/LeanAndMean","free":true,"listed":false,"github":"https://github.com/AveYo/LeanAndMean","clone":"git clone https://github.com/AveYo/LeanAndMean.git","description":"snippets for power users","language":"Batchfile","stars":418,"topics":["batch","powershell","runas","trustedinstaller","reg-own","runasti","toggle-defender"],"license":"MIT","category":"cli-tools","readme_excerpt":"RunAsTI - TrustedInstaller access rights while keeping HKCU loaded --- supports Windows 7 - Windows 10 - Windows 11 release - Windows 11 dev RunAsTI.reg context menu for folders, exe, msc, bat, cmd, reg - updated 2023.07.06 2022.01.16: added Open Powershell as trustedinstaller entry on directory background 2022.01.28: workaround for 11 release (22000) delaying explorer; fix 7 args 2022.04.07: PowerShell / Terminal (if installed, use Terminal as TI, else use PowerShell as TI) 2023.07.06: fix arguments with quotes RunAsTI.bat with Send to right-click menu entry to launch files and folders as TI - updated 2023.07.06 2022.01.28: workaround for 11 release (22000) delaying explorer; fix 7 args 2023.07.06: fix arguments with quotes RunAsTI.ps1 or copy-paste function code in powershell console - updated 2022.01.28 2022.01.28: workaround for 11 release (22000) delaying explorer Q & A: Q: what is the deal with the back\\ quotes? A: to silence lame powershell keyword-based event-log warnings that include the whole snippet and slows down processing Q: pretty sure reflection is used, single-letter vars for types, then.. any hints about those magic constants and arrays? A: $Ai instance of $T[i] type of $D[i] structure of $DF[i] fields; $D[4] StartupInfoEx, $D[3] StartupInfo, $D[2] lpAttribute.. $D[0] for pinvoke definitions; numbers mostly calling flags or premade struct sizes; check microsoft docs ^,^ Q: is there a way to launch Windows Terminal as TI on a windows 11 machine? A: sure. crea","default_branch":null,"files":null,"tree":[],"storefront":"/r/AveYo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AveYo/LeanAndMean/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}