windows
Description
Windows-specific resource to get operating system details
Fields
| ID | TYPE | DESCRIPTION | 
|---|---|---|
| computerInfo | dict | A consolidated object of system and operating system properties, see https://docs.microsoft.com/en-us/dotnet/api/microsoft.powershell.commands.computerinfo?view=powershellsdk-1.1.0 for more information | 
| hotfixes | []windows.hotfix | Hotfixes installed on the computer | 
| features | []windows.feature | Deprecated. Use windows.serverFeatures instead | 
| serverFeatures | []windows.serverFeature | Information about Windows Server roles, role services, and features that are available for installation and installed on a specified server. | 
| optionalFeatures | []windows.optionalFeature | Information about optional features in a Windows image. | 
Examples
Check the OS Edition
windows.computerInfo['WindowsInstallationType'] == 'Server Core'