Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add administrator rights options to the PS1 file right-click menu for Windows 10 users

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to add administrator rights to the right menu of PS1 files for Windows 10 users. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

Many professional users like to use PowerShell, which has a file format of ".ps1". Because in many cases PowerShell files require administrator privileges to fix system problems, such as Windows 10 application problems, it is very useful to be able to add "run as administrator" option to its right-click menu. Today, IT House will tell you how to add this option.

Users who often watch the home of IT may have thought of the general direction. Yes, just use the registry. Although the following steps may seem a bit more, they are 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, named runas, as shown below--

4. Create a new string value and name it HasLUAShield. The numeric data does not need to be modified and remains blank, as shown in the following figure.

5. Create a new item under runas and name it command, as shown below.

6. Double-click "(default)" to modify the numerical data as follows:

Powershell.exe "- Command"if ((Get-ExecutionPolicy)-ne 'AllSigned') {Set-ExecutionPolicy-Scope Process Bypass}; &' 1'"

After clicking "OK", right-click on any ".ps1" file, you will see the "run as administrator" option, if you want to restore the default, just delete the above key value. In order to facilitate you to add this function, IT House has packaged and uploaded the above registry contents, which can be downloaded and used by users who need it.

After reading the above, do you have any further understanding of how to add administrator permissions to the PS1 file right-click menu for Windows 10 users? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report