Hello!
I am new with powershell and need to write a script that collects windows features that exist on a machine. I am aware V5 has the command “Get-WindowsFeature”.
However, I have not found the same in V2.
The closest thing I found was “Get-WMIObject Win32_OptionalFeatures”. I have scoured the internet but have been unsuccesful.
Any help would be greatly appreciated!
Thank you in advance.
Like @Olaf said, efforts should be spent on newer versions of powershell. If you are looking for alternatives, DISM can also enable features starting with Windows 8/2012.
Thank you for your concern!
I appreciate the indepth explanation. However, when the boss says “jump!” then I’m forced to say “how high”…or in this scenario “what version”.
I figured this might be your situation, and it’s not uncommon for businesses to be tied to outdated software for operational reasons. But, after the recent Garmin ransomware debacle, the Marriott data breach, the massive issues surrounding the use of Zoom for teleconferencing, and the rising expense of data breaches, every company should be taking their information security seriously. Attacks are increasing in frequency and in impact. Quite literally, you cannot afford to ignore known vulnerabilities.
The bottom line is, this will cost the company money.
If for some reason you can’t win that argument, then you should at least CYA. Get the instruction in writing, along with a specific acknowledgement of the risk involved. And tell your boss that you’re trying to protect him, too.