【PowerShell】役割機能を一括取得(Get-WindowsFeature)

役割機能の一覧をコマンドで出したいとき。
1 2 |
PS C:\Windows\system32> Import-Module servermanager PS C:\Windows\system32> Get-WindowsFeature |
エクスポートするときはexport-csvで出力
1 |
PS C:\windows\System32> Get-WindowsFeature | Export-Csv -Encoding Default -Path C:\work\windowsfeature.csv |