Skip to main content

windows

Description

Windows-specific resource to get operating system details

Fields

IDTYPEDESCRIPTION
computerInfodictA 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.hotfixHotfixes installed on the computer
features[]windows.featureDeprecated. Use windows.serverFeatures instead
serverFeatures[]windows.serverFeatureInformation about Windows Server roles, role services, and features that are available for installation and installed on a specified server.
optionalFeatures[]windows.optionalFeatureInformation about optional features in a Windows image.

Examples

Check the OS Edition

windows.computerInfo['WindowsInstallationType'] == 'Server Core'