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

Group Policy configures Excution Policy for Powershell

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

Share

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

Powershell has its own security mechanism. By default, the execution policy of Powershell is limited, that is, Restricted. If we want to execute the script, we must first adjust this execution policy, open Powershell in administrator mode on the computer, and then enter the Set-ExcutionPolicy command, followed by the execution policy you want to set. The execution strategy of Powershell has five modes: Restricted,Allsigned,RemoteSigned,Unrestricted,Bypass. You can learn the specific strategy.

What we are going to introduce today is how to modify a user's execution policy through group policy (Note: after modifying the execution policy through group policy, the local execution Set-ExcutionPolicy will be warned that your modification cannot take effect due to group policy)

First of all, we open the Group Policy console, user configuration-manage templates-Window components-Windows Powershell, find the object under this path that enables script execution, and modify its value. Usually for security reasons, we will select "allow local scripts and remote signing scripts".

After the configuration is completed, we can go to the client and use gpupdate / force to strongly swipe the group policy. If it is your 2012 domain control, it is even easier. Directly select the OU to which the group policy applies, right-click, and select "Group Policy Update" in the pop-up menu. The group policy will immediately refresh the applicable objects in the OU.

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