Set PowerShell icon launch to default to run as Administrator


Many commands in PowerShell will not run unless they are run as an administrator.  You can of coarse right click on the taskbar icon and choose the ‘Run as Administrator’ option. But if you prefer to have the icon or shortcut default to run PowerShell as Administrator then you can right click on it once, and choose the ‘Properties’ item.

image

In the window that pops up, near the bottom right of the window click  the ‘Advanced’ button.

image

On the next (and last) screen, you will see a checkbox with ‘Run as administrator’. make sure that checkbox is selected, click ‘OK’, then ‘OK’ on the main Properties window to exit .

image

From now on out, when you click the PowerShell icon, it will run as administrator and you should see the Administrator prefix displayed in the PowerShell title bar.

image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: