Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


windows:server_os:core_features

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

windows:server_os:core_features [2019/10/31 09:06] (current)
Line 1: Line 1:
 +====== Enable and disable Windows Features on Server 2012 R2 Core ======
 +So, you have installed Windows Server 2012 R2 Core and are determined to manage it without using any GUI tools. Very enthusiastic. I'd prefer to use Server Manager from a remote machine, but what the hell. Hit the keyboard.
  
 +The first thing to do is to list available features and their current state by using the '​dism'​ command. The output also reveals the percise feature names.
 +<​code>​
 +dism  /online /​get-features /​format:​table
 +</​code>​
 +You will get a table-like output like in the image:\\
 +{{:​windows:​server_os:​core01.png|}}
 +
 +For additional feature information,​ use (eg. for SmbDirect)
 +<​code>​
 +Dism /online /​get-featureInfo /​featureName:​SmbDirect
 +</​code>​
 +To list installed packets, use:
 +<​code>​
 +dism /online /​get-packages /​format:​table
 +</​code>​
 +You will get table-like output like in the image:\\
 +{{:​windows:​server_os:​core02.png|}}
 +
 +For aditional feature information,​ use (eg. for Package_for_KB2995004~31bf3856ad364e35~amd64~~6.3.1.0):​
 +<​code>​
 +dism /online /​get-packageinfo /​packagename:​Package_for_KB2995004~31bf3856ad364e35~amd64~~6.3.1.0
 +</​code>​
 +To enable or disable features, use (eg. for SmbDirect):
 +<​code>​
 +Dism /online /​enable-feature /​featurename:​SmbDirect
 +Dism /online /​disable-feature /​featurename:​SmbDirect
 +</​code>​
 +Multiple /​featureName arguments can be used if the features are components in the same parent package. Add /remove to remove the payloads without removing the feature’s manifest from the image. Once the payload is removed, a feature will have the status, ‘Disabled with Payload Removed.’ and can be restored and enabled using /​Enable-Feature with the /Source option.
windows/server_os/core_features.txt · Last modified: 2019/10/31 09:06 (external edit)