-
-
Save pcn/237f2ea459121a48c68c to your computer and use it in GitHub Desktop.
dism.exe /online /get-features
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deployment Image Servicing and Management tool | |
Version: 6.1.7600.16385 | |
Image Version: 6.1.7600.16385 | |
Features listing for package : Microsoft-Windows-ServerCore-Package~31bf3856ad364e35~amd64~~6.1.7600.16385 | |
Feature Name : NetworkLoadBalancingHeadlessServer | |
State : Disabled | |
Feature Name : SUACore | |
State : Disabled | |
Feature Name : SUACore-WOW64 | |
State : Disabled | |
Feature Name : WindowsServerBackup | |
State : Disabled | |
Feature Name : WindowsServerBackupCommandlet | |
State : Disabled | |
Feature Name : MultipathIo | |
State : Disabled | |
Feature Name : DNS-Server-Core-Role | |
State : Disabled | |
Feature Name : FRS-Infrastructure | |
State : Disabled | |
Feature Name : BitLocker | |
State : Disabled | |
Feature Name : BitLocker-RemoteAdminTool | |
State : Disabled | |
Feature Name : DirectoryServices-DomainController-ServerFoundation | |
State : Disabled | |
Feature Name : DirectoryServices-ADAM-ServerCore | |
State : Disabled | |
Feature Name : ActiveDirectory-PowerShell | |
State : Disabled | |
Feature Name : IIS-WebServerRole | |
State : Disabled | |
Feature Name : IIS-WebServer | |
State : Disabled | |
Feature Name : IIS-CommonHttpFeatures | |
State : Disabled | |
Feature Name : IIS-StaticContent | |
State : Disabled | |
Feature Name : IIS-DefaultDocument | |
State : Disabled | |
Feature Name : IIS-DirectoryBrowsing | |
State : Disabled | |
Feature Name : IIS-HttpErrors | |
State : Disabled | |
Feature Name : IIS-HttpRedirect | |
State : Disabled | |
Feature Name : IIS-WebDAV | |
State : Disabled | |
Feature Name : IIS-ApplicationDevelopment | |
State : Disabled | |
Feature Name : IIS-NetFxExtensibility | |
State : Disabled | |
Feature Name : IIS-ASPNET | |
State : Disabled | |
Feature Name : IIS-ASP | |
State : Disabled | |
Feature Name : IIS-CGI | |
State : Disabled | |
Feature Name : IIS-ISAPIExtensions | |
State : Disabled | |
Feature Name : IIS-ISAPIFilter | |
State : Disabled | |
Feature Name : IIS-ServerSideIncludes | |
State : Disabled | |
Feature Name : IIS-HealthAndDiagnostics | |
State : Disabled | |
Feature Name : IIS-HttpLogging | |
State : Disabled | |
Feature Name : IIS-LoggingLibraries | |
State : Disabled | |
Feature Name : IIS-RequestMonitor | |
State : Disabled | |
Feature Name : IIS-HttpTracing | |
State : Disabled | |
Feature Name : IIS-CustomLogging | |
State : Disabled | |
Feature Name : IIS-ODBCLogging | |
State : Disabled | |
Feature Name : IIS-Security | |
State : Disabled | |
Feature Name : IIS-BasicAuthentication | |
State : Disabled | |
Feature Name : IIS-WindowsAuthentication | |
State : Disabled | |
Feature Name : IIS-DigestAuthentication | |
State : Disabled | |
Feature Name : IIS-ClientCertificateMappingAuthentication | |
State : Disabled | |
Feature Name : IIS-IISCertificateMappingAuthentication | |
State : Disabled | |
Feature Name : IIS-URLAuthorization | |
State : Disabled | |
Feature Name : IIS-RequestFiltering | |
State : Disabled | |
Feature Name : IIS-IPSecurity | |
State : Disabled | |
Feature Name : IIS-Performance | |
State : Disabled | |
Feature Name : IIS-HttpCompressionStatic | |
State : Disabled | |
Feature Name : IIS-HttpCompressionDynamic | |
State : Disabled | |
Feature Name : IIS-WebServerManagementTools | |
State : Disabled | |
Feature Name : IIS-ManagementScriptingTools | |
State : Disabled | |
Feature Name : IIS-ManagementService | |
State : Disabled | |
Feature Name : IIS-IIS6ManagementCompatibility | |
State : Disabled | |
Feature Name : IIS-Metabase | |
State : Disabled | |
Feature Name : IIS-WMICompatibility | |
State : Disabled | |
Feature Name : IIS-LegacyScripts | |
State : Disabled | |
Feature Name : IIS-FTPServer | |
State : Disabled | |
Feature Name : IIS-FTPSvc | |
State : Disabled | |
Feature Name : IIS-FTPExtensibility | |
State : Disabled | |
Feature Name : WAS-WindowsActivationService | |
State : Disabled | |
Feature Name : WAS-ProcessModel | |
State : Disabled | |
Feature Name : WAS-NetFxEnvironment | |
State : Disabled | |
Feature Name : WAS-ConfigurationAPI | |
State : Disabled | |
Feature Name : IIS-HostableWebCore | |
State : Disabled | |
Feature Name : ClientForNFS-Base | |
State : Disabled | |
Feature Name : ServerForNFS-Base | |
State : Disabled | |
Feature Name : DFSR-Infrastructure-ServerEdition | |
State : Disabled | |
Feature Name : DHCPServerCore | |
State : Disabled | |
Feature Name : SNMP-SC | |
State : Disabled | |
Feature Name : DFSN-Server | |
State : Disabled | |
Feature Name : TelnetClient | |
State : Disabled | |
Feature Name : WINS-SC | |
State : Disabled | |
Feature Name : Printing-ServerCore-Role | |
State : Disabled | |
Feature Name : Printing-LPDPrintService | |
State : Disabled | |
Feature Name : Printing-ServerCore-Role-WOW64 | |
State : Disabled | |
Feature Name : ServerCore-EA-IME | |
State : Enabled | |
Feature Name : ServerCore-EA-IME-WOW64 | |
State : Disabled | |
Feature Name : QWAVE | |
State : Disabled | |
Feature Name : NetFx2-ServerCore | |
State : Disabled | |
Feature Name : NetFx2-ServerCore-WOW64 | |
State : Disabled | |
Feature Name : NetFx3-ServerCore | |
State : Disabled | |
Feature Name : WCF-HTTP-Activation | |
State : Disabled | |
Feature Name : WCF-NonHTTP-Activation | |
State : Disabled | |
Feature Name : NetFx3-ServerCore-WOW64 | |
State : Disabled | |
Feature Name : MicrosoftWindowsPowerShell | |
State : Disabled | |
Feature Name : MicrosoftWindowsPowerShell-WOW64 | |
State : Disabled | |
Feature Name : ServerManager-PSH-Cmdlets | |
State : Disabled | |
Feature Name : BestPractices-PSH-Cmdlets | |
State : Disabled | |
Feature Name : PeerDist | |
State : Disabled | |
Feature Name : Microsoft-Hyper-V | |
State : Disabled | |
Feature Name : VmHostAgent | |
State : Disabled | |
Feature Name : CertificateServices | |
State : Disabled | |
Feature Name : SMBHashGeneration | |
State : Disabled | |
Feature Name : ServerMigration | |
State : Disabled | |
Feature Name : ServerCore-WOW64 | |
State : Enabled | |
Feature Name : FSRM-Infrastructure-Core | |
State : Disabled | |
Feature Name : CoreFileServer | |
State : Disabled | |
Feature Name : LightweightServer | |
State : Disabled | |
Feature Name : Microsoft-Windows-Web-Services-for-Management-IIS-Extension | |
State : Disabled | |
The operation completed successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input_ = """Deployment Image Servicing and Management tool | |
Version: 6.1.7600.16385 | |
Image Version: 6.1.7600.16385 | |
Features listing for package : Microsoft-Windows-ServerCore-Package~31bf3856ad364e35~amd64~~6.1.7600.16385 | |
Feature Name : NetworkLoadBalancingHeadlessServer | |
State : Disabled | |
Feature Name : SUACore | |
State : Disabled | |
Feature Name : SUACore-WOW64 | |
State : Disabled | |
Feature Name : WindowsServerBackup | |
State : Disabled | |
Feature Name : WindowsServerBackupCommandlet | |
State : Disabled | |
Feature Name : MultipathIo | |
State : Disabled | |
Feature Name : DNS-Server-Core-Role | |
State : Disabled | |
Feature Name : FRS-Infrastructure | |
State : Disabled | |
Feature Name : BitLocker | |
State : Disabled | |
Feature Name : BitLocker-RemoteAdminTool | |
State : Disabled | |
Feature Name : DirectoryServices-DomainController-ServerFoundation | |
State : Disabled | |
Feature Name : DirectoryServices-ADAM-ServerCore | |
State : Disabled | |
Feature Name : ActiveDirectory-PowerShell | |
State : Disabled | |
Feature Name : IIS-WebServerRole | |
State : Disabled | |
Feature Name : IIS-WebServer | |
State : Disabled | |
Feature Name : IIS-CommonHttpFeatures | |
State : Disabled | |
Feature Name : IIS-StaticContent | |
State : Disabled | |
Feature Name : IIS-DefaultDocument | |
State : Disabled | |
Feature Name : IIS-DirectoryBrowsing | |
State : Disabled | |
Feature Name : IIS-HttpErrors | |
State : Disabled | |
Feature Name : IIS-HttpRedirect | |
State : Disabled | |
Feature Name : IIS-WebDAV | |
State : Disabled | |
Feature Name : IIS-ApplicationDevelopment | |
State : Disabled | |
Feature Name : IIS-NetFxExtensibility | |
State : Disabled | |
Feature Name : IIS-ASPNET | |
State : Disabled | |
Feature Name : IIS-ASP | |
State : Disabled | |
Feature Name : IIS-CGI | |
State : Disabled | |
Feature Name : IIS-ISAPIExtensions | |
State : Disabled | |
Feature Name : IIS-ISAPIFilter | |
State : Disabled | |
Feature Name : IIS-ServerSideIncludes | |
State : Disabled | |
Feature Name : IIS-HealthAndDiagnostics | |
State : Disabled | |
Feature Name : IIS-HttpLogging | |
State : Disabled | |
Feature Name : IIS-LoggingLibraries | |
State : Disabled | |
Feature Name : IIS-RequestMonitor | |
State : Disabled | |
Feature Name : IIS-HttpTracing | |
State : Disabled | |
Feature Name : IIS-CustomLogging | |
State : Disabled | |
Feature Name : IIS-ODBCLogging | |
State : Disabled | |
Feature Name : IIS-Security | |
State : Disabled | |
Feature Name : IIS-BasicAuthentication | |
State : Disabled | |
Feature Name : IIS-WindowsAuthentication | |
State : Disabled | |
Feature Name : IIS-DigestAuthentication | |
State : Disabled | |
Feature Name : IIS-ClientCertificateMappingAuthentication | |
State : Disabled | |
Feature Name : IIS-IISCertificateMappingAuthentication | |
State : Disabled | |
Feature Name : IIS-URLAuthorization | |
State : Disabled | |
Feature Name : IIS-RequestFiltering | |
State : Disabled | |
Feature Name : IIS-IPSecurity | |
State : Disabled | |
Feature Name : IIS-Performance | |
State : Disabled | |
Feature Name : IIS-HttpCompressionStatic | |
State : Disabled | |
Feature Name : IIS-HttpCompressionDynamic | |
State : Disabled | |
Feature Name : IIS-WebServerManagementTools | |
State : Disabled | |
Feature Name : IIS-ManagementScriptingTools | |
State : Disabled | |
Feature Name : IIS-ManagementService | |
State : Disabled | |
Feature Name : IIS-IIS6ManagementCompatibility | |
State : Disabled | |
Feature Name : IIS-Metabase | |
State : Disabled | |
Feature Name : IIS-WMICompatibility | |
State : Disabled | |
Feature Name : IIS-LegacyScripts | |
State : Disabled | |
Feature Name : IIS-FTPServer | |
State : Disabled | |
Feature Name : IIS-FTPSvc | |
State : Disabled | |
Feature Name : IIS-FTPExtensibility | |
State : Disabled | |
Feature Name : WAS-WindowsActivationService | |
State : Disabled | |
Feature Name : WAS-ProcessModel | |
State : Disabled | |
Feature Name : WAS-NetFxEnvironment | |
State : Disabled | |
Feature Name : WAS-ConfigurationAPI | |
State : Disabled | |
Feature Name : IIS-HostableWebCore | |
State : Disabled | |
Feature Name : ClientForNFS-Base | |
State : Disabled | |
Feature Name : ServerForNFS-Base | |
State : Disabled | |
Feature Name : DFSR-Infrastructure-ServerEdition | |
State : Disabled | |
Feature Name : DHCPServerCore | |
State : Disabled | |
Feature Name : SNMP-SC | |
State : Disabled | |
Feature Name : DFSN-Server | |
State : Disabled | |
Feature Name : TelnetClient | |
State : Disabled | |
Feature Name : WINS-SC | |
State : Disabled | |
Feature Name : Printing-ServerCore-Role | |
State : Disabled | |
Feature Name : Printing-LPDPrintService | |
State : Disabled | |
Feature Name : Printing-ServerCore-Role-WOW64 | |
State : Disabled | |
Feature Name : ServerCore-EA-IME | |
State : Enabled | |
Feature Name : ServerCore-EA-IME-WOW64 | |
State : Disabled | |
Feature Name : QWAVE | |
State : Disabled | |
Feature Name : NetFx2-ServerCore | |
State : Disabled | |
Feature Name : NetFx2-ServerCore-WOW64 | |
State : Disabled | |
Feature Name : NetFx3-ServerCore | |
State : Disabled | |
Feature Name : WCF-HTTP-Activation | |
State : Disabled | |
Feature Name : WCF-NonHTTP-Activation | |
State : Disabled | |
Feature Name : NetFx3-ServerCore-WOW64 | |
State : Disabled | |
Feature Name : MicrosoftWindowsPowerShell | |
State : Disabled | |
Feature Name : MicrosoftWindowsPowerShell-WOW64 | |
State : Disabled | |
Feature Name : ServerManager-PSH-Cmdlets | |
State : Disabled | |
Feature Name : BestPractices-PSH-Cmdlets | |
State : Disabled | |
Feature Name : PeerDist | |
State : Disabled | |
Feature Name : Microsoft-Hyper-V | |
State : Disabled | |
Feature Name : VmHostAgent | |
State : Disabled | |
Feature Name : CertificateServices | |
State : Disabled | |
Feature Name : SMBHashGeneration | |
State : Disabled | |
Feature Name : ServerMigration | |
State : Disabled | |
Feature Name : ServerCore-WOW64 | |
State : Enabled | |
Feature Name : FSRM-Infrastructure-Core | |
State : Disabled | |
Feature Name : CoreFileServer | |
State : Disabled | |
Feature Name : LightweightServer | |
State : Disabled | |
Feature Name : Microsoft-Windows-Web-Services-for-Management-IIS-Extension | |
State : Disabled | |
The operation completed successfully. | |
""" | |
F="Feature Name : " | |
S="State : " | |
def yield_feature_and_state(): | |
input_iter = ( l for l in input_.splitlines()) | |
for line in input_iter: | |
if line.startswith(F): | |
name = line[len(F):] | |
next_line = input_iter.next() | |
state = next_line[len(S):] | |
yield (name, state) | |
for f, s in yield_feature_and_state(): | |
print f, s | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment