chef / 17.9.18 / infra_language / windows / index.html /

Chef Infra Language: Windows

[edit on GitHub]

Chef Infra Client 15.8 and later include Windows-specific helpers for checking platform and package information.

windows_server_core?

Determine if the current node is Windows Server Core.

windows_workstation?

Determine if the current node is Windows Workstation.

windows_server?

Determine if the current node is Windows Server.

windows_nt_version

Determine the current Windows NT version. The NT version often differs from the marketing version, but offers a good way to find desktop and server releases that are based on the same codebase. For example NT 6.3 corresponds to Windows 8.1 and Windows 2012 R2.

powershell_version

Determine the installed version of PowerShell.

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/infra_language/windows/