programming4us
programming4us
DESKTOP

Windows Server 2008 : Adding Roles to Server Core - Using dism to Add Roles to Windows Server 2008 R2

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

1. Using dism to Add Roles to Windows Server 2008 R2

Windows Server 2008 R2 uses dism instead of ocsetup to add additional roles. The basic syntax is

dism /online /enable-feature /featurename: feature-name

For a full list of roles and features you can add, use the following command:

dism /online /get-features /format:table

Note

dism is not available on the Windows Server 2008 Server Core installation. However, it is available by default on Windows Server 2008 R2 and Windows Server 2008 R2 Server Core installations.


Tip

The feature-name must be entered using the exact case as shown in the get-features output. This is one of the few times when upper- and lowercase matters with the command prompt (just as it matters with the ocsetup command used with Windows Server 2008 Server Core).


Some roles require additional steps to configure. The following sections show how to add and configure various roles.

Adding the DHCP Server Role with dism

The following table shows the syntax to add the DHCP role.

Commands for DHCPComments
C:\>dism /online
/enable-feature
/featurename:
DHCPServerCore

Adds the DHCP role.
C:\>sc config dhcpserver
start= auto

Configures the DHCP Server service to start automatically.
C:\>net start dhcpserver

Starts the DHCP Server service.

Tip

After the DHCP Server role is added and the DHCP Server service is started, you can configure DHCP remotely using a DHCP console on a different system. 

C:\>dism /online
/disable-feature
/featurename:
DHCPServerCore

Removes the DHCP role.

Adding the DNS Server Role with dism

The following table shows the syntax to add the DNS role.

Commands for DNSComments
C:\>dism /online /enable-
feature /featurename:
DNS-Server-Core-Role

Adds the DNS role.

Tip

After the DNS Server role is added, you can configure it remotely using a DNS console on a different system.

C:\>dism /online /disable-
feature /featurename:
DNS-Server-Core-Role

Removes the DNS role.

Adding File Services with dism

The following table shows the syntax to add the various file services.

Note

When you add any of the file services, the server is configured as a File Server.


Commands for File ServicesComments
C:\>dism /online /enable-feature
/featurename:FRS-infrastructure

Adds the File Replication service.
C:\>dism /online /enable-feature
/featurename:DFSN-Server

Adds the Distributed File System service.
C:\>dism /online /enable-feature
/featurename:ClientForNFS-Base

Adds the Distributed File System Replication service.
C:\>dism /online /enable-feature
/featurename:ServerForNFS-Base

Adds Base Services for NFS.
C:\>dism /online /enable-feature
/featurename:ClientForNFS-Client

Adds Client Services for NFS.

Adding the Print and Document Services Role with dism

The following table shows the syntax to add the Print and Document Services role.

Commands for Print ServicesComments
C:\>dism /online /enable-feature
/featurename:Printing-ServerCore-Role

Adds the Print Services role.
C:\>dism /online /enable-feature
/featurename:Printing-ServerCore-Role-WOW64

Adds 32-bit Print Server support.
C:\>dism /online /enable-feature
/featurename:Printing-LPDPrint-Service

Adds the LPD service.

Adding the AD CS Role with dism

The following table shows the syntax to add and remove the AD CS role.

Commands to Add PowerShellComments
C:\>dism /online /enable-feature
/featurename:Certificate Services

Installs the AD CS role.
C:\>dism /online /disable-feature
/featurename:Certificate Services

Removes the AD CS role.

Adding the AD LDS Role with dism

The following table shows the syntax to add and remove the AD LDS role.

Commands to Add PowerShellComments
C:\>dism /online /enable-feature
/featurename: DirectoryServices-ADAM-
ServerCore

Installs the AD LDS role.
C:\>dism /online /disable-feature
/featurename: DirectoryServices-ADAM-
ServerCore

Removes the AD LDS role.

Adding PowerShell with dism

The following table shows the syntax to add PowerShell.

Note

PowerShell is not supported in Windows Server 2008 Server Core, but it is supported in Windows Server 2008 R2 Server Core.


Commands to Add PowerShellComments
C:\>dism /online /enable-feature
/featurename:MicrosoftWindowsPowerShell

Installs Windows PowerShell.
C:\>\windows\system32\
WindowsPowerShell\v1.0\powershell.exe

Starts PowerShell.

2. Adding the AD DS Role

You use the dcpromo tool with an unattend file to install AD DS on a Windows Server 2008 or Windows Server 2008 R2 Server Core server. The basic syntax is

dcpromo /unattend:unattend-file


Other  
  •  Windows Server 2008 : Adding Roles to Server Core - Using ocsetup to Add Roles to Windows Server 2008 (part 1)
  •  Windows Server 2008 : Adding Roles to Server Core - Using ocsetup to Add Roles to Windows Server 2008 (part 1)
  •  Windows Server 2008 : Configuring Server Core for Remote Administration - Enabling Access with Remote Microsoft Management Consoles
  •  Windows Server 2008 : Configuring Server Core for Remote Administration - Using the Server Core Registry Editor
  •  Managing Windows Server 2012 (part 13) - Using Remote Desktop - Supporting Remote Desktop Connection clients
  •  Managing Windows Server 2012 (part 12) - Using Remote Desktop - Remote Desktop essentials, Configuring Remote Desktop
  •  Managing Windows Server 2012 (part 11) - Optimizing toolbars
  •  Managing Windows Server 2012 (part 10) - Customizing the desktop and the taskbar - Using Auto Hide and locking, Controlling programs in the notification area
  •  Managing Windows Server 2012 (part 9) - Customizing the desktop and the taskbar - Configuring desktop items, Configuring the taskbar
  •  Managing Windows Server 2012 (part 8) - Using the System console
  •  
    Top 10
    Free Mobile And Desktop Apps For Accessing Restricted Websites
    MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
    TOYOTA CAMRY 2; 2.5 : Camry now more comely
    KIA SORENTO 2.2CRDi : Fuel-sipping slugger
    How To Setup, Password Protect & Encrypt Wireless Internet Connection
    Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
    Backup & Restore Game Progress From Any Game With SaveGameProgress
    Generate A Facebook Timeline Cover Using A Free App
    New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
    SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
    - Messages forwarded by Outlook rule go nowhere
    - Create and Deploy Windows 7 Image
    - How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
    - Creating and using an unencrypted cookie in ASP.NET
    - Directories
    - Poor Performance on Sharepoint 2010 Server
    - SBS 2008 ~ The e-mail alias already exists...
    - Public to Private IP - DNS Changes
    - Send Email from Winform application
    - How to create a .mdb file from ms sql server database.......
    programming4us programming4us
    programming4us
     
     
    programming4us