![]() If you’re not logged in as an administrator, check out our guide on how to log in as an admin in Windows. Add to that %userprofile\Documents\Scripts\wt_as_admin.ps (or wherever your script is). Steps Download Article 1 Press the Windows Key () S at the same time. You'll notice that Windows has expanded powershell.exe to its full path.Right-click the shortcut you just created and select Properties For the Name, call it "Windows Terminal Admin" (or whatever you want).In File Explorer, navigate to %userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs It should bring up the UAC and run Windows Terminal as admin. Test it by right-clicking it in File Explorer and selecting Run with PowerShell. It reads as a little convoluted, but that's mainly because I want to provide instructions that are as "failsafe" as possible:Ĭreate a script, let's say %userprofile%\Documents\Scripts\wt_as_admin.ps with the following: Start-Process wt -Verb RunAs ![]() There may be an easier way (or perhaps not), but here is at least a method that works on Windows 11.
0 Comments
Leave a Reply. |