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.0.4
- 1.0.2
- 1.0.1
- 1.0.0
Provides custom resources for installing legacy Windows Management Framework releases and configuring DSC prerequisites.
cookbook 'powershell', '~> 7.0.0', :supermarket
knife supermarket install powershell
knife supermarket download powershell
Powershell Cookbook
This cookbook provides custom resources for managing legacy Windows Management Framework
(WMF) installers and the supporting WinRM / DSC configuration required by older Windows
platforms.
Maintainers
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef
cookbook maintainers working together to maintain important cookbooks. If you would like to
know more, visit sous-chefs.org.
Requirements
- Chef Infra Client
>= 15.3 - Windows
-
ms_dotnet>= 3.2.1
Resources
powershell_wmfpowershell_winrmpowershell_dscpowershell_lcm
See [LIMITATIONS.md](LIMITATIONS.md) for the supported Microsoft download matrix and
lifecycle notes.
Usage
Install WMF 5.1 when the target platform needs it:
powershell_wmf '5.1'
Prepare WinRM for DSC with an HTTPS listener:
powershell_dsc 'default' do enable_https_transport true hostname 'node.example.com' thumbprint 'ABCDEF1234567890' end
Enable or disable the Local Configuration Manager:
powershell_lcm 'default' powershell_lcm 'default' do action :disable end
Testing
Local Vagrant runs use kitchen.yml. CI uses the exec driver with kitchen.exec.yml.
berks install cookstyle chef exec rspec --format documentation kitchen test default-windows-2019 --destroy=always
powershell Cookbook CHANGELOG
This file is used to list changes made in each version of the powershell cookbook.
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
Unreleased
- Migrate the cookbook to custom resources and modernize Windows CI/test coverage
7.0.0 (2026-04-20)
⚠ BREAKING CHANGES
- migrate to custom resources (#196)
Features
6.4.21 (2025-10-16)
Bug Fixes
6.4.20 (2025-10-15)
Bug Fixes
6.4.18 - 2024-11-18
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
6.4.17 - 2024-07-15
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
6.4.10 - 2023-04-07
Standardise files with files in sous-chefs/repo-management
6.4.7 - 2023-04-01
Standardise files with files in sous-chefs/repo-management
6.4.6 - 2023-03-20
Standardise files with files in sous-chefs/repo-management
6.4.5 - 2023-03-15
Standardise files with files in sous-chefs/repo-management
Standardise files with files in sous-chefs/repo-management
6.4.4 - 2023-02-23
Standardise files with files in sous-chefs/repo-management
6.4.3 - 2023-02-16
Standardise files with files in sous-chefs/repo-management
6.4.0 - 2023-02-15
- Remove Delivery
- Update GitHub Actions
6.3.1 - 2023-02-15
Standardise files with files in sous-chefs/repo-management
6.3.0 - 2023-01-07
Add filter to remove deprecation warning when depends on windows cookbook (EOL cookbook)
6.3.0 - 2023-01-07
- Add filter to remove deprecation warning when depends on windows cookbook (EOL cookbook)
- Standardise files with files in sous-chefs/repo-management
6.2.5 - 2022-02-10
- Standardise files with files in sous-chefs/repo-management
6.2.4 - 2022-02-08
- Remove delivery folder
6.2.3 - 2021-08-30
- Standardise files with files in sous-chefs/repo-management
6.2.2 - 2021-06-01
- Standardise files with files in sous-chefs/repo-management
6.2.1 - 2021-03-01
- update powershell5 recipe to log warning that 5.1 is preinstalled on windows server 2016+
6.2.0 - 2021-02-08
- Sous Chefs Adoption
- Standardise files with files in sous-chefs/repo-management
- Add GitHub Actions testing
6.1.3 (2018-09-20)
- Fix installation on Windows 7 x32
- Remove the non-functional powershell_module resource
- Change version to 5.1 in comments in powershell5 recipe
6.1.2 (2018-02-07)
- Added guard to not unzip WMF if already installed
6.1.1 (2017-09-28)
- Fixed reboot not found in 2008R2 bug
- Fix specs that weren't running
6.1.0 (2017-06-13)
- Replaces PowerShell 5 installs with PowerShell 5.1
6.0.0 (2017-03-20)
- Add
returnsproperty to windows_package resource to ensure compatibility with chef's built-in windows_package resource - Require windows 3.0 cookbook
5.2.0 (2017-03-08)
- Test with Local Delivery instead of Rake
- Add integration testing in Appveyer on a Windows 2012R2 node and remove the Travis testing
- Require chef-client 12.6 or later since we're using windows_package
5.1.0 (2016-09-02)
- Remove the
windows_rebootresource which has been removed from the Windows cookbook.
5.0.0 (2016-09-02)
- Require Chef 12.1 or later
- Dynamically install rubyzip in the provider. This eliminates the need for the default recipe, which only installed the rubyzip gem. It now just works as expected
- Test Powershell 2-5 and the custom resource in test kitchen on multiple Windows releases
- Remove test deps that are in ChefDK from the Gemfile
- Update the documentation for the powershell recipes to clarify what happens if the platform is not supported
4.0.0 (2016-09-02)
- Remove support for Windows XP, 2003, 2003 R2, and 2008
- Remove the powershell provider that was only needed for Chef 10
- Require a modern windows cookbook release
- Consistently check platform_family in recipes
- Use node.normal instead of node.set in specs
- Switch ruby linting to cookstyle and the new rakefile
- Rename the minimal recipe to test
- Avoid deprecation warnings during specs and use doc output
- Fix a long failing spec so we can get the tests green
v3.3.2 (2016-06-09)
Merged pull requests:
v3.3.1 (2016-05-27)
Merged pull requests:
v3.3.0 (2016-05-17)
Merged pull requests:
- Update WMF 5 binaries to the latest release #86 (carljohnston1)
- MSU exit code 2359302 #83 (andreamaruccia)
- Fix new rubocop errors #81 (smurawski)
- Semantic Version Helper #77 (smurawski)
- Get the build green! #76 (smurawski)
- initial appveyor.yml #75 (smurawski)
- Add ps5 timeout #72 (trevorghess)
v3.2.3 (2015-12-24)
Merged pull requests:
v3.2.2 (2015-12-18)
Merged pull requests:
v3.2.1 (2015-12-17)
Merged pull requests:
- WMF 5 RTM #66 (smurawski)
- The WMF 5.0 - info about compatibility with OS'es in the README.md file #65 (it-praktyk)
v3.2.0 (2015-12-14)
Merged pull requests:
- Smurawski/powershell v5 #64 (smurawski)
- Merging PRs - #57, #60, #61 #63 (smurawski)
- Use all-in-one ms_dotnet cookbook #61 (Annih)
- added version attribute to allow for newer ps builds #49 (burnzy)
- Update poweshell5 recipe to check for latest revision #46 (dpiessens)
- Bump version #44 (jaym)
- Added a kitchen.yml #43 (jaym)
- Powershell 5 Feb preview #42 (jaym)
- Added missing success codes in powershell 2 recipe #41 (NimishaS)
- Nim/powershell reboot #38 (NimishaS)
- Powershell reboot fixes #37 (tjnicholas)
- replace powershell by powershell_script resource #35 (NimishaS)
- Don't reboot windows if powershell 4 is already installed #31 (NimishaS)
- Fix deprecated chefspec runner config #30 (webframp)
- Fix slightly dangerous rm fr. #29 (webframp)
- DSC cookbook should enable winrm with https transport #27 (NimishaS)
- Rspec for powershell module resource and provider #26 (prabhu-das)
- Updated to PowerShell 5 September 2014 preview. #24 (juliandunn)
- Missed '?' on query for Windows 8.1 #23 (juliandunn)
- Pd/chefspec #22 (prabhu-das)
- Initial draft for ps module resource #16 (muktaa)
- Bugfix: Using attributes for bits_4 for windows_server_2008 #13 (jmauro)
v3.0.7 (2014-07-16)
v3.0.6 (2014-07-15)
v3.0.5 (2014-07-12)
v3.0.4 (2014-05-10)
v3.0.2 (2014-04-24)
v3.0.0 (2014-02-05)
v2.0.0 (2014-01-03)
Merged pull requests:
v1.1.2 (2013-08-28)
Merged pull requests:
1.1.0 (2013-06-15)
Merged pull requests:
- fixing foodcritic alerts #3 (ranjib)
- Add powershell_out mixin for use in LWRPs at compile #2 (moserke)
1.0.8 (2012-11-26)
Merged pull requests:
Added updated_by_last_action to :run action #1 (paulmooring)
This Change Log was automatically generated by github_changelog_generator*
Collaborator Number Metric
7.0.0 passed this metric
Contributing File Metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
7.0.0 failed this metric
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 116
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 131
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 144
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 151
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 159
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 170
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
7.0.0 passed this metric
Testing File Metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
7.0.0 passed this metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Cookstyle Metric
7.0.0 failed this metric
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 116
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 131
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 144
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 151
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 159
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 170
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
No Binaries Metric
7.0.0 passed this metric
Testing File Metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
7.0.0 failed this metric
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 131
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 144
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 151
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 159
Chef/Deprecations/PowershellCookbookHelpers: Use node['powershell']['version'] or the new powershell_version helper available in Chef Infra Client 15.8+ instead of the deprecated PowerShell cookbook helpers. (https://docs.chef.io/workstation/cookstyle/chef_deprecations_powershellcookbookhelpers): powershell/resources/powershell_wmf.rb: 170
Run with Cookstyle Version 7.32.1 with cops Chef/Deprecations,Chef/Correctness,Chef/Sharing,Chef/RedundantCode,Chef/Modernize,Chef/Security,InSpec/Deprecations
7.0.0 passed this metric
Testing File Metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
7.0.0 failed this metric
7.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number