Group Policy configuration Excution policy for PowerShell

Source: Internet
Author: User
PowerShell has its own security mechanism, by default, PowerShell execution policy is limited, that is, restricted, we want to execute the script must first adjust this execution policy, on the computer in Administrator mode to open PowerShell, Then enter the Set-excutionpolicy command, followed by the execution policy you want to set, and PowerShell's execution strategy is restricted,allsigned,remotesigned,unrestricted. Bypass these 5 kinds of models, the specific strategy we can learn from Baidu.
Today's introduction is how to modify a user's execution policy through Group Policy (note: After you modify the execution policy through Group Policy, local execution set-excutionpolicy a warning that your changes cannot take effect because of Group Policy)

First we open the Group Policy console, the user Configuration-Administrative Templates--window component---Windows Powershell, find the object that enables script execution under this path, modify its value, and usually take security into account, we will select "Allow local script and remote signature script"

After the configuration is complete, we can go to the client to use Gpupdate/force strong brush Group Policy, if it is your 2012 domain control, then more simple, directly select the Group Policy to apply the OU, right-click, in the pop-up menu, select "Group Policy Updates", This Group policy refreshes the applicable objects in the OU in immediate Group Policy

Group Policy configuration Excution policy for PowerShell

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.