
Again, in this post, we are not working directly with Active Directory but yet another very cool option within the Windows Server 2008 family of products. The CORE!
The server core provides a Windows platform without the over head of the user interface. It has been said the user interface is responsible for more that 80% of Windows blue screens. It’s pretty obvious if eliminating this 80%, that your system will be more stable. (Not to mention reduces attack surfaces)
IM writing about the server CORE OS to expand on this topic to include the RODC (Read Only Domain Controller). IM going to stay brief and focus just on the main topics of interest. (preparing the server CORE server for DCPROMO)
Notes:
You cannot use the Active Directory Domain Controller Installation Wizard (Dcpromo.exe) on a server running Server Core installation. You must use an unattend file with Dcpromo.exe to install or remove the domain controller role.
Alternately, you can run Dcpromo.exe on another computer running Windows Server 2008 and use the wizard to save an unattend file that you can then use on the server running Server Core installation.
Dcpromo.exe will restart the computer immediately when the installation is complete or when Active Directory is removed unless RebootOnCompletion=No is included in the answer file.
No support for managed code in CORE server (Limited support for managed code in CORE server R2)(Managed code means = .Net Framework)
Windows Server 2008 R2, a script is available in the \Windows\system32 directory that allows you to configure most of the basic server settings (Sconfig.cmd)
Windows Server Core supports the following GUI's Task Manager,Notepad,Time & Date control panel applet, Regional Settings Applet.
Only clean installations are supported.
No upgrade path from server Core to Full versions of Windows Server 2008
PSEXEC tools can be utilized to run command line tools across the network interfacing with the server CORE system.
Core comes equipped with the necessary VBScript runtime code to launch commands directly from its console.
Windows PowerShell commands can be launched on your local desktop against a Server Core instance but you can't directly launch them within your Server Core instance. (Except in R2)
Server running a Server Core installation of Windows Server 2008 supports the following server roles:
• Active Directory Certificate Services (R2 Only)
• Active Directory Domain Services
• Active Directory Lightweight Directory Services (AD LDS)
• DHCP Server
• DNS Server
• File Services (including File Server Resource Manager)
• Hyper-V
• Print Services
• Web Server (including a subset of ASP.NET R2 ONLY)
Configuring TCP/IP after the OS is installed
Example: (Show interface name, set IP address, set DNS IP)
Netsh interface ipv4 show interfaces (the idx column will be the interface name)
Netsh interface ipv4 set address name=idx source=static address=192.168.0.2 mask=255.255.255.0 gateway=192.168.0.1
Netsh interface ipv4 add dnsserver name=idx address=192.168.0.100
Netsh interface ipv4 add WINSserver name="Local Area Connection" X.X.X.X index=Y
Example: (rename the computer in a domain)
Netdom renamecomputer %computername% /newname:MyNewServerName /userd:MyAccount@Mydomain.com /password:TrustMe /reboot:0
Example: (rename the computer in a workgroup)
wmic computersystem where name="%computername%" rename name="NEWNAME"
Example: Changing Local User Password
Net user USERNAME *
Example: (Join the domain)
netdom join
net localgroup administrators /add
Example: (Turn off the firewall)
Netsh advfirewall set allprofiles state off
Example: (Turn on remote access RDP) (2 Steps)
Winrm quickconfig (Select “Y” to create the listener)
From another computer RUN,
Winrs –r:MyRDPcomputerName cscript \windows\system32\scregedit.wsf /ar 0 Source
Local system = “cscript c:\windows\system32\scregedit.wsf /ar 0”
OR
netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
Example:(Activate the server) (2 Steps)
Enter product key: slmgr.vbs –ipk
Activate: slmgr.vbs –ato
List drivers
sc query type= driver
Installing Drivers
Pnputil –i –a DRIVER.inf
Uninstalling Drivers
sc delete DRIVERNAME
Use the command-line tool named “icacls”
Enabling automatic updates (default settings)
Cscript c:\windows\system32\scregedit.wsf /au 4
Disabling automatic updates
Cscript scregedit.wsf /AU /1
Restart the computer
shutdown /r /f /t 0
Install PowerShell (R2 Only)
start /w ocsetup MicrosoftWindowsPowerShell
Launch Powershell
c:\windows\system32\windowspowershell\v1.0\powershell.exe.
When the server CORE OS & Networking components are configured to your liking, install some Roles or Features.
Note:
Using netsh on the server CORE, or by remotely using the MMC snap-in’s from another Windows Server 2008 server will assist in the configuration of install ROLES or Features.
The commands below are in reference to server CORE (non R2 systems)
List server Core components
oclist
Example (Installing roles)
start /w ocsetup “ROLEServerCore”
start /w ocsetup DHCPServerCore - (Installs DHCP)
start /w ocsetup DHCPServerCore /uninstall -(Uninstalls DHCP)
FRS-Infrastructure (FRS) DFSN-Server (DFS) Microsoft-Hyper-V (Hyper-V)
Printing-ServerCore-Role (Printing) Ect………
Example: (Creating a domain controller) (More on this later)
dcpromo /unattend:
Note:
The commands below reference install ROLES & Features on server CORE R2 systems
Example:
Dism /online /enable-feature /featurename:DHCPServerCore
(DHCP) (authorize it in Active Directory)
Start & configure startup type
Net start dhcpserver
sc config dhcpserver start= auto
More Example of feature installations
Dism /online /enable-feature /featurename:FRS-infrastructure
Dism /online /enable-feature /featurename:DFSN-Server
Dism /online /enable-feature /featurename:CertificateServices
Note: Uninstall any file server role options by using these commands with the /disable-feature option instead of the /enable-feature option.
For further explains and demonstration of these topic, I highly recommend visiting
http://blogs.technet.com/keithcombs/archive/2007/11/04/windows-server-2008-core-screencast-series-watch-all-eight-parts-here.aspx
www.touchysoftwaresolutions.com




