Published by


Brink's Avatar
Administrator

Posts: 17,366

Show Printable Version 


How to Add 'Run as administrator' to PS1 File Context Menu in Windows 10

information   Information
Some legitimate applications require a full administrator access token (elevated) to perform their functions or tasks. For example, when a program that you are trying to run is giving you a Access Denied or No Permission type error.

When you right click on application files, you can use the Run as administrator context menu item to run the app with elevated rights (full administrator access token).

This tutorial will show you how to add or remove Run as administrator from the context menu of PowerShell .ps1 files for all users in Windows 10.

You must be signed in as an administrator to be able to add or remove this context menu.


EXAMPLE: "Run as administrator" in context menu of PS1 files
Name:  PS1_Run_as_administrator.png
Views: 435
Size:  224.3 KB




Here's How:

1. Do step 2 (add) or step 3 (remove) below for what you would like to do.


 2. To Add "Run as administrator" to PS1 file Context Menu

A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Add_PS1_Run_as_administrator.reg

download


 3. To Remove "Run as administrator" from PS1 file Context Menu

NOTE: This is the default setting.

A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Remove_PS1_Run_as_administrator.reg

download

4. Save the .reg file to your desktop.

5. Double click/tap on the downloaded .reg file to merge it.

6. If prompted, click on Run, Yes (UAC), Yes, and OK to approve the merge.

7. You can now delete the downloaded .reg file if you like.



That's it,
Shawn