programming4us
programming4us
DESKTOP

Windows Server 2008 : Adding Roles to Server Core - Using ocsetup to Add Roles to Windows Server 2008 (part 1)

12/22/2013 1:34:17 AM

2.1 Adding the DHCP Server Role with ocsetup

The following table shows the syntax to add DHCP. Figure 2 shows these commands in the Server Core prompt.

Figure 2. Adding and configuring the DHCP Server role on Windows Server 2008 Server Core

Commands for DHCPComments
C:\>start /w ocsetup
DHCPServerCore

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

Configure the DHCP Server service to start automatically.

Tip

There must be a space after the equal sign (=), but there cannot be a space before it in this command. In other words, it’s start=, a space, and then auto.

C:\>net start
dhcpserver

Start 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:\>start /w ocsetup
DNS-Server-Core-Role
/uninstall

Remove DHCP role.

2.2 Adding the DNS Server Role with ocsetup

The following table shows the syntax to add DNS.

Commands for DNSComments
C:\>start /w ocsetup
DNS-Server-Core-Role

Add DNS role.

Tip

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

C:\>start /w ocsetup
DNS-Server-Core-Role /uninstall

Remove DNS role.

2.3 Adding File Services with ocsetup

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

Note

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


Commands for File ServicesComments
C:\>start /w ocsetup
FRS-Infrastructure

Add the File Replication service.
C:\>start /w ocsetup DFSN-Server

Add the Distributed File System service.
C:\>start /w ocsetup
DFSR-Infrastructure-ServerEdition

Add the Distributed File System Replication service.
C:\>start /w ocsetup
ServerForNFS-Base

Add Base Services for Network File System (NFS).
C:\>start /w ocsetup
ClientForNFS-Client

Add Client Services for NFS.

2.4 Adding the Print Services Role with ocsetup

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

Commands for Print ServicesComments
C:\>start /w ocsetup
Printing-ServerCore-Role

Add the Print Services role.
C:\>start /w ocsetup
Printing-LPDPrintService

Add the Line Printer Daemon (LPD) service.
C:\>start /w ocsetup
Printing-ServerCore-Role
/uninstall

Remove the Print Services role.

2.5 Adding the Web Server (IIS) Role with pkgmgr

The following table shows the syntax to add the Web Server (IIS) role.

Note

Internet Information Services (IIS) is installed when the Web Server (IIS) role is added.


Commands for Web ServerComments
C:\>start /w pkgmgr /iu:IIS-WebServerRole;WAS-
WindowsActivationService;WAS-ProcessModel

Adds the Web Server role with a default installation.
C:\>start /w pkgmgr /iu:IIS-WebServerRole;IIS-
WebServer;IIS-CommonHttpFeatures;IIS-
StaticContent;IIS-DefaultDocument;IIS-
DirectoryBrowsing;IIS-HttpErrors;IIS-
HttpRedirect;IIS-ApplicationDevelopment;IIS-
ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-
ISAPIFilter;IIS-ServerSideIncludes;IIS-
HealthAndDiagnostics;IIS-HttpLogging;IIS-
LoggingLibraries;IIS-RequestMonitor;IIS-
HttpTracing;IIS-CustomLogging;IIS-
ODBCLogging;IIS-Security;IIS-
BasicAuthentication;IIS-WindowsAuthentication;
IIS-DigestAuthentication;
IIS-ClientCertificateMappingAuthentication;
IIS-IISCertificateMappingAuthent
ication;IIS-URLAuthorization;IIS-
RequestFiltering;IIS-IPSecurity;IIS-
Performance;IIS-HttpCompressionStatic;IIS-
HttpCompressionDynamic;IIS-
WebServerManagementTools;IIS-
ManagementScriptingTools;IIS-
IIS6ManagementCompatibility;IIS-Metabase;IIS-
WMICompatibility;IIS-LegacyScripts;IIS-
FTPPublishingService;IIS-FTPServer;WAS-
WindowsActivationService;WAS-ProcessModel


Adds the Web Server role with all options. Works for both Windows Server 2008 and Windows Server 2008 R2.
C:\>start /w pkgmgr
/uu:IIS-WebServerRole;WAS-
WindowsActivationService;WAS-ProcessModel

Removes the Web Server role.
Other  
  •  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
  •  Managing Windows Server 2012 (part 7) - Using Control Panel
  •  Managing Windows Server 2012 (part 6) - Working with Computer Management
  •  
    video
     
    Video tutorials
    - How To Install Windows 8

    - How To Install Windows Server 2012

    - How To Install Windows Server 2012 On VirtualBox

    - How To Disable Windows 8 Metro UI

    - How To Install Windows Store Apps From Windows 8 Classic Desktop

    - How To Disable Windows Update in Windows 8

    - How To Disable Windows 8 Metro UI

    - How To Add Widgets To Windows 8 Lock Screen

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010
    programming4us programming4us
    programming4us
     
     
    programming4us