Skip to main content

windows.serverFeature

Description

Windows Server feature resource

Init

windows.serverFeature(name string)

Fields

IDTYPEDESCRIPTION
pathstringFeature full path
namestringCommand IDs of role, role service, or feature
displayNamestringFeature name
descriptionstringFeature description
installedboolWhether the feature is installed
installStateintFeature installation state

Examples

Check that a specific Windows Server feature is installed

windows.serverFeature('SNMP-Service').installed

Check that a specific Windows Server feature is not installed

windows.serverFeature('Windows-Defender').installed == false