1
I'm getting started with Windows server 2016, and I'm using a CLI only version. I'm trying to determine what features are installed on my Computer. I tried to do so by viewing stuff with
Get-WindowsFeature
Obviously i don't like reading everything manually to see whether or not it's installed. So i would like to only list the things that are actually installed. I tried to do so with the following command:
Get-WindowsFeature | Where-Object {$_."install state" -like "Installed"}
This returns nothing at all (Note that when i view everything there are modules installed). And when i try to run the commando below, i actually get content returned:
Get-WindowsFeature | Where-Object {$_."name" -like "dns"}
What am i doing wrong? Is it a wrong usage of the command, is the underlying name for "install state" something different?
tl;dr: It works, but has downsides full story: It returns the correct data, but it only shows the displayname, and thus the hierarchy isn't visible anymore. The answer below is better. But still, it works, so thanks! – Nick Dewitte – 2017-02-19T12:44:07.883
@sniker824 Try removing
| format-list DisplayName
from the command – DavidPostill – 2017-02-19T12:45:41.910