Skip to main content

Chef Infra Language: Windows

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.

Edit this page on GitHub

Thank you for your feedback!

×











Search Results