Summary
In this chapter, you learned how to get Windows features with the get-windowsFeature
cmdlet. You then learned how to use the win32_serverfeature
to retrieve Windows features on legacy systems. You also leveraged an XML file to correlate feature, role, and parent IDs from the win32_serverfeature
class to user-friendly names. You proceeded to evaluate why win32_product
should not be used in scripts. You then leveraged the registry to discover installed software. Finally, you learned how to scan the Program Files
and Program Files (x86)
directories for executables and extended properties for software identification.
In the next chapter, you will learn a method for scanning a folder structure for files that contain specific strings.