Chef Infra Client 15.8 and later include Windows-specific helpers for checking platform and package information.
Determine if the current node is Windows Server Core.
Determine if the current node is Windows Workstation.
Determine if the current node is Windows Server.
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.
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/