cookbook 'windows_autologin', '= 4.0.0'
windows_autologin (8) Versions 4.0.0 Follow8
Configures Winlogon
cookbook 'windows_autologin', '= 4.0.0', :supermarket
knife supermarket install windows_autologin
knife supermarket download windows_autologin
Windows Autologin Cookbook
Enables/disables automatic logon using Windows
AutoAdminLogon.
Automatic logon uses username (domain can be included, e.g.,
domain\username) and password stored in the registry to log users on
to the computer when the system starts. The Log On to Windows dialog
box is not displayed.
Use count to limit the Number of Automatic Logins. Once the limit has
been reached the auto logon feature will be disabled.
WARNING: Automatic logon allows other users to start your computer
and to log on using your account, password is stored
unencrypted under windows registry
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
when
enabled, and Chef outputs the password when updating autologin registry.
Requirements
- Chef 11.6+ (includes a built-in registry_key resource)
Platforms
- Windows
Usage
Requires Administrator privileges.
Enable automatic login for user
windows_autologin 'enable autologin' do username 'username' password my_secret action :enable end
Disable automatic login and remove password and count entry
windows_autologin 'username' do action :disable end
Actions
-
enable
- Enables autologin. -
disable
- Disables autologin.
Attributes
-
username
- The username to autologin as. Defaults to resource block name. Note that username can include domain. -
password
- Required to enable. Default:nil
. -
count
- Number of Automatic Logins. Once the limit has been reached the auto logon feature will be disabled. Default:0
. -
confidential
- Ensure that sensitive resource data is not logged by the chef-client. Default:true
.
ChefSpec Matchers
This cookbook includes custom ChefSpec matchers you can use to test
your own cookbooks.
Example Matcher Usage
expect(chef_run).to enable_windows_autologin('username').with( password: 'password' )
Cookbook Matchers
- enable_windows_autologin(resource_name)
- disable_windows_autologin(resource_name)
Getting Help
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Contributing
Please refer to CONTRIBUTING.
License
MIT - see the accompanying LICENSE file
for details.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Changelog
4.0.0 2017-03-17
- Rename sensitive attribute to confidential to be Chef 13 compatible
3.0.0 2017-02-03
- Remove default recipe
- Merge domain attribute into username
2.2.0 2017-01-01
- Add AutoLogonCount support
2.1.0 2016-12-31
- Add enable/disable resource
2.0.0 2015-09-22
- Merge remove recipe into default recipe
1.0.1 2015-07-28
- Fix #1 WARN: Cloning resource attributes from prior resource (CHEF-3694)
1.0.0 2015-05-20
- Initial release
Collaborator Number Metric
4.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
4.0.0 passed this metric
Foodcritic Metric
4.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: windows_autologin/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
4.0.0 passed this metric
No Binaries Metric
4.0.0 passed this metric
Testing File Metric
4.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
4.0.0 passed this metric
4.0.0 failed this metric
4.0.0 passed this metric
Foodcritic Metric
4.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: windows_autologin/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
4.0.0 passed this metric
No Binaries Metric
4.0.0 passed this metric
Testing File Metric
4.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
4.0.0 passed this metric
4.0.0 failed this metric
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
4.0.0 passed this metric
No Binaries Metric
4.0.0 passed this metric
Testing File Metric
4.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
4.0.0 passed this metric
4.0.0 passed this metric
4.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
4.0.0 passed this metric
4.0.0 passed this metric