Skip to main content

windows.feature

Description

Windows feature resource

Init

windows.feature(name string)

Fields

IDTYPEDESCRIPTION
pathstringfeature full path
namestringcommand IDs of role, role service, or feature
displayNamestringfeature name
descriptionstringfeature description
installedboolflag indicates whether the feature is installed
installStateintfeature installation state

Examples

Check that a Windows features is installed

windows.feature("SNMP-Service").installed;

Check that a specific feature is not installed

windows.feature("Windows-Defender").installed == false;