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

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

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

    Published by BrinkCategory: Customization
    20 Sep 2016

    Published by


    Brink's Avatar
    Administrator

    Posts: 24,507

    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: 2209
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


  1.    03 Jul 2017 #1
    Join Date : Dec 2016
    Posts : 2
    10

    First off, thank you! This is one of the best reg edits!

    I was trying to convert this.reg to use in a .bat using http://www.sordum.org/8478/reg-converter-v1-0/

    But it doesn't quite work. any tips for getting this to work in a .bat?

    again thank you!
      My ComputerSystem Spec
  2.    03 Jul 2017 #2
    Join Date : Oct 2013
    Posts : 24,507
    64-bit Windows 10 Pro build 17017
    Thread Starter

    Hello treeman,

    Yeah, the PowerShell wrapper in it would put a damper on that.
      My ComputersSystem Spec

 


Similar Threads
Tutorial Category
Customization Add or Remove Run as administrator Context Menu in Windows 10
How to Add or Remove 'Run as administrator' Context Menu in Windows 10 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...
Tutorials
Customization Add Batch File to New Context Menu in Windows 10
How to Add Windows Batch File to New Context Menu in Windows 10 A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. The New context menu allows users...
Tutorials
Customization Add Run as administrator to Context Menu of MSI Files in Windows 10
How to Add 'Run as administrator' to MSI File Context Menu in Windows 10 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...
Tutorials
Customization Add Run as administrator to Context Menu of VBS Files in Windows 10
How to Add 'Run as administrator' to VBS File Context Menu in Windows 10 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...
Tutorials
Customization Add Registry File to New Context Menu in Windows 10
How to Add Registration Entries to New Context Menu in Windows 10 .Reg files are registration entries that are text-based human-readable files for exporting and importing portions of the Registry. The New context menu allows users to quickly...
Tutorials
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 16:02.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums