Windows Server 2008 Domain Join with netdom.exe

16 10 2007

The following command will join the NET-IIS-01 workload into the Networknet.nl forest domain.

  1. netdom.exe join NET-IIS-01 /domain:Networknet.nl /userD:administrator /passwordD:*

Enter the Administrator password and after the netdom has finished reboot the server with shutdown.exe /r /t5.

Windows Server 2008 Core Domain Join



Windows Server 2008 Core IPv4 configuration

16 10 2007

View the installed interfaces 

netsh interface ipv4 show interfaces

Configure the fixed IP address, netmask and the default gateway

netsh interface ipv4 set address name=”nr” source=static address=192.168.1.1 mask=255.255.255.0 gateway=192.168.1.254

Configure the DNS server

netsh interface ipv4 add dnsserver name=”nr” address=192.168.1.1 index=1



Windows Server 2008 Core License Activiation by Script

15 10 2007

Windows 2008 Core server does not support GUI and right clicking your computer and use the control panel options to activate the server is not available anymore.  Copy the script below and supply your own license key code. Open notepad from command prompt. Eg notepad license.cmd; paste the the code below with your own key; save the file and run the cmd script.

  1. @echo off
  2.  
  3. REM Created: Ivan1980@networknet.nl
  4. REM Windows Server 2008 Core License Script
  5.  
  6. cscript C:\Windows\System32\slmgr.vbs -ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
  7.  
  8.  cscript C:\Windows\System32\slmgr.vbs -ato
  9.  
  10.  cscript C:\Windows\System32\slmgr.vbs -xpf

Windows2008Activate



Rename Windows Server 2008 Core with netdom.exe

2 10 2007

Type the hostname.exe command line to see the current computername which has been generated by the Windows setup. Select the computername and press enter on the keyboard.

c:\Users\Administartor>hostname

win2k8-vm

 

Now we are going to rename the server and prepare it for dcpromo process.

c:\Users\Administartor> netdom renamecomputer win2k8-vm /newname:NET-DC-01

Click Y to reboot or enter shutdown /r /t 5

 



Windows Server 2008 Core DC install Windows 2003 forest

6 09 2007

Today I installed my first Windows Server 2008 Core server and I want to run the server as a Domain Controller. Before I could proceed the with my test domain (Windows 2003) I was forced to run the adprep utility for Windows\sources\adprep directory.

  • Copy the \Sources\adrep from the Windows Server 2008 dvd and logon on to your schema dc role server.
  • Open CMD.exe box
  • Locate the directory and run adprep.exe /forestprep
  • Run adprep.exe /domainprep /gpprep after the forest prep has finished. Make sure your domain functional level  is configured in Windows 2003 native mode.

 

[DCInstall]
; Replica DC promotion
ReplicaOrNewDomain=Replica
ReplicaDomainDNSName=Networknet.nl
SiteName=Site-Test
InstallDNS=yes
ConfirmGc=Yes
DNSDelegation=No
UserDomain=networknet.nl
UserName=Administrator
Password=
DatabasePath=C:\Windows\NTDS
LogPath=C:\Windows\NTDS
SYSVOLPath=C:\Windows\SYSVOL
; Set SafeModeAdminPassword to the correct value prior to using the unattend file
SafeModeAdminPassword=
; Run-time flags (optional)
; CriticalReplicationOnly=Yes
; RebootOnCompletion=Yes
TransferIMRoleIfNecessary=No

ntds_dcpromo_newdc.txt

  • Install DNS Server by running ocsetup DNS-Server-Core-Role
  • dcpromo /unattend:ntds_dcpromo_newdc.txt