Get windows features

hey,
i have this relevance

string value of select “* from Win32_OptionalFeature where name = ‘SMB1protocol’” of wmi

A: SMB 1.0/CIFS File Sharing Support
E: Singular expression refers to non-unique object.
T: 1696088

can i get also the status? if its enable? disable? posibble?

You need to specify which properties you want to display and what the value of each would be as. You also cannot display singular setting but pass plural data… Have a look at the modified example and go from there to whatever the desired output is for you.

q: (string value of property “Caption” of it, string value of property “Name” of it, string value of property “InstallState” of it, (if (exists string value of property “Status” of it) then (string value of property “Status” of it) else (“N/A”))) of select objects “* from Win32_OptionalFeature where name = ‘SMB1protocol’” of wmi
A: SMB 1.0/CIFS File Sharing Support, SMB1Protocol, 1, N/A