Hi,
I have typed out all the Windows 2012 Features in a DSC Config file format and would like to share. This has every 2012 feature/sub feature and and would allow someone to allow/prevent all of them. It is indented so you can clearly identify feature from sub-feature. It took me a bit to type this all out and wanted to share. All one would have to do is go through the list and specify present/absent as they require and update the comment.
Configuration TestConfig {
Node $Allnodes.NodeGUID {
#NoInstall Role 'Active Directory Certificate Services'
WindowsFeature AD-Certificate
{
Ensure = "Absent"
Name = "AD-Certificate"
}
#NoInstall RoleService 'Certification Authority'
WindowsFeature ADCS-Cert-Authority
{
Ensure = "Absent"
Name = "ADCS-Cert-Authority"
}
#NoInstall RoleService 'Certificate Enrollment Policy Web Service'
WindowsFeature ADCS-Enroll-Web-Pol
{
Ensure = "Absent"
Name = "ADCS-Enroll-Web-Pol"
}
#NoInstall RoleService 'Certificate Enrollment Web Service'
WindowsFeature ADCS-Enroll-Web-Svc
{
Ensure = "Absent"
Name = "ADCS-Enroll-Web-Svc"
}
#NoInstall RoleService 'Certification Authority Web Enrollment'
WindowsFeature ADCS-Web-Enrollment
{
Ensure = "Absent"
Name = "ADCS-Web-Enrollment"
}
#NoInstall RoleService 'Network Device Enrollment Service'
WindowsFeature ADCS-Device-Enrollment
{
Ensure = "Absent"
Name = "ADCS-Device-Enrollment"
}
#NoInstall RoleService 'Online Responder'
WindowsFeature ADCS-Online-Cert
{
Ensure = "Absent"
Name = "ADCS-Online-Cert"
}
#NoInstall Role 'Active Directory Domain Services'
WindowsFeature AD-Domain-Services
{
Ensure = "Absent"
Name = "AD-Domain-Services"
}
#NoInstall Role 'Active Directory Federation Services'
WindowsFeature ADFS-Federation
{
Ensure = "Absent"
Name = "ADFS-Federation"
}
#NoInstall Role 'Active Directory Lightweight Directory Services'
WindowsFeature ADLDS
{
Ensure = "Absent"
Name = "ADLDS"
}
#NoInstall Role 'Active Directory Rights Management Services'
WindowsFeature ADRMS
{
Ensure = "Absent"
Name = "ADRMS"
}
#NoInstall RoleService 'Active Directory Rights Management Server'
WindowsFeature ADRMS-Server
{
Ensure = "Absent"
Name = "ADRMS-Server"
}
#NoInstall RoleService 'Identity Federation Support'
WindowsFeature ADRMS-Identity
{
Ensure = "Absent"
Name = "ADRMS-Identity"
}
#NoInstall Role 'Application Server'
WindowsFeature Application-Server
{
Ensure = "Absent"
Name = "Application-Server"
}
#NoInstall RoleService '.NET Framework 4.5'
WindowsFeature AS-NET-Framework
{
Ensure = "Absent"
Name = "AS-NET-Framework"
}
#NoInstall RoleService 'COM+ Network Access'
WindowsFeature AS-Ent-Services
{
Ensure = "Absent"
Name = "AS-Ent-Services"
}
#NoInstall RoleService 'Distributed Transactions'
WindowsFeature AS-Dist-Transaction
{
Ensure = "Absent"
Name = "AS-Dist-Transaction"
}
#NoInstall RoleService 'WS-Atomic Transactions'
WindowsFeature AS-WS-Atomic
{
Ensure = "Absent"
Name = "AS-WS-Atomic"
}
#NoInstall RoleService 'Incoming Network Transactions'
WindowsFeature AS-Incoming-Trans
{
Ensure = "Absent"
Name = "AS-Incoming-Trans"
}
#NoInstall RoleService 'Outgoing Network Transactions'
WindowsFeature AS-Outgoing-Trans
{
Ensure = "Absent"
Name = "AS-Outgoing-Trans"
}
#NoInstall RoleService 'TCP Port Sharing'
WindowsFeature AS-TCP-Port-Sharing
{
Ensure = "Absent"
Name = "AS-TCP-Port-Sharing"
}
#NoInstall RoleService 'Web Server (IIS) Support'
WindowsFeature AS-Web-Support
{
Ensure = "Absent"
Name = "AS-Web-Support"
}
#NoInstall RoleService 'Windows Process Activation Service Support'
WindowsFeature AS-WAS-Support
{
Ensure = "Absent"
Name = "AS-WAS-Support"
}
#NoInstall RoleService 'HTTP Activation'
WindowsFeature AS-HTTP-Activation
{
Ensure = "Absent"
Name = "AS-HTTP-Activation"
}
#NoInstall RoleService 'Message Queuing Activation'
WindowsFeature AS-MSMQ-Activation
{
Ensure = "Absent"
Name = "AS-MSMQ-Activation"
}
#NoInstall RoleService 'Named Pipes Activation'
WindowsFeature AS-Named-Pipes
{
Ensure = "Absent"
Name = "AS-Named-Pipes"
}
#NoInstall RoleService 'TCP Activation'
WindowsFeature AS-TCP-Activation
{
Ensure = "Absent"
Name = "AS-TCP-Activation"
}
#Install Role 'DHCP Server'
WindowsFeature DHCP
{
Ensure = "Present"
Name = "DHCP"
}
#Install Role 'DNS Server'
WindowsFeature DNS
{
Ensure = "Present"
Name = "DNS"
}
#NoInstall Role 'Fax Server'
WindowsFeature Fax
{
Ensure = "Absent"
Name = "Fax"
}
#Install Role 'File and Storage Services'
WindowsFeature FileAndStorage-Services
{
Ensure = "Present"
Name = "FileAndStorage-Services"
}
#Install RoleService 'File and iSCSI Services'
WindowsFeature File-Services
{
Ensure = "Present"
Name = "File-Services"
}
#Install RoleService 'File Server'
WindowsFeature FS-FileServer
{
Ensure = "Present"
Name = "FS-FileServer"
}
#NoInstall RoleService 'BranchCache for Network Files'
WindowsFeature FS-BranchCache
{
Ensure = "Absent"
Name = "FS-BranchCache"
}
#Install RoleService 'Data Deduplication'
WindowsFeature FS-Data-Deduplication
{
Ensure = "Present"
Name = "FS-Data-Deduplication"
}
#NoInstall RoleService 'DFS Namespaces'
WindowsFeature FS-DFS-Namespace
{
Ensure = "Absent"
Name = "FS-DFS-Namespace"
}
#NoInstall RoleService 'DFS Replication'
WindowsFeature FS-DFS-Replication
{
Ensure = "Absent"
Name = "FS-DFS-Replication"
}
#Install RoleService 'File Server Resource Manager'
WindowsFeature FS-Resource-Manager
{
Ensure = "Present"
Name = "FS-Resource-Manager"
}
#NoInstall RoleService 'File Server VSS Agent Service'
WindowsFeature FS-VSS-Agent
{
Ensure = "Absent"
Name = "FS-VSS-Agent"
}
#NoInstall RoleService 'iSCSI Target Server'
WindowsFeature FS-iSCSITarget-Server
{
Ensure = "Absent"
Name = "FS-iSCSITarget-Server"
}
#NoInstall RoleService 'iSCSI Target Storage Provider (VDS and VSS hardware providers)'
WindowsFeature iSCSITarget-VSS-VDS
{
Ensure = "Absent"
Name = "iSCSITarget-VSS-VDS"
}
#NoInstall RoleService 'Server for NFS'
WindowsFeature FS-NFS-Service
{
Ensure = "Absent"
Name = "FS-NFS-Service"
}
#NoInstall RoleService 'Work Folders'
WindowsFeature FS-SyncShareService
{
Ensure = "Absent"
Name = "FS-SyncShareService"
}
#Install RoleService 'Storage Services'
WindowsFeature Storage-Services
{
Ensure = "Present"
Name = "Storage-Services"
}
#NoInstall Role 'Hyper-V'
WindowsFeature Hyper-V
{
Ensure = "Absent"
Name = "Hyper-V"
}
#NoInstall Role 'Network Policy and Access Services'
WindowsFeature NPAS
{
Ensure = "Absent"
Name = "NPAS"
}
#NoInstall RoleService 'Network Policy Server'
WindowsFeature NPAS-Policy-Server
{
Ensure = "Absent"
Name = "NPAS-Policy-Server"
}
#NoInstall RoleService 'Health Registration Authority'
WindowsFeature NPAS-Health
{
Ensure = "Absent"
Name = "NPAS-Health"
}
#NoInstall RoleService 'Host Credential Authorization Protocol'
WindowsFeature NPAS-Host-Cred
{
Ensure = "Absent"
Name = "NPAS-Host-Cred"
}
#Install Role 'Print and Document Services'
WindowsFeature Print-Services
{
Ensure = "Present"
Name = "Print-Services"
}
#Install RoleService 'Print Server'
WindowsFeature Print-Server
{
Ensure = "Present"
Name = "Print-Server"
}
#NoInstall RoleService 'Distributed Scan Server'
WindowsFeature Print-Scan-Server
{
Ensure = "Absent"
Name = "Print-Scan-Server"
}
#NoInstall RoleService 'Internet Printing'
WindowsFeature Print-Internet
{
Ensure = "Absent"
Name = "Print-Internet"
}
#Install RoleService 'LPD Service'
WindowsFeature Print-LPD-Service
{
Ensure = "Present"
Name = "Print-LPD-Service"
}
#NoInstall Role 'Remote Access'
WindowsFeature RemoteAccess
{
Ensure = "Absent"
Name = "RemoteAccess"
}
#NoInstall RoleService 'DirectAccess and VPN (RAS)'
WindowsFeature DirectAccess-VPN
{
Ensure = "Absent"
Name = "DirectAccess-VPN"
}
#NoInstall RoleService 'Routing'
WindowsFeature Routing
{
Ensure = "Absent"
Name = "Routing"
}
#NoInstall RoleService 'Web Application Proxy'
WindowsFeature Web-Application-Proxy
{
Ensure = "Absent"
Name = "Web-Application-Proxy"
}
#NoInstall Role 'Remote Desktop Services'
WindowsFeature Remote-Desktop-Services
{
Ensure = "Absent"
Name = "Remote-Desktop-Services"
}
#NoInstall RoleService 'Remote Desktop Connection Broker'
WindowsFeature RDS-Connection-Broker
{
Ensure = "Absent"
Name = "RDS-Connection-Broker"
}
#NoInstall RoleService 'Remote Desktop Gateway'
WindowsFeature RDS-Gateway
{
Ensure = "Absent"
Name = "RDS-Gateway"
}
#NoInstall RoleService 'Remote Desktop Licensing'
WindowsFeature RDS-Licensing
{
Ensure = "Absent"
Name = "RDS-Licensing"
}
#NoInstall RoleService 'Remote Desktop Session Host'
WindowsFeature RDS-RD-Server
{
Ensure = "Absent"
Name = "RDS-RD-Server"
}
#NoInstall RoleService 'Remote Desktop Virtualization Host'
WindowsFeature RDS-Virtualization
{
Ensure = "Absent"
Name = "RDS-Virtualization"
}
#NoInstall RoleService 'Remote Desktop Web Access'
WindowsFeature RDS-Web-Access
{
Ensure = "Absent"
Name = "RDS-Web-Access"
}
#NoInstall Role 'Volume Activation Services'
WindowsFeature VolumeActivation
{
Ensure = "Absent"
Name = "VolumeActivation"
}
#Install Role 'Web Server (IIS)'
WindowsFeature Web-Server
{
Ensure = "Present"
Name = "Web-Server"
}
#Install RoleService 'Web Server'
WindowsFeature Web-WebServer
{
Ensure = "Present"
Name = "Web-WebServer"
}
#NoInstall RoleService 'Common HTTP Features'
WindowsFeature Web-Common-Http
{
Ensure = "Absent"
Name = "Web-Common-Http"
}
#NoInstall RoleService 'Default Document'
WindowsFeature Web-Default-Doc
{
Ensure = "Absent"
Name = "Web-Default-Doc"
}
#NoInstall RoleService 'Directory Browsing'
WindowsFeature Web-Dir-Browsing
{
Ensure = "Absent"
Name = "Web-Dir-Browsing"
}
#NoInstall RoleService 'HTTP Errors'
WindowsFeature Web-Http-Errors
{
Ensure = "Absent"
Name = "Web-Http-Errors"
}
#NoInstall RoleService 'Static Content'
WindowsFeature Web-Static-Content
{
Ensure = "Absent"
Name = "Web-Static-Content"
}
#NoInstall RoleService 'HTTP Redirection'
WindowsFeature Web-Http-Redirect
{
Ensure = "Absent"
Name = "Web-Http-Redirect"
}
#NoInstall RoleService 'WebDAV Publishing'
WindowsFeature Web-DAV-Publishing
{
Ensure = "Absent"
Name = "Web-DAV-Publishing"
}
#Install RoleService 'Health and Diagnostics'
WindowsFeature Web-Health
{
Ensure = "Present"
Name = "Web-Health"
}
#NoInstall RoleService 'HTTP Logging'
WindowsFeature Web-Http-Logging
{
Ensure = "Absent"
Name = "Web-Http-Logging"
}
#NoInstall RoleService 'Custom Logging'
WindowsFeature Web-Custom-Logging
{
Ensure = "Absent"
Name = "Web-Custom-Logging"
}
#Install RoleService 'Logging Tools'
WindowsFeature Web-Log-Libraries
{
Ensure = "Present"
Name = "Web-Log-Libraries"
}
#NoInstall RoleService 'ODBC Logging'
WindowsFeature Web-ODBC-Logging
{
Ensure = "Absent"
Name = "Web-ODBC-Logging"
}
#NoInstall RoleService 'Request Monitor'
WindowsFeature Web-Request-Monitor
{
Ensure = "Absent"
Name = "Web-Request-Monitor"
}
#NoInstall RoleService 'Tracing'
WindowsFeature Web-Http-Tracing
{
Ensure = "Absent"
Name = "Web-Http-Tracing"
}
#NoInstall RoleService 'Performance'
WindowsFeature Web-Performance
{
Ensure = "Absent"
Name = "Web-Performance"
}
#NoInstall RoleService 'Static Content Compression'
WindowsFeature Web-Stat-Compression
{
Ensure = "Absent"
Name = "Web-Stat-Compression"
}
#NoInstall RoleService 'Dynamic Content Compression'
WindowsFeature Web-Dyn-Compression
{
Ensure = "Absent"
Name = "Web-Dyn-Compression"
}
#Install RoleService 'Security'
WindowsFeature Web-Security
{
Ensure = "Present"
Name = "Web-Security"
}
#NoInstall RoleService 'Request Filtering'
WindowsFeature Web-Filtering
{
Ensure = "Absent"
Name = "Web-Filtering"
}
#Install RoleService 'Basic Authentication'
WindowsFeature Web-Basic-Auth
{
Ensure = "Present"
Name = "Web-Basic-Auth"
}
#NoInstall RoleService 'Centralized SSL Certificate Support'
WindowsFeature Web-CertProvider
{
Ensure = "Absent"
Name = "Web-CertProvider"
}
#NoInstall RoleService 'Client Certificate Mapping Authentication'
WindowsFeature Web-Client-Auth
{
Ensure = "Absent"
Name = "Web-Client-Auth"
}
#NoInstall RoleService 'Digest Authentication'
WindowsFeature Web-Digest-Auth
{
Ensure = "Absent"
Name = "Web-Digest-Auth"
}
#NoInstall RoleService 'IIS Client Certificate Mapping Authentication'
WindowsFeature Web-Cert-Auth
{
Ensure = "Absent"
Name = "Web-Cert-Auth"
}
#NoInstall RoleService 'IP and Domain Restrictions'
WindowsFeature Web-IP-Security
{
Ensure = "Absent"
Name = "Web-IP-Security"
}
#NoInstall RoleService 'URL Authorization'
WindowsFeature Web-Url-Auth
{
Ensure = "Absent"
Name = "Web-Url-Auth"
}
#Install RoleService 'Windows Authentication'
WindowsFeature Web-Windows-Auth
{
Ensure = "Present"
Name = "Web-Windows-Auth"
}
#Install RoleService 'Application Development'
WindowsFeature Web-App-Dev
{
Ensure = "Present"
Name = "Web-App-Dev"
}
#NoInstall RoleService '.NET Extensibility 3.5'
WindowsFeature Web-Net-Ext
{
Ensure = "Absent"
Name = "Web-Net-Ext"
}
#NoInstall RoleService '.NET Extensibility 4.5'
WindowsFeature Web-Net-Ext45
{
Ensure = "Absent"
Name = "Web-Net-Ext45"
}
#NoInstall RoleService 'Application Initialization'
WindowsFeature Web-AppInit
{
Ensure = "Absent"
Name = "Web-AppInit"
}
#NoInstall RoleService 'ASP'
WindowsFeature Web-ASP
{
Ensure = "Absent"
Name = "Web-ASP"
}
#NoInstall RoleService 'ASP.NET 3.5'
WindowsFeature Web-Asp-Net
{
Ensure = "Absent"
Name = "Web-Asp-Net"
}
#NoInstall RoleService 'ASP.NET 4.5'
WindowsFeature Web-Asp-Net45
{
Ensure = "Absent"
Name = "Web-Asp-Net45"
}
#NoInstall RoleService 'CGI'
WindowsFeature Web-CGI
{
Ensure = "Absent"
Name = "Web-CGI"
}
#NoInstall RoleService 'ISAPI Extensions'
WindowsFeature Web-ISAPI-Ext
{
Ensure = "Absent"
Name = "Web-ISAPI-Ext"
}
#NoInstall RoleService "ISAPI Filters"
WindowsFeature Web-ISAPI-Filter
{
Ensure = "Absent"
Name = "Web-ISAPI-Filter"
}
#NoInstall RoleService "Server Side Includes"
WindowsFeature Web-Includes
{
Ensure = "Absent"
Name = "Web-Includes"
}
#NoInstall RoleService "WebSocket Protocol"
WindowsFeature Web-WebSockets
{
Ensure = "Absent"
Name = "Web-WebSockets"
}
#NoInstall RoleService "FTP Server"
WindowsFeature Web-Ftp-Server
{
Ensure = "Absent"
Name = "Web-Ftp-Server"
}
#NoInstall RoleService "FTP Service"
WindowsFeature Web-Ftp-Service
{
Ensure = "Absent"
Name = "Web-Ftp-Service"
}
#NoInstall RoleService "FTP Extensibility"
WindowsFeature Web-Ftp-Ext
{
Ensure = "Absent"
Name = "Web-Ftp-Ext"
}
#Install RoleService "Management Tools"
WindowsFeature Web-Mgmt-Tools
{
Ensure = "Present"
Name = "Web-Mgmt-Tools"
}
#Install RoleService "IIS Management Console"
WindowsFeature Web-Mgmt-Console
{
Ensure = "Present"
Name = "Web-Mgmt-Console"
}
#Install RoleService "IIS 6 Management Compatibility"
WindowsFeature Web-Mgmt-Compat
{
Ensure = "Present"
Name = "Web-Mgmt-Compat"
}
#Install RoleService "IIS 6 Metabase Compatibility"
WindowsFeature Web-Metabase
{
Ensure = "Present"
Name = "Web-Metabase"
}
#NoInstall RoleService "IIS 6 Management Console"
WindowsFeature Web-Lgcy-Mgmt-Console
{
Ensure = "Absent"
Name = "Web-Lgcy-Mgmt-Console"
}
#NoInstall RoleService "IIS 6 Scripting Tools"
WindowsFeature Web-Lgcy-Scripting
{
Ensure = "Absent"
Name = "Web-Lgcy-Scripting"
}
#NoInstall RoleService "IIS 6 WMI Compatibility"
WindowsFeature Web-WMI
{
Ensure = "Absent"
Name = "Web-WMI"
}
#Install RoleService "IIS Management Scripts and Tools"
WindowsFeature Web-Scripting-Tools
{
Ensure = "Present"
Name = "Web-Scripting-Tools"
}
#Install RoleService "Management Service"
WindowsFeature Web-Mgmt-Service
{
Ensure = "Present"
Name = "Web-Mgmt-Service"
}
#NoInstall Role "Windows Deployment Services"
WindowsFeature WDS
{
Ensure = "Absent"
Name = "WDS"
}
#NoInstall RoleService "Deployment Server"
WindowsFeature WDS-Deployment
{
Ensure = "Absent"
Name = "WDS-Deployment"
}
#NoInstall RoleService "Transport Server"
WindowsFeature WDS-Transport
{
Ensure = "Absent"
Name = "WDS-Transport"
}
#NoInstall Role "Windows Server Essentials Experience"
WindowsFeature ServerEssentialsRole
{
Ensure = "Absent"
Name = "ServerEssentialsRole"
}
#NoInstall Role "Windows Server Update Services"
WindowsFeature UpdateServices
{
Ensure = "Absent"
Name = "UpdateServices"
}
#NoInstall RoleService "WID Database"
WindowsFeature UpdateServices-WidDB
{
Ensure = "Absent"
Name = "UpdateServices-WidDB"
}
#NoInstall RoleService "WSUS Services"
WindowsFeature UpdateServices-Services
{
Ensure = "Absent"
Name = "UpdateServices-Services"
}
#NoInstall RoleService "Database"
WindowsFeature UpdateServices-DB
{
Ensure = "Absent"
Name = "UpdateServices-DB"
}
#Install Feature ".NET Framework 3.5 Features"
WindowsFeature NET-Framework-Features
{
Ensure = "Present"
Name = "NET-Framework-Features"
}
#Install Feature ".NET Framework 3.5 (includes .NET 2.0 and 3.0)"
WindowsFeature NET-Framework-Core
{
Ensure = "Present"
Name = "NET-Framework-Core"
}
#NoInstall Feature "HTTP Activation"
WindowsFeature NET-HTTP-Activation
{
Ensure = "Absent"
Name = "NET-HTTP-Activation"
}
#NoInstall Feature "Non-HTTP Activation"
WindowsFeature NET-Non-HTTP-Activ
{
Ensure = "Absent"
Name = "NET-Non-HTTP-Activ"
}
#Install Feature ".NET Framework 4.5 Features"
WindowsFeature NET-Framework-45-Features
{
Ensure = "Present"
Name = "NET-Framework-45-Features"
}
#Install Feature ".NET Framework 4.5"
WindowsFeature NET-Framework-45-Core
{
Ensure = "Present"
Name = "NET-Framework-45-Core"
}
#Install Feature "ASP.NET 4.5"
WindowsFeature NET-Framework-45-ASPNET
{
Ensure = "Present"
Name = "NET-Framework-45-ASPNET"
}
#Install Feature "WCF Services"
WindowsFeature NET-WCF-Services45
{
Ensure = "Present"
Name = "NET-WCF-Services45"
}
#NoInstall Feature "HTTP Activation"
WindowsFeature NET-WCF-HTTP-Activation45
{
Ensure = "Absent"
Name = "NET-WCF-HTTP-Activation45"
}
#NoInstall Feature "Message Queuing (MSMQ) Activation"
WindowsFeature NET-WCF-MSMQ-Activation45
{
Ensure = "Absent"
Name = "NET-WCF-MSMQ-Activation45"
}
#NoInstall Feature "Named Pipe Activation"
WindowsFeature NET-WCF-Pipe-Activation45
{
Ensure = "Absent"
Name = "NET-WCF-Pipe-Activation45"
}
#NoInstall Feature "TCP Activation"
WindowsFeature NET-WCF-TCP-Activation45
{
Ensure = "Absent"
Name = "NET-WCF-TCP-Activation45"
}
#Install Feature "TCP Port Sharing"
WindowsFeature NET-WCF-TCP-PortSharing45
{
Ensure = "Present"
Name = "NET-WCF-TCP-PortSharing45"
}
#NoInstall Feature "Background Intelligent Transfer Service (BITS)"
WindowsFeature BITS
{
Ensure = "Absent"
Name = "BITS"
}
#NoInstall Feature "IIS Server Extension"
WindowsFeature BITS-IIS-Ext
{
Ensure = "Absent"
Name = "BITS-IIS-Ext"
}
#NoInstall Feature "Compact Server"
WindowsFeature BITS-Compact-Server
{
Ensure = "Absent"
Name = "BITS-Compact-Server"
}
#NoInstall Feature "BitLocker Drive Encryption"
WindowsFeature BitLocker
{
Ensure = "Absent"
Name = "BitLocker"
}
#NoInstall Feature "BitLocker Network Unlock"
WindowsFeature BitLocker-NetworkUnlock
{
Ensure = "Absent"
Name = "BitLocker-NetworkUnlock"
}
#NoInstall Feature "BranchCache"
WindowsFeature BranchCache
{
Ensure = "Absent"
Name = "BranchCache"
}
#NoInstall Feature "Client for NFS"
WindowsFeature NFS-Client
{
Ensure = "Absent"
Name = "NFS-Client"
}
#NoInstall Feature "Data Center Bridging"
WindowsFeature Data-Center-Bridging
{
Ensure = "Absent"
Name = "Data-Center-Bridging"
}
#NoInstall Feature "Direct Play"
WindowsFeature Direct-Play
{
Ensure = "Absent"
Name = "Direct-Play"
}
#NoInstall Feature "Enhanced Storage"
WindowsFeature EnhancedStorage
{
Ensure = "Absent"
Name = "EnhancedStorage"
}
#NoInstall Feature "Failover Clustering"
WindowsFeature Failover-Clustering
{
Ensure = "Absent"
Name = "Failover-Clustering"
}
#NoInstall Feature "Group Policy Management"
WindowsFeature GPMC
{
Ensure = "Absent"
Name = "GPMC"
}
#NoInstall Feature "IIS Hostable Web Core"
WindowsFeature Web-WHC
{
Ensure = "Absent"
Name = "Web-WHC"
}
#NoInstall Feature "Ink and Handwriting Services"
WindowsFeature InkAndHandwritingServices
{
Ensure = "Absent"
Name = "InkAndHandwritingServices"
}
#NoInstall Feature "Internet Printing Client"
WindowsFeature Internet-Print-Client
{
Ensure = "Absent"
Name = "Internet-Print-Client"
}
#NoInstall Feature "IP Address Management (IPAM) Server"
WindowsFeature IPAM
{
Ensure = "Absent"
Name = "IPAM"
}
#NoInstall Feature "iSNS Server service"
WindowsFeature ISNS
{
Ensure = "Absent"
Name = "ISNS"
}
#NoInstall Feature "LPR Port Monitor"
WindowsFeature LPR-Port-Monitor
{
Ensure = "Absent"
Name = "LPR-Port-Monitor"
}
#NoInstall Feature "Management OData IIS Extension"
WindowsFeature ManagementOdata
{
Ensure = "Absent"
Name = "ManagementOdata"
}
#NoInstall Feature "Media Foundation"
WindowsFeature Server-Media-Foundation
{
Ensure = "Absent"
Name = "Server-Media-Foundation"
}
#NoInstall Feature "Message Queuing"
WindowsFeature MSMQ
{
Ensure = "Absent"
Name = "MSMQ"
}
#NoInstall Feature "Message Queuing Services"
WindowsFeature MSMQ-Services
{
Ensure = "Absent"
Name = "MSMQ-Services"
}
#NoInstall Feature "Message Queuing Server"
WindowsFeature MSMQ-Server
{
Ensure = "Absent"
Name = "MSMQ-Server"
}
#NoInstall Feature "Directory Service Integration"
WindowsFeature MSMQ-Directory
{
Ensure = "Absent"
Name = "MSMQ-Directory"
}
#NoInstall Feature "HTTP Support"
WindowsFeature MSMQ-HTTP-Support
{
Ensure = "Absent"
Name = "MSMQ-HTTP-Support"
}
#NoInstall Feature "Message Queuing Triggers"
WindowsFeature MSMQ-Triggers
{
Ensure = "Absent"
Name = "MSMQ-Triggers"
}
#NoInstall Feature "Multicasting Support"
WindowsFeature MSMQ-Multicasting
{
Ensure = "Absent"
Name = "MSMQ-Multicasting"
}
#NoInstall Feature "Routing Service"
WindowsFeature MSMQ-Routing
{
Ensure = "Absent"
Name = "MSMQ-Routing"
}
#NoInstall Feature "Message Queuing DCOM Proxy"
WindowsFeature MSMQ-DCOM
{
Ensure = "Absent"
Name = "MSMQ-DCOM"
}
#NoInstall Feature "Multipath-IO"
WindowsFeature Multipath-IO
{
Ensure = "Absent"
Name = "Multipath-IO"
}
#NoInstall Feature "Network Load Balancing"
WindowsFeature NLB
{
Ensure = "Absent"
Name = "NLB"
}
#NoInstall Feature "Peer Name Resolution Protocol"
WindowsFeature PNRP
{
Ensure = "Absent"
Name = "PNRP"
}
#NoInstall Feature "Quality Windows Audio Video Experience"
WindowsFeature qWave
{
Ensure = "Absent"
Name = "qWave"
}
#NoInstall Feature "RAS Connection Manager Administration Kit (CMAK)"
WindowsFeature CMAK
{
Ensure = "Absent"
Name = "CMAK"
}
#NoInstall Feature "Remote Assistance"
WindowsFeature Remote-Assistance
{
Ensure = "Absent"
Name = "Remote-Assistance"
}
#NoInstall Feature "Remote Differential Compression"
WindowsFeature RDC
{
Ensure = "Absent"
Name = "RDC"
}
#Install Feature "Remote Server Administration Tools"
WindowsFeature RSAT
{
Ensure = "Present"
Name = "RSAT"
}
#Install Feature "Feature Administration Tools"
WindowsFeature RSAT-Feature-Tools
{
Ensure = "Present"
Name = "RSAT-Feature-Tools"
}
#NoInstall Feature "SMTP Server Tools"
WindowsFeature RSAT-SMTP
{
Ensure = "Absent"
Name = "RSAT-SMTP"
}
#NoInstall Feature "BitLocker Drive Encryption Administration Utilities"
WindowsFeature RSAT-Feature-Tools-BitLocker
{
Ensure = "Absent"
Name = "RSAT-Feature-Tools-BitLocker"
}
#NoInstall Feature "BitLocker Drive Encryption Tools"
WindowsFeature RSAT-Feature-Tools-BitLocker-RemoteAdminTool
{
Ensure = "Absent"
Name = "RSAT-Feature-Tools-BitLocker-RemoteAdminTool"
}
#NoInstall Feature "BitLocker Recovery Password Viewer"
WindowsFeature RSAT-Feature-Tools-BitLocker-BdeAducExt
{
Ensure = "Absent"
Name = "RSAT-Feature-Tools-BitLocker-BdeAducExt"
}
#NoInstall Feature "BITS Server Extensions Tools"
WindowsFeature RSAT-Bits-Server
{
Ensure = "Absent"
Name = "RSAT-Bits-Server"
}
#NoInstall Feature "Failover Clustering Tools"
WindowsFeature RSAT-Clustering
{
Ensure = "Absent"
Name = "RSAT-Clustering"
}
#NoInstall Feature "Failover Cluster Management Tools"
WindowsFeature RSAT-Clustering-Mgmt
{
Ensure = "Absent"
Name = "RSAT-Clustering-Mgmt"
}
#NoInstall Feature "Failover Cluster Module for Windows PowerShell"
WindowsFeature RSAT-Clustering-PowerShell
{
Ensure = "Absent"
Name = "RSAT-Clustering-PowerShell"
}
#NoInstall Feature "Failover Cluster Automation Server"
WindowsFeature RSAT-Clustering-AutomationServer
{
Ensure = "Absent"
Name = "RSAT-Clustering-AutomationServer"
}
#NoInstall Feature "Failover Cluster Command Interface"
WindowsFeature RSAT-Clustering-CmdInterface
{
Ensure = "Absent"
Name = "RSAT-Clustering-CmdInterface"
}
#NoInstall Feature "IP Address Management (IPAM) Client"
WindowsFeature IPAM-Client-Feature
{
Ensure = "Absent"
Name = "IPAM-Client-Feature"
}
#NoInstall Feature "Network Load Balancing Tools"
WindowsFeature RSAT-NLB
{
Ensure = "Absent"
Name = "RSAT-NLB"
}
#Install Feature "SNMP Tools"
WindowsFeature RSAT-SNMP
{
Ensure = "Present"
Name = "RSAT-SNMP"
}
#NoInstall Feature "WINS Server Tools"
WindowsFeature RSAT-WINS
{
Ensure = "Absent"
Name = "RSAT-WINS"
}
#Install Feature "Role Administration Tools"
WindowsFeature RSAT-Role-Tools
{
Ensure = "Present"
Name = "RSAT-Role-Tools"
}
#Install Feature "AD DS and AD LDS Tools"
WindowsFeature RSAT-AD-Tools
{
Ensure = "Present"
Name = "RSAT-AD-Tools"
}
#Install Feature "Active Directory module for Windows PowerShell"
WindowsFeature RSAT-AD-PowerShell
{
Ensure = "Present"
Name = "RSAT-AD-PowerShell"
}
#Install Feature "AD DS Tools"
WindowsFeature RSAT-ADDS
{
Ensure = "Present"
Name = "RSAT-ADDS"
}
#Install Feature "Active Directory Administrative Center"
WindowsFeature RSAT-AD-AdminCenter
{
Ensure = "Present"
Name = "RSAT-AD-AdminCenter"
}
#Install Feature "AD DS Snap-Ins and Command-Line Tools"
WindowsFeature RSAT-ADDS-Tools
{
Ensure = "Present"
Name = "RSAT-ADDS-Tools"
}
#NoInstall Feature "Server for NIS Tools [DEPRECATED]"
WindowsFeature RSAT-NIS
{
Ensure = "Absent"
Name = "RSAT-NIS"
}
#Install Feature "AD LDS Snap-Ins and Command-Line Tools"
WindowsFeature RSAT-ADLDS
{
Ensure = "Present"
Name = "RSAT-ADLDS"
}
#NoInstall Feature "Hyper-V Management Tools"
WindowsFeature RSAT-Hyper-V-Tools
{
Ensure = "Absent"
Name = "RSAT-Hyper-V-Tools"
}
#NoInstall Feature "Hyper-V GUI Management Tools"
WindowsFeature Hyper-V-Tools
{
Ensure = "Absent"
Name = "Hyper-V-Tools"
}
#NoInstall Feature "Hyper-V Module for Windows PowerShell"
WindowsFeature Hyper-V-PowerShell
{
Ensure = "Absent"
Name = "Hyper-V-PowerShell"
}
#NoInstall Feature "Remote Desktop Services Tools"
WindowsFeature RSAT-RDS-Tools
{
Ensure = "Absent"
Name = "RSAT-RDS-Tools"
}
#NoInstall Feature "Remote Desktop Gateway Tools"
WindowsFeature RSAT-RDS-Gateway
{
Ensure = "Absent"
Name = "RSAT-RDS-Gateway"
}
#NoInstall Feature "Remote Desktop Licensing Diagnoser Tools"
WindowsFeature RSAT-RDS-Licensing-Diagnosis-UI
{
Ensure = "Absent"
Name = "RSAT-RDS-Licensing-Diagnosis-UI"
}
#NoInstall Feature "Remote Desktop Licensing Tools"
WindowsFeature RDS-Licensing-UI
{
Ensure = "Absent"
Name = "RDS-Licensing-UI"
}
#NoInstall Feature "Windows Server Update Services Tools"
WindowsFeature UpdateServices-RSAT
{
Ensure = "Absent"
Name = "UpdateServices-RSAT"
}
#NoInstall Feature "API and PowerShell cmdlets"
WindowsFeature UpdateServices-API
{
Ensure = "Absent"
Name = "UpdateServices-API"
}
#NoInstall Feature "User Interface Management Console"
WindowsFeature UpdateServices-UI
{
Ensure = "Absent"
Name = "UpdateServices-UI"
}
#NoInstall Feature "Active Directory Certificate Services Tools"
WindowsFeature RSAT-ADCS
{
Ensure = "Absent"
Name = "RSAT-ADCS"
}
#NoInstall Feature "Certification Authority Management Tools"
WindowsFeature RSAT-ADCS-Mgmt
{
Ensure = "Absent"
Name = "RSAT-ADCS-Mgmt"
}
#NoInstall Feature "Online Responder Tools"
WindowsFeature RSAT-Online-Responder
{
Ensure = "Absent"
Name = "RSAT-Online-Responder"
}
#NoInstall Feature "Active Directory Rights Management Services Tools"
WindowsFeature RSAT-ADRMS
{
Ensure = "Absent"
Name = "RSAT-ADRMS"
}
#Install Feature "DHCP Server Tools"
WindowsFeature RSAT-DHCP
{
Ensure = "Present"
Name = "RSAT-DHCP"
}
#Install Feature "DNS Server Tools"
WindowsFeature RSAT-DNS-Server
{
Ensure = "Present"
Name = "RSAT-DNS-Server"
}
#NoInstall Feature "Fax Server Tools"
WindowsFeature RSAT-Fax
{
Ensure = "Absent"
Name = "RSAT-Fax"
}
#Install Feature "File Services Tools"
WindowsFeature RSAT-File-Services
{
Ensure = "Present"
Name = "RSAT-File-Services"
}
#NoInstall Feature "DFS Management Tools"
WindowsFeature RSAT-DFS-Mgmt-Con
{
Ensure = "Absent"
Name = "RSAT-DFS-Mgmt-Con"
}
#Install Feature "File Server Resource Manager Tools"
WindowsFeature RSAT-FSRM-Mgmt
{
Ensure = "Present"
Name = "RSAT-FSRM-Mgmt"
}
#NoInstall Feature "Services for Network File System Management Tools"
WindowsFeature RSAT-NFS-Admin
{
Ensure = "Absent"
Name = "RSAT-NFS-Admin"
}
#NoInstall Feature "Share and Storage Management Tool"
WindowsFeature RSAT-CoreFile-Mgmt
{
Ensure = "Absent"
Name = "RSAT-CoreFile-Mgmt"
}
#NoInstall Feature "Network Policy and Access Services Tools"
WindowsFeature RSAT-NPAS
{
Ensure = "Absent"
Name = "RSAT-NPAS"
}
#Install Feature "Print and Document Services Tools"
WindowsFeature RSAT-Print-Services
{
Ensure = "Present"
Name = "RSAT-Print-Services"
}
#NoInstall Feature "Remote Access Management Tools"
WindowsFeature RSAT-RemoteAccess
{
Ensure = "Absent"
Name = "RSAT-RemoteAccess"
}
#NoInstall Feature "Remote Access GUI and Command-Line Tools"
WindowsFeature RSAT-RemoteAccess-Mgmt
{
Ensure = "Absent"
Name = "RSAT-RemoteAccess-Mgmt"
}
#NoInstall Feature "Remote Access module for Windows PowerShell"
WindowsFeature RSAT-RemoteAccess-PowerShell
{
Ensure = "Absent"
Name = "RSAT-RemoteAccess-PowerShell"
}
#NoInstall Feature "Volume Activation Tools"
WindowsFeature RSAT-VA-Tools
{
Ensure = "Absent"
Name = "RSAT-VA-Tools"
}
#NoInstall Feature "Windows Deployment Services Tools"
WindowsFeature WDS-AdminPack
{
Ensure = "Absent"
Name = "WDS-AdminPack"
}
#NoInstall Feature "RPC over HTTP Proxy"
WindowsFeature RPC-over-HTTP-Proxy
{
Ensure = "Absent"
Name = "RPC-over-HTTP-Proxy"
}
#NoInstall Feature "Simple TCP/IP Services"
WindowsFeature Simple-TCPIP
{
Ensure = "Absent"
Name = "Simple-TCPIP"
}
#Install Feature "SMB 1.0/CIFS File Sharing Support"
WindowsFeature FS-SMB1
{
Ensure = "Present"
Name = "FS-SMB1"
}
#NoInstall Feature "SMB Bandwidth Limit"
WindowsFeature FS-SMBBW
{
Ensure = "Absent"
Name = "FS-SMBBW"
}
#NoInstall Feature "SMTP Server"
WindowsFeature SMTP-Server
{
Ensure = "Absent"
Name = "SMTP-Server"
}
#Install Feature "SNMP Service"
WindowsFeature SNMP-Service
{
Ensure = "Present"
Name = "SNMP-Service"
}
#Install Feature "SNMP WMI Provider"
WindowsFeature SNMP-WMI-Provider
{
Ensure = "Present"
Name = "SNMP-WMI-Provider"
}
#NoInstall Feature "Telnet Client"
WindowsFeature Telnet-Client
{
Ensure = "Absent"
Name = "Telnet-Client"
}
#NoInstall Feature "Telnet Server"
WindowsFeature Telnet-Server
{
Ensure = "Absent"
Name = "Telnet-Server"
}
#NoInstall Feature "TFTP Client"
WindowsFeature TFTP-Client
{
Ensure = "Absent"
Name = "TFTP-Client"
}
#Install Feature "User Interfaces and Infrastructure"
WindowsFeature User-Interfaces-Infra
{
Ensure = "Present"
Name = "User-Interfaces-Infra"
}
#Install Feature "Graphical Management Tools and Infrastructure"
WindowsFeature Server-Gui-Mgmt-Infra
{
Ensure = "Present"
Name = "Server-Gui-Mgmt-Infra"
}
#NoInstall Feature "Desktop Experience"
WindowsFeature Desktop-Experience
{
Ensure = "Absent"
Name = "Desktop-Experience"
}
#Install Feature "Server Graphical Shell"
WindowsFeature Server-Gui-Shell
{
Ensure = "Present"
Name = "Server-Gui-Shell"
}
#NoInstall Feature "Windows Biometric Framework"
WindowsFeature Biometric-Framework
{
Ensure = "Absent"
Name = "Biometric-Framework"
}
#NoInstall Feature "Windows Feedback Forwarder"
WindowsFeature WFF
{
Ensure = "Absent"
Name = "WFF"
}
#NoInstall Feature "Windows Identity Foundation 3.5"
WindowsFeature Windows-Identity-Foundation
{
Ensure = "Absent"
Name = "Windows-Identity-Foundation"
}
#NoInstall Feature "Windows Internal Database"
WindowsFeature Windows-Internal-Database
{
Ensure = "Absent"
Name = "Windows-Internal-Database"
}
#Install Feature "Windows PowerShell"
WindowsFeature PowerShellRoot
{
Ensure = "Present"
Name = "PowerShellRoot"
}
#Install Feature "Windows PowerShell 4.0"
WindowsFeature PowerShell
{
Ensure = "Present"
Name = "PowerShell"
}
#NoInstall Feature "Windows PowerShell 2.0 Engine"
WindowsFeature PowerShell-V2
{
Ensure = "Absent"
Name = "PowerShell-V2"
}
#NoInstall Feature "Windows PowerShell Desired State Configuration Service"
WindowsFeature DSC-Service
{
Ensure = "Absent"
Name = "DSC-Service"
}
#Install Feature "Windows PowerShell ISE"
WindowsFeature PowerShell-ISE
{
Ensure = "Present"
Name = "PowerShell-ISE"
}
#NoInstall Feature "Windows PowerShell Web Access"
WindowsFeature WindowsPowerShellWebAccess
{
Ensure = "Absent"
Name = "WindowsPowerShellWebAccess"
}
#NoInstall Feature "Windows Process Activation Service"
WindowsFeature WAS
{
Ensure = "Absent"
Name = "WAS"
}
#NoInstall Feature "Process Model"
WindowsFeature WAS-Process-Model
{
Ensure = "Absent"
Name = "WAS-Process-Model"
}
#NoInstall Feature ".NET Environment 3.5"
WindowsFeature WAS-NET-Environment
{
Ensure = "Absent"
Name = "WAS-NET-Environment"
}
#NoInstall Feature "Configuration APIs"
WindowsFeature WAS-Config-APIs
{
Ensure = "Absent"
Name = "WAS-Config-APIs"
}
#NoInstall Feature "Windows Search Service"
WindowsFeature Search-Service
{
Ensure = "Absent"
Name = "Search-Service"
}
#Install Feature "Windows Server Backup"
WindowsFeature Windows-Server-Backup
{
Ensure = "Present"
Name = "Windows-Server-Backup"
}
#NoInstall Feature "Windows Server Migration Tools"
WindowsFeature Migration
{
Ensure = "Absent"
Name = "Migration"
}
#NoInstall Feature "Windows Standards-Based Storage Management"
WindowsFeature WindowsStorageManagementService
{
Ensure = "Absent"
Name = "WindowsStorageManagementService"
}
#NoInstall Feature "Windows TIFF IFilter"
WindowsFeature Windows-TIFF-IFilter
{
Ensure = "Absent"
Name = "Windows-TIFF-IFilter"
}
#NoInstall Feature "WinRM IIS Extension"
WindowsFeature WinRM-IIS-Ext
{
Ensure = "Absent"
Name = "WinRM-IIS-Ext"
}
#NoInstall Feature "WINS Server"
WindowsFeature WINS
{
Ensure = "Absent"
Name = "WINS"
}
#NoInstall Feature "Wireless LAN Service"
WindowsFeature Wireless-Networking
{
Ensure = "Absent"
Name = "Wireless-Networking"
}
#Install Feature "WoW64 Support"
WindowsFeature WoW64-Support
{
Ensure = "Present"
Name = "WoW64-Support"
}
#NoInstall Feature "XPS Viewer"
WindowsFeature XPS-Viewer
{
Ensure = "Absent"
Name = "XPS-Viewer"
}
}
}
TestConfig -ConfigurationData $ConfigData -OutputPath "$Env:Temp\TestConfig"
Please feel free to share or let me know where I can post to assist the community.