サーバーの役割を表示させるには、oclist.exeを使用する。
ただし、 表示量が多く、コマンドプロンプト上では表示がスクロールして流れてしまうので、
テキストファイルにリダイレクトさせるとか、
| more を使ったほうが良い。
>oclist.exe | more例:テキストファイルにリダイレクトする。 (メモ帳でテキストファイルを開ける)
>oclist.exe > hoge.txt >notepad.exe hoge.txt
すると下記のような表示が現れる。
「未インストール」と表示されているものは、ocsetup.exeで
インストールすることができる。
といっても、Server Coreで利用できるものは限定されていて、
IISの役割などはインストールできないのだが。
サーバーの役割またはオプションの機能をインストールまたはアンインストールするには、 一覧に表示された更新名を指定して ocsetup.exe を実行してください。ocsetup.exe を使用した Active Directory の役割の追加または削除はサポートされていません。 この操作を実行した場合、サーバーが不安定な状態になる可能性があります。 Active Directory をインストールまたはアンインストールするには、 必ず Dcpromo を使用してください。
=========================================================================== Microsoft-Windows-ServerCore-Package 未インストール:BitLocker 未インストール:BitLocker-RemoteAdminTool 未インストール:ClientForNFS-Base 未インストール:DFSN-Server 未インストール:DFSR-Infrastructure-ServerEdition 未インストール:DHCPServerCore 未インストール:DirectoryServices-ADAM-ServerCore 未インストール:DirectoryServices-DomainController-ServerFoundation 未インストール:DNS-Server-Core-Role 未インストール:FailoverCluster-Core 未インストール:FRS-Infrastructure 未インストール:IIS-WebServerRole | |- 未インストール:IIS-FTPPublishingService | | | |- 未インストール:IIS-FTPServer | |- 未インストール:IIS-WebServer | | | |- 未インストール:IIS-ApplicationDevelopment | | | | | |- 未インストール:IIS-ASP | | |- 未インストール:IIS-CGI | | |- 未インストール:IIS-ISAPIExtensions | | | | | | | |- 未インストール:IIS-ASP | | | | | |- 未インストール:IIS-ISAPIFilter | | |- 未インストール:IIS-ServerSideIncludes | | | |- 未インストール:IIS-CommonHttpFeatures | | | | | |- 未インストール:IIS-DefaultDocument | | |- 未インストール:IIS-DirectoryBrowsing | | |- 未インストール:IIS-HttpErrors | | |- 未インストール:IIS-HttpRedirect | | |- 未インストール:IIS-StaticContent | | | |- 未インストール:IIS-HealthAndDiagnostics | | | | | |- 未インストール:IIS-CustomLogging | | |- 未インストール:IIS-HttpLogging | | |- 未インストール:IIS-HttpTracing | | |- 未インストール:IIS-LoggingLibraries | | |- 未インストール:IIS-ODBCLogging | | |- 未インストール:IIS-RequestMonitor | | | |- 未インストール:IIS-Performance | | | | | |- 未インストール:IIS-HttpCompressionDynamic | | |- 未インストール:IIS-HttpCompressionStatic | | | |- 未インストール:IIS-Security | | | |- 未インストール:IIS-BasicAuthentication | |- 未インストール:IIS-ClientCertificateMappingAuthentication | |- 未インストール:IIS-DigestAuthentication | |- 未インストール:IIS-IISCertificateMappingAuthentication | |- 未インストール:IIS-IPSecurity | |- 未インストール:IIS-RequestFiltering | | | | | |- 未インストール:IIS-ASP | | | |- 未インストール:IIS-URLAuthorization | |- 未インストール:IIS-WindowsAuthentication | |- 未インストール:IIS-WebServerManagementTools | | | |- 未インストール:IIS-IIS6ManagementCompatibility | | | | | |- 未インストール:IIS-LegacyScripts | | |- 未インストール:IIS-Metabase | | | | | | | |- 未インストール:IIS-FTPServer | | | |- 未インストール:IIS-LegacyScripts | | | | | |- 未インストール:IIS-WMICompatibility | | | | | |- 未インストール:IIS-LegacyScripts | | | |- 未インストール:IIS-ManagementScriptingTools | 未インストール:Microsoft-Windows-RemovableStorageManagementCore 未インストール:MultipathIo 未インストール:NetworkLoadBalancingHeadlessServer 未インストール:Printing-ServerCore-Role | |- 未インストール:Printing-LPDPrintService | 未インストール:QWAVE 未インストール:ServerForNFS-Base 未インストール:SNMP-SC 未インストール:SUACore 未インストール:TelnetClient 未インストール:WAS-WindowsActivationService | |- 未インストール:WAS-ProcessModel | | | |- 未インストール:IIS-ASP | |- 未インストール:IIS-BasicAuthentication | |- 未インストール:IIS-CGI | |- 未インストール:IIS-ClientCertificateMappingAuthentication | |- 未インストール:IIS-CustomLogging | |- 未インストール:IIS-DefaultDocument | |- 未インストール:IIS-DigestAuthentication | |- 未インストール:IIS-DirectoryBrowsing | |- 未インストール:IIS-HttpCompressionDynamic | |- 未インストール:IIS-HttpCompressionStatic | |- 未インストール:IIS-HttpErrors | |- 未インストール:IIS-HttpLogging | |- 未インストール:IIS-HttpRedirect | |- 未インストール:IIS-HttpTracing | |- 未インストール:IIS-IISCertificateMappingAuthentication | |- 未インストール:IIS-IPSecurity | | | |- 未インストール:IIS-ISAPIExtensions | | | | | |- 未インストール:IIS-ASP | | | |- 未インストール:IIS-ISAPIFilter | |- 未インストール:IIS-LoggingLibraries | |- 未インストール:IIS-ODBCLogging | |- 未インストール:IIS-RequestFiltering | | | | | |- 未インストール:IIS-ASP | | | |- 未インストール:IIS-RequestMonitor | |- 未インストール:IIS-ServerSideIncludes | |- 未インストール:IIS-StaticContent | |- 未インストール:IIS-URLAuthorization | |- 未インストール:IIS-WindowsAuthentication | 未インストール:WindowsServerBackup 未インストール:WINS-SC
