Skip to main content

windows.feature

Description

Deprecated. Use windows.serverFeature instead

Init

windows.feature(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.feature('SNMP-Service').installed

Check that a specific Windows Server feature is not installed

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