popunder new

https://www.blogger.com/blog/posts/1739890295310631346

Tuesday, January 29, 2013

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

1 comment:

  1. I am always looking online for posts that can help me.
    Thanks!

    ReplyDelete