I'm running Windows 7, and recently installed the update so I can use Powershell 3.0. That process went fine and I've been using Powershell 3 for about a month now. One thing I noticed is that every time I run Powershell now, it runs with elevated privileges. I don't right click and Run As Administrator, I just do a normal left click. This happens when I run from the Start Menu, or when it's pinned to the task bar or however I start it. This never happened with Powershell 2. I've done nothing special to make it always run as Admin, as I don't want to always run as Admin. Does anyone have any suggestions of things I can check?
Always open PowerShell as administrator Click the menu button next to the new tab option and select the Settings option. Under the “Profiles” section, click on PowerShell. Turn on the “Run this profile as Administrator” toggle switch to run PowerShell elevated automatically. Click the Save button.
Step 1: Press the Windows + R keys together to bring up the Run dialog box. Step 2: Type the PowerShell in the box and click OK button. A normal Window PowerShell will launch as a current user. Step 3: Type the command start-process PowerShell -verb runas and press "enter" key.
If you have set in the properties of the Powershell shorcut ( under Advanced ) and set it to run as Administrator, it will always run in admin mode. See if this is the case and remove the setting if so.
(Note that if the same shortcut is pinned, you will see the same effect when opening from pinned applications as well, as you experience)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With