Many professional users like to use PowerShell. The file format of this tool is “.ps1”. Since in many cases PowerShell files require administrator privileges to solve system problems, such as Win10 application issues, it is useful to add the option "Run as administrator" to its right-click menu. PepsiCo Xiaobian today tells you how to add this option.
It is to use the registry. Although the following steps may seem more complicated, it is not troublesome, as follows:
1. After entering regedit in the Cortana search bar, press Enter to enter the Registry Editor
2. Navigate to
HKEY_CLASSES_ROOT\\Microsoft.PowerShellScript.1\\shell
3, create a new item, name it runas, as shown below ——
4, New The string value, named HasLUAShield, the numerical data does not need to be modified, keep empty, as shown below ——
5, create a new item under runas, named command, as shown below ——
6, double-click "(default)", modify its value data as follows:
powershell.exe "-Command" "if((Get-ExecutionPolicy) - Ne 'AllSigned') { Set-ExecutionPolicy -Scope Process Bypass }; & '%1'"
Click on “OK", on any “.ps1” file Right click, you will see the option to "Run as administrator", if you want to restore the default, just delete the above key values. In order to facilitate the addition of this function, IT House has packaged and uploaded the above registry contents, and users who need it can download and use it.
Registration file download: Click here to enter the network disk
As a computer enthusiast, Xiaobian installed the new Win10 system by reinstalling the system in the
Is the resolution of your phone or tablet or computer wallpaper high enough? How about the 5K level?
In Windows 10, we no longer need other video recording tools, because Win10 has built-in game video
Nowadays computers are very popular in the home and office places, you can browse all kinds of websi
How to uninstall Win10 Win10 uninstall software four steps to get
Win10 browser can not open some pages how to do Win10 browser can not open the web solution
How to improve Win10 boot speed? Speed up Win10 boot speed optimization method
Win10 SSD speed optimization SSD speed Win10 optimized SSD method
20 Win10 universal Win key shortcuts Do you know a few?
How to close the Win10 firewall Close the Win10 firewall setting method
Win10 boot prompts the user name and password are incorrect and the solution
How to delete windows.old in Win10? Win10 remove windows.old tutorial
How to turn off Win10 firewall Turn on or off Win10 firewall setting method
Win10 calculator shortcuts Quickly open Win10 calculator method
How to block marketing advertising Win10 Win10 shielding irrelevant advertising method
Win10 how to see Directx version Win10 view Directx version method
Win7 system set personalized boot music skills
Win7 how to close Update Win7 switch off Update method
How to achieve the support of infrared communication?
How to change the input method icon in Windows 7 system
Win10 10102 preview version how to display the desktop my computer and other icons?
Win7/Win8 traditional BIOS graphic installation SteamOS diagram detailed tutorial
Solve the problem that Windows8 system is not compatible with some software