It will no longer be released. Please use the 'PowerShellExecutionPolicy' resource in ComputerManagementDsc instead.
The xPowerShellExecutionPolicy modules contains the xPowerShellExecutionPolicy DSC resource for configuring the PowerShell execution policy.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
This is the branch containing the latest release - no contributions should be made directly to this branch.
This is the development branch to which contributions should be proposed by contributors as pull requests. This development branch will periodically be merged to the master branch, and be released to PowerShell Gallery.
Please check out common DSC Resources contributing guidelines.
- ExecutionPolicy: Specifies the desired PowerShell execution policy.
- ExecutionPolicyScope: Specifies the scope of the desired PowerShell execution policy. Defaults to 'LocalMachine'.
- Deprecated this module. This resource module will no longer be released. Please use the PowerShellExecutionPolicy resource in ComputerManagementDsc instead.
- Fixed bug in which unit tests were not being run and also when run would have failed (issue #17). Michael Fyffe (@TraGicCode)
- Fixed PSSA Issues as well.
- Fixed Markdown Linting issues as well.
- Enabled Code Coverage Support (issue #18). Michael Fyffe (@TraGicCode)
- BREAKING CHANGE: Renamed the 'Scope' Parameter to 'ExecutionPolicyScope' since errors are thrown when the MOF file is parsed because 'Scope' is a reserved keyword in the DMTF Specification. (issue #14). Michael Fyffe (@TraGicCode)
- Converted appveyor.yml to install Pester from PSGallery instead of from Chocolatey.
- Added optional -Scope parameter
- Added test cases and Set now throws most exceptions
- Initial release with the following resources
- xPowerShellExecutionPolicy
In the Examples folder, SetPowerShellExecutionPolicy.ps1 is a sample configuration that demonstrates how to use xPowerShellExecutionPolicy to set the execution policy.