Unattended installation of a Domain Controller

So far I’ve written about the Homelab hardware I’ve purchased and some basic configurations for my Storage and XenServers. And with the post on Sysprepping a Windows 2008 Server, I’m ready to build my Windows 2008 Test environment. With a (sysprepped) Windows 2008 Template for my VMs, I can easily clone the needed Servers and get my lab up and running and build a Windows Domain with multiple Servers and ServerRoles.

The first step in building my Windows Domain is to convert a Windows Server 2008 Member Server into a Domain Controller with the dcpromo.exe command.

 

This post is my own personal mental note for the unattended installation of my Windows Server 2008 Domain Controllers.

 
Read the rest of this entry »

Tags: , ,

Automatically build a Windows 2008 Stand-alone Domain

The last nine months at work have been spent on a project to create a fully automatic installation of a stand-alone Windows Servers infrastructure. Nothing fancy, just the basic Serverroles one might need in a stand-alone Domain.

I had alot of fun transforming all the needed commandlines, scripts and settings into RES Wisdom Modules and Tasks. So after that experience I’ve decided to recreate a new installation set for my own HomeLab. So alot of new posts will be describing the automation of Server Role and software installations and configurations.

I’ve found myself a new Quest!

diskpart.exe CommandLine Interface

The easiest way to connect to you iSCSI storage LUNs from Windows Server 2008 is by using the iSCSI initiator GUI. With the GUI you can easily make a connection with your iSCSI Storage by giving the ip-address and dynamically discover the LUNs (or Volumes) it has to offer.

As I’m working on scripts to automate the installation and configuration of Windows Server 2008 systems, I was also looking for a way to configure the local disks and volumes of a Server, without having to use the GUI and manual instructions. Luckily Windows offers some nice tools for scripting. The scripting and configuration of the local disks and volumes can best be done with diskpart.exe. Which offers it’s own commandline interface and the option to use a preconfigured script with all the commands.

 

This post offers step-by-step instructions for the diskpart.exe command.

 
Read the rest of this entry »

Tags: , ,

Add Windows 2008 Firewall rule with CLI

For security reasons it is wise to keep your Windows firewall turned on. Even internal networks are not free of hack attempts. So to make sure the installed programs are functioning with the firewall turned on, you have to do your research on the communications that will occure between server and client (or other servers).
With an interest in automated installations, scripted installations and other unattended installations, I was looking for a commandline interface that would allow me to script the creation of the neccessary Windows Firewall rules for my applications.

 

For a list of known TCP and UDP IP ports you can easily check wikipedia or The Internet Assigned Numbers Authority (IANA).
 

 

This post is my own personal mental note for creating Windows Firewall rules with the NETSH commandline interface.

 
Read the rest of this entry »

Tags: , ,

Sysprep Windows Server 2008

With Windows Server 2008 the newSID tool can no longer be used in combination with imaged deployment of servers. A deployment method that becomes even more important in Server Virtualization and Provisioned Infrastructures. Microsoft has improved the sysprep tooling by using XML config files and introducing the Microsoft Windows Automated Installation Kit (WAIK) to create the unattended answer files. For Windows Vista SP1 and Windows Server 2008, the WAIK version 1.1 can be downloaded here.

 

For Windows Server 2008 R2 and Windows 7 a different WAIK is to be used, which can be found here.

 

 

This post offers step-by-step instructions for the use of the WAIK to setup sysprep.

 

Read the rest of this entry »

Tags: ,