Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


windows_home (3) Versions 2.0.0

Generates user's home directory

cookbook 'windows_home', '~> 2.0.0'
cookbook 'windows_home', '~> 2.0.0', :supermarket
knife supermarket install windows_home
knife supermarket download windows_home
Quality 50%

Windows Home Cookbook

Cookbook Version Build Status

Windows Home generates user's home directory (e.g. C:\Users\${username}). This is useful for when you need access to directories like Documents or AppData after creating a user.

Tested on Amazon Windows Server 2012 R2 AMI.


  • Chef 11.6.0 or higher
  • Windows Server 2008 R2 or higher due to its API usage


  • Windows


Include windows_home as a dependency to use resource.


Generates user's home directory (e.g. C:\Users\${username}).

Note the user will have to be created before calling windows_home. If you are not able to create a file under home directory, then make sure you have the appropriate group permissions.


  • create - Creates and populates the user's home directory.


  • username - Username of account to create and populate home directory for. Defaults to name of the resource block.
  • password - The password of the user (required).
  • confidential - Ensure that sensitive resource data is not logged by the chef-client. Default: true.


user 'newuser' do
  password 'N3wPassW0Rd'

group 'Administrators' do
  members ['newuser']
  append true
  action :modify

windows_home 'newuser' do
  password 'N3wPassW0Rd'

ChefSpec Matchers

The Chrome cookbook includes a custom ChefSpec matcher you can use to test your own cookbooks.

Example Matcher Usage

expect(chef_run).to create_windows_home('username').with(
  password: 'N3wPassW0Rd'

Windows Home Cookbook Matcher

  • create_windows_home(username)

Getting Help


Please refer to CONTRIBUTING.


MIT - see the accompanying LICENSE file for details.


2.0.0 - 2017-03-17

  • Rename sensitive attribute to confidential to be Chef 13 compatible

1.1.0 - 2017-01-02

  • Add sensitive attribute
  • Use use_inline_resources

1.0.0 - 2015-03-28

  • Initial release (ported over from windows_desktop)

Collaborator Number Metric

2.0.0 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

2.0.0 passed this metric

Foodcritic Metric

2.0.0 failed this metric

FC066: Ensure chef_version is set in metadata: windows_home/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

2.0.0 passed this metric

Publish Metric

2.0.0 failed this metric

windows_home is up for adoption

Supported Platforms Metric

2.0.0 passed this metric

Testing File Metric

2.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, and your repo must contain a file

Version Tag Metric

2.0.0 passed this metric