programming4us
programming4us
DESKTOP

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

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

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
  •  
    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