Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Powershell always run as Admin now?

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?

like image 704
campbell.rw Avatar asked Aug 28 '12 13:08

campbell.rw


People also ask

Is PowerShell always Admin?

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.

How do I run PowerShell as administrator as standard user?

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.


1 Answers

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.

enter image description here

(Note that if the same shortcut is pinned, you will see the same effect when opening from pinned applications as well, as you experience)

like image 198
manojlds Avatar answered Sep 19 '22 09:09

manojlds