In an effort to create a tiny sysprepped Windows 2012 VHD I wanted to uninstall all the roles I know I won’t be using. (And even if I do need them they are easy to put back.) Tiny VHD’s equal less disk space and much faster VM builds. First thing I wanted was a simple list of all the Windows Features installed. Easy enough, just run get-windowsfeatures from powershell and it spits out a nice list, output that to text and you’re good to go. I’ll save you the 30 seconds though and list them here.
Next I’m going to work on a script to remove these.
Get-windowsfeature |ft -auto > c:\winfeatures.txt
Display Name?????????????????????????????????????????????????????????????? Name
————?????????????????????????????????????????????????????????????? —-
[ ] Active Directory Certificate Services????????????????????????????????? AD-Certificate
[ ] Certification Authority??????????????????????????????????????????? ADCS-Cert-Authority
[ ] Certificate Enrollment Policy Web Service????????????????????????? ADCS-Enroll-Web-Pol
[ ] Certificate Enrollment Web Service???????????????????????????????? ADCS-Enroll-Web-Svc
[ ] Certification Authority Web Enrollment???????????????????????????? ADCS-Web-Enrollment
[ ] Network Device Enrollment Service????????????????????????????????? ADCS-Device-Enrollment
[ ] Online Responder?????????????????????????????????????????????????? ADCS-Online-Cert
[ ] Active Directory Domain Services?????????????????????????????????????? AD-Domain-Services
[ ] Active Directory Federation Services?????????????????????????????????? AD-Federation-Services
[ ] Federation Service???????????????????????????????????????????????? ADFS-Federation
[ ] AD FS 1.1 Web Agents?????????????????????????????????????????????? ADFS-Web-Agents
[ ] AD FS 1.1 Claims-aware Agent?????????????????????????????????? ADFS-Claims
[ ] AD FS 1.1 Windows Token-based Agent??????????????????????????? ADFS-Windows-Token
[ ] Federation Service Proxy?????????????????????????????????????????? ADFS-Proxy
[ ] Active Directory Lightweight Directory Services??????????????????????? ADLDS
[ ] Active Directory Rights Management Services??????????????????????????? ADRMS
[ ] Active Directory Rights Management Server????????????????????????? ADRMS-Server
[ ] Identity Federation Support??????????????????????????????????????? ADRMS-Identity
[ ] Application Server???????????????????????????????????????????????????? Application-Server
[ ] .NET Framework 4.5???????????????????????????????????????????????? AS-NET-Framework
[ ] COM+ Network Access??????????????????????????????????????????????? AS-Ent-Services
[ ] Distributed Transactions?????????????????????????????????????????? AS-Dist-Transaction
[ ] WS-Atomic Transactions???????????????????????????????????????? AS-WS-Atomic
[ ] Incoming Network Transactions????????????????????????????????? AS-Incoming-Trans
[ ] Outgoing Network Transactions????????????????????????????????? AS-Outgoing-Trans
[ ] TCP Port Sharing?????????????????????????????????????????????????? AS-TCP-Port-Sharing
[ ] Web Server (IIS) Support?????????????????????????????????????????? AS-Web-Support
[ ] Windows Process Activation Service Support???????????????????????? AS-WAS-Support
[ ] HTTP Activation??????????????????????????????????????????????? AS-HTTP-Activation
[ ] Message Queuing Activation???????????????????????????????????? AS-MSMQ-Activation
[ ] Named Pipes Activation???????????????????????????????????????? AS-Named-Pipes
[ ] TCP Activation???????????????????????????????????????????????? AS-TCP-Activation
[ ] DHCP Server??????????????????????????????????????????????????????????? DHCP
[ ] DNS Server???????????????????????????????????????????????????????????? DNS
[ ] Fax Server???????????????????????????????????????????????????????????? Fax
[X] File And Storage Services????????????????????????????????????????????? FileAndStorage-Services
[ ] File and iSCSI Services??????????????????????????????????????????? File-Services
[ ] File Server??????????????????????????????????????????????????? FS-FileServer
[ ] BranchCache for Network Files????????????????????????????????? FS-BranchCache
[ ] Data Deduplication???????????????????????????????????????????? FS-Data-Deduplication
[ ] DFS Namespaces???????????????????????????????????????????????? FS-DFS-Namespace
[ ] DFS Replication??????????????????????????????????????????????? FS-DFS-Replication
[ ] File Server Resource Manager?????????????????????????????????? FS-Resource-Manager
[ ] File Server VSS Agent Service????????????????????????????????? FS-VSS-Agent
[ ] iSCSI Target Server??????????????????????????????????????????? FS-iSCSITarget-Server
[ ] iSCSI Target Storage Provider (VDS and VSS hardware providers) iSCSITarget-VSS-VDS
[ ] Server for NFS???????????????????????????????????????????????? FS-NFS-Service
[X] Storage Services?????????????????????????????????????????????????? Storage-Services
[ ] Hyper-V??????????????????????????????????????????????????????????????? Hyper-V
[ ] Network Policy and Access Services???????????????????????????????????? NPAS
[ ] Network Policy Server????????????????????????????????????????????? NPAS-Policy-Server
[ ] Health Registration Authority????????????????????????????????????? NPAS-Health
[ ] Host Credential Authorization Protocol???????????????????????????? NPAS-Host-Cred
[ ] Print and Document Services??????????????????????????????????????????? Print-Services
[ ] Print Server?????????????????????????????????????????????????????? Print-Server
[ ] Distributed Scan Server??????????????????????????????????????????? Print-Scan-Server
[ ] Internet Printing????????????????????????????????????????????????? Print-Internet
[ ] LPD Service??????????????????????????????????????????????????????? Print-LPD-Service
[ ] Remote Access????????????????????????????????????????????????????????? RemoteAccess
[ ] DirectAccess and VPN (RAS)???????????????????????????????????????? DirectAccess-VPN
[ ] Routing??????????????????????????????????????????????????????????? Routing
[ ] Remote Desktop Services??????????????????????????????????????????????? Remote-Desktop-Services
[ ] Remote Desktop Connection Broker?????????????????????????????????? RDS-Connection-Broker
[ ] Remote Desktop Gateway???????????????????????????????????????????? RDS-Gateway
[ ] Remote Desktop Licensing?????????????????????????????????????????? RDS-Licensing
[ ] Remote Desktop Session Host??????????????????????????????????????? RDS-RD-Server
[ ] Remote Desktop Virtualization Host???????????????????????????????? RDS-Virtualization
[ ] Remote Desktop Web Access????????????????????????????????????????? RDS-Web-Access
[ ] Volume Activation Services???????????????????????????????????????????? VolumeActivation
[ ] Web Server (IIS)?????????????????????????????????????????????????????? Web-Server
[ ] Web Server???????????????????????????????????????????????????????? Web-WebServer
[ ] Common HTTP Features?????????????????????????????????????????? Web-Common-Http
[ ] Default Document?????????????????????????????????????????? Web-Default-Doc
[ ] Directory Browsing???????????????????????????????????????? Web-Dir-Browsing
[ ] HTTP Errors??????????????????????????????????????????????? Web-Http-Errors
[ ] Static Content???????????????????????????????????????????? Web-Static-Content
[ ] HTTP Redirection?????????????????????????????????????????? Web-Http-Redirect
[ ] WebDAV Publishing????????????????????????????????????????? Web-DAV-Publishing
[ ] Health and Diagnostics???????????????????????????????????????? Web-Health
[ ] HTTP Logging?????????????????????????????????????????????? Web-Http-Logging
[ ] Custom Logging???????????????????????????????????????????? Web-Custom-Logging
[ ] Logging Tools????????????????????????????????????????????? Web-Log-Libraries
[ ] ODBC Logging?????????????????????????????????????????????? Web-ODBC-Logging
[ ] Request Monitor??????????????????????????????????????????? Web-Request-Monitor
[ ] Tracing??????????????????????????????????????????????????? Web-Http-Tracing
[ ] Performance??????????????????????????????????????????????????? Web-Performance
[ ] Static Content Compression???????????????????????????????? Web-Stat-Compression
[ ] Dynamic Content Compression??????????????????????????????? Web-Dyn-Compression
[ ] Security?????????????????????????????????????????????????????? Web-Security
[ ] Request Filtering????????????????????????????????????????? Web-Filtering
[ ] Basic Authentication?????????????????????????????????????? Web-Basic-Auth
[ ] Centralized SSL Certificate Support??????????????????????? Web-CertProvider
[ ] Client Certificate Mapping Authentication????????????????? Web-Client-Auth
[ ] Digest Authentication????????????????????????????????????? Web-Digest-Auth
[ ] IIS Client Certificate Mapping Authentication????????????? Web-Cert-Auth
[ ] IP and Domain Restrictions???????????????????????????????? Web-IP-Security
[ ] URL Authorization????????????????????????????????????????? Web-Url-Auth
[ ] Windows Authentication???????????????????????????????????? Web-Windows-Auth
[ ] Application Development??????????????????????????????????????? Web-App-Dev
[ ] .NET Extensibility 3.5???????????????????????????????????? Web-Net-Ext
[ ] .NET Extensibility 4.5???????????????????????????????????? Web-Net-Ext45
[ ] Application Initialization???????????????????????????????? Web-AppInit
[ ] ASP??????????????????????????????????????????????????????? Web-ASP
[ ] ASP.NET 3.5??????????????????????????????????????????????? Web-Asp-Net
[ ] ASP.NET 4.5??????????????????????????????????????????????? Web-Asp-Net45
[ ] CGI??????????????????????????????????????????????????????? Web-CGI
[ ] ISAPI Extensions?????????????????????????????????????????? Web-ISAPI-Ext
[ ] ISAPI Filters????????????????????????????????????????????? Web-ISAPI-Filter
[ ] Server Side Includes?????????????????????????????????????? Web-Includes
[ ] WebSocket Protocol???????????????????????????????????????? Web-WebSockets
[ ] FTP Server???????????????????????????????????????????????????????? Web-Ftp-Server
[ ] FTP Service??????????????????????????????????????????????????? Web-Ftp-Service
[ ] FTP Extensibility????????????????????????????????????????????? Web-Ftp-Ext
[ ] IIS Hostable Web Core????????????????????????????????????????????? Web-WHC
[ ] Management Tools?????????????????????????????????????????????????? Web-Mgmt-Tools
[ ] IIS Management Console???????????????????????????????????????? Web-Mgmt-Console
[ ] IIS 6 Management Compatibility???????????????????????????????? Web-Mgmt-Compat
[ ] IIS 6 Metabase Compatibility?????????????????????????????? Web-Metabase
[ ] IIS 6 Management Console?????????????????????????????????? Web-Lgcy-Mgmt-Console
[ ] IIS 6 Scripting Tools????????????????????????????????????? Web-Lgcy-Scripting
[ ] IIS 6 WMI Compatibility??????????????????????????????????? Web-WMI
[ ] IIS Management Scripts and Tools?????????????????????????????? Web-Scripting-Tools
[ ] Management Service???????????????????????????????????????????? Web-Mgmt-Service
[ ] Windows Deployment Services??????????????????????????????????????????? WDS
[ ] Deployment Server????????????????????????????????????????????????? WDS-Deployment
[ ] Transport Server?????????????????????????????????????????????????? WDS-Transport
[ ] Windows Server Update Services???????????????????????????????????????? UpdateServices
[ ] WID Database?????????????????????????????????????????????????????? UpdateServices-WidDB
[ ] WSUS Services????????????????????????????????????????????????????? UpdateServices-Services
[ ] Database?????????????????????????????????????????????????????????? UpdateServices-DB
[ ] .NET Framework 3.5 Features??????????????????????????????????????????? NET-Framework-Features
[ ] .NET Framework 3.5 (includes .NET 2.0 and 3.0)???????????????????? NET-Framework-Core
[ ] HTTP Activation??????????????????????????????????????????????????? NET-HTTP-Activation
[ ] Non-HTTP Activation??????????????????????????????????????????????? NET-Non-HTTP-Activ
[X] .NET Framework 4.5 Features??????????????????????????????????????????? NET-Framework-45-Features
[X] .NET Framework 4.5???????????????????????????????????????????????? NET-Framework-45-Core
[ ] ASP.NET 4.5??????????????????????????????????????????????????????? NET-Framework-45-ASPNET
[X] WCF Services?????????????????????????????????????????????????????? NET-WCF-Services45
[ ] HTTP Activation??????????????????????????????????????????????? NET-WCF-HTTP-Activation45
[ ] Message Queuing (MSMQ) Activation????????????????????????????? NET-WCF-MSMQ-Activation45
[ ] Named Pipe Activation????????????????????????????????????????? NET-WCF-Pipe-Activation45
[ ] TCP Activation???????????????????????????????????????????????? NET-WCF-TCP-Activation45
[X] TCP Port Sharing?????????????????????????????????????????????? NET-WCF-TCP-PortSharing45
[ ] Background Intelligent Transfer Service (BITS)???????????????????????? BITS
[ ] IIS Server Extension?????????????????????????????????????????????? BITS-IIS-Ext
[ ] Compact Server???????????????????????????????????????????????????? BITS-Compact-Server
[ ] BitLocker Drive Encryption???????????????????????????????????????????? BitLocker
[ ] BitLocker Network Unlock?????????????????????????????????????????????? BitLocker-NetworkUnlock
[ ] BranchCache??????????????????????????????????????????????????????????? BranchCache
[ ] Client for NFS???????????????????????????????????????????????????????? NFS-Client
[ ] Data Center Bridging?????????????????????????????????????????????????? Data-Center-Bridging
[ ] Enhanced Storage?????????????????????????????????????????????????????? EnhancedStorage
[ ] Failover Clustering??????????????????????????????????????????????????? Failover-Clustering
[ ] Group Policy Management??????????????????????????????????????????????? GPMC
[ ] Ink and Handwriting Services?????????????????????????????????????????? InkAndHandwritingServices
[ ] Internet Printing Client?????????????????????????????????????????????? Internet-Print-Client
[ ] IP Address Management (IPAM) Server??????????????????????????????????? IPAM
[ ] iSNS Server service??????????????????????????????????????????????????? ISNS
[ ] LPR Port Monitor?????????????????????????????????????????????????????? LPR-Port-Monitor
[ ] Management OData IIS Extension???????????????????????????????????????? ManagementOdata
[ ] Media Foundation?????????????????????????????????????????????????????? Server-Media-Foundation
[ ] Message Queuing??????????????????????????????????????????????????????? MSMQ
[ ] Message Queuing Services?????????????????????????????????????????? MSMQ-Services
[ ] Message Queuing Server???????????????????????????????????????? MSMQ-Server
[ ] Directory Service Integration????????????????????????????????? MSMQ-Directory
[ ] HTTP Support?????????????????????????????????????????????????? MSMQ-HTTP-Support
[ ] Message Queuing Triggers?????????????????????????????????????? MSMQ-Triggers
[ ] Multicasting Support?????????????????????????????????????????? MSMQ-Multicasting
[ ] Routing Service??????????????????????????????????????????????? MSMQ-Routing
[ ] Message Queuing DCOM Proxy???????????????????????????????????????? MSMQ-DCOM
[ ] Multipath I/O????????????????????????????????????????????????????????? Multipath-IO
[ ] Network Load Balancing???????????????????????????????????????????????? NLB
[ ] Peer Name Resolution Protocol????????????????????????????????????????? PNRP
[ ] Quality Windows Audio Video Experience???????????????????????????????? qWave
[ ] RAS Connection Manager Administration Kit (CMAK)?????????????????????? CMAK
[ ] Remote Assistance????????????????????????????????????????????????????? Remote-Assistance
[ ] Remote Differential Compression??????????????????????????????????????? RDC
[ ] Remote Server Administration Tools???????????????????????????????????? RSAT
[ ] Feature Administration Tools?????????????????????????????????????? RSAT-Feature-Tools
[ ] SMTP Server Tools????????????????????????????????????????????? RSAT-SMTP
[ ] BitLocker Drive Encryption Administration Utilities??????????? RSAT-Feature-Tools-BitLocker
[ ] BitLocker Drive Encryption Tools?????????????????????????? RSAT-Feature-Tools-BitLocker-RemoteAdminTool
[ ] BitLocker Recovery Password Viewer???????????????????????? RSAT-Feature-Tools-BitLocker-BdeAducExt
[ ] BITS Server Extensions Tools?????????????????????????????????? RSAT-Bits-Server
[ ] Failover Clustering Tools????????????????????????????????????? RSAT-Clustering
[ ] Failover Cluster Management Tools????????????????????????? RSAT-Clustering-Mgmt
[ ] Failover Cluster Module for Windows PowerShell???????????? RSAT-Clustering-PowerShell
[ ] Failover Cluster Automation Server???????????????????????? RSAT-Clustering-AutomationServer
[ ] Failover Cluster Command Interface???????????????????????? RSAT-Clustering-CmdInterface
[ ] IP Address Management (IPAM) Client??????????????????????????? IPAM-Client-Feature
[ ] Network Load Balancing Tools?????????????????????????????????? RSAT-NLB
[ ] SNMP Tools???????????????????????????????????????????????????? RSAT-SNMP
[ ] Windows System Resource Manager RSAT [Deprecated]????????????? WSRM-RSAT
[ ] WINS Server Tools????????????????????????????????????????????? RSAT-WINS
[ ] Role Administration Tools????????????????????????????????????????? RSAT-Role-Tools
[ ] AD DS and AD LDS Tools???????????????????????????????????????? RSAT-AD-Tools
[ ] Active Directory module for Windows PowerShell???????????? RSAT-AD-PowerShell
[ ] AD DS Tools??????????????????????????????????????????????? RSAT-ADDS
[ ] Active Directory Administrative Center???????????????? RSAT-AD-AdminCenter
[ ] AD DS Snap-Ins and Command-Line Tools????????????????? RSAT-ADDS-Tools
[ ] Server for NIS Tools [DEPRECATED]????????????????????? RSAT-NIS
[ ] AD LDS Snap-Ins and Command-Line Tools???????????????????? RSAT-ADLDS
[ ] Hyper-V Management Tools?????????????????????????????????????? RSAT-Hyper-V-Tools
[ ] Hyper-V GUI Management Tools?????????????????????????????? Hyper-V-Tools
[ ] Hyper-V Module for Windows PowerShell????????????????????? Hyper-V-PowerShell
[ ] Remote Desktop Services Tools????????????????????????????????? RSAT-RDS-Tools
[ ] Remote Desktop Gateway Tools?????????????????????????????? RSAT-RDS-Gateway
[ ] Remote Desktop Licensing Diagnoser Tools?????????????????? RSAT-RDS-Licensing-Diagnosis-UI
[ ] Remote Desktop Licensing Tools???????????????????????????? RDS-Licensing-UI
[ ] Windows Server Update Services Tools?????????????????????????? UpdateServices-RSAT
[ ] API and PowerShell cmdlets???????????????????????????????? UpdateServices-API
[ ] User Interface Management Console????????????????????????? UpdateServices-UI
[ ] Active Directory Certificate Services Tools??????????????????? RSAT-ADCS
[ ] Certification Authority Management Tools?????????????????? RSAT-ADCS-Mgmt
[ ] Online Responder Tools???????????????????????????????????? RSAT-Online-Responder
[ ] Active Directory Rights Management Services Tools????????????? RSAT-ADRMS
[ ] DHCP Server Tools????????????????????????????????????????????? RSAT-DHCP
[ ] DNS Server Tools?????????????????????????????????????????????? RSAT-DNS-Server
[ ] Fax Server Tools?????????????????????????????????????????????? RSAT-Fax
[ ] File Services Tools??????????????????????????????????????????? RSAT-File-Services
[ ] DFS Management Tools?????????????????????????????????????? RSAT-DFS-Mgmt-Con
[ ] File Server Resource Manager Tools???????????????????????? RSAT-FSRM-Mgmt
[ ] Services for Network File System Management Tools????????? RSAT-NFS-Admin
[ ] Share and Storage Management Tool????????????????????????? RSAT-CoreFile-Mgmt
[ ] Network Policy and Access Services Tools?????????????????????? RSAT-NPAS
[ ] Print and Document Services Tools????????????????????????????? RSAT-Print-Services
[ ] Remote Access Management Tools???????????????????????????????? RSAT-RemoteAccess
[ ] Remote Access GUI and Command-Line Tools?????????????????? RSAT-RemoteAccess-Mgmt
[ ] Remote Access module for Windows PowerShell??????????????? RSAT-RemoteAccess-PowerShell
[ ] Volume Activation Tools??????????????????????????????????????? RSAT-VA-Tools
[ ] Windows Deployment Services Tools????????????????????????????? WDS-AdminPack
[ ] RPC over HTTP Proxy??????????????????????????????????????????????????? RPC-over-HTTP-Proxy
[ ] Simple TCP/IP Services???????????????????????????????????????????????? Simple-TCPIP
[ ] SMTP Server??????????????????????????????????????????????????????????? SMTP-Server
[ ] SNMP Service?????????????????????????????????????????????????????????? SNMP-Service
[ ] SNMP WMI Provider????????????????????????????????????????????????? SNMP-WMI-Provider
[ ] Subsystem for UNIX-based Applications [Deprecated]???????????????????? Subsystem-UNIX-Apps
[ ] Telnet Client????????????????????????????????????????????????????????? Telnet-Client
[ ] Telnet Server????????????????????????????????????????????????????????? Telnet-Server
[ ] TFTP Client??????????????????????????????????????????????????????????? TFTP-Client
[X] User Interfaces and Infrastructure???????????????????????????????????? User-Interfaces-Infra
[X] Graphical Management Tools and Infrastructure????????????????????? Server-Gui-Mgmt-Infra
[ ] Desktop Experience???????????????????????????????????????????????? Desktop-Experience
[X] Server Graphical Shell???????????????????????????????????????????? Server-Gui-Shell
[ ] Windows Biometric Framework??????????????????????????????????????????? Biometric-Framework
[ ] Windows Feedback Forwarder???????????????????????????????????????????? WFF
[ ] Windows Identity Foundation 3.5??????????????????????????????????????? Windows-Identity-Foundation
[ ] Windows Internal Database????????????????????????????????????????????? Windows-Internal-Database
[X] Windows PowerShell???????????????????????????????????????????????????? PowerShellRoot
[X] Windows PowerShell 3.0???????????????????????????????????????????? PowerShell
[ ] Windows PowerShell 2.0 Engine????????????????????????????????????? PowerShell-V2
[X] Windows PowerShell ISE???????????????????????????????????????????? PowerShell-ISE
[ ] Windows PowerShell Web Access????????????????????????????????????? WindowsPowerShellWebAccess
[ ] Windows Process Activation Service???????????????????????????????????? WAS
[ ] Process Model????????????????????????????????????????????????????? WAS-Process-Model
[ ] .NET Environment 3.5?????????????????????????????????????????????? WAS-NET-Environment
[ ] Configuration APIs???????????????????????????????????????????????? WAS-Config-APIs
[ ] Windows Search Service???????????????????????????????????????????????? Search-Service
[ ] Windows Server Backup????????????????????????????????????????????????? Windows-Server-Backup
[ ] Windows Server Migration Tools???????????????????????????????????????? Migration
[ ] Windows Standards-Based Storage Management???????????????????????????? WindowsStorageManagementService
[ ] Windows System Resource Manager [Deprecated]?????????????????????????? WSRM
[ ] Windows TIFF IFilter?????????????????????????????????????????????????? Windows-TIFF-IFilter
[ ] WinRM IIS Extension??????????????????????????????????????????????????? WinRM-IIS-Ext
[ ] WINS Server??????????????????????????????????????????????????????????? WINS
[ ] Wireless LAN Service?????????????????????????????????????????????????? Wireless-Networking
[X] WoW64 Support????????????????????????????????????????????????????????? WoW64-Support
[ ] XPS Viewer???????????????????????????????????????????????????????????? XPS-Viewer
2 Trackbacks