This get all of the windows features and their state on windows server 2012 r2
Get-WindowsFeature | out-file "C:\temp\features.txt"