

Just search for the app or command, highlight using your keyboard arrows, and hit Ctrl+Shift+Enter. Hitting Enter runs the command as a normal user.Īnd by the way, if you favor using the Start menu search over the Run box, the Ctrl+Shift+Enter trick will work there, too. After typing your command, hit Ctrl+Shift+Enter to run it with admin privileges. Type the name of whatever command-or program, folder, document, or website-you want to open. Today, though, we’re going to look at how to run a program or command as an administrator. This technique is super easy and works in Windows 10, 8, and 7. You can even use it to quickly open hidden system folders with the Shell command. It offers a super fast way to launch things when you know their names. It’s become a less-used feature since Windows 7 enhanced the Start menu search to accommodate most of what you can do with the Run box, but the Run box can still be useful. I have selected the Open in Console option on the seesion, but that does not work. The Run box has been around since the early days of Windows. I have a server that needs to have the /admin option on the MSTSC session, so that we can see the proper tasks running in the system tray. If (-NOT ( ::GetCurrent()).RELATED: How to Open Hidden System Folders with Windows' Shell Command Right-click on the PowerShell ISE, and click Run as. After opening it, type PowerShell ISE to search. A primary way to open your PowerShell ISE: Click on the Search icon available on the taskbar. Write-Host "Checking for elevated permissions." In this article, we will illustrate various ways to run the PowerShell script with administrator privileges: Method 1.

The following PowerShell code can be used to check if the current script is running in the “Run as Administrator” mode:


If you need to run a PowerShell script with the administrator privileges, you can check if the current powershell.exe process has the elevated permissions right in your PS code.
