Chris Beams’s Blog

Active Directory and more….

Server Core – DC Promotion

Posted by chrisbeams on May 17, 2009

I have attached a simple answer.txt file below that I have used before for Server Core Promotion:

To set the network up you need the network ID (which tends to be 2)

netsh interface ipv4 show interfaces (this gives you the network id)
netsh interface ipv4 set address name=”2″ source=static address=192.168.100.202 mask=255.255.255.0 gateway=192.168.100.1
netsh interface ipv4 add dnsserver name=”2″ address=192.168.100.201 index=1

If you need RDP Access you need to do the following:

  • WMIC RDTOGGLE Where ServerName=”%COMPUTERNAME%” Call SetAllowTSConnections  AllowTSConnections=”1″
  • NetSH FireWall Set PortOpening TCP 3389 “Remote Desktop”

Dont forget to  Rename the machine to something more useful:

  • WMIC ComputerSystem Where Name=”%COMPUTERNAME% Call Rename Name =”NewNameYouWant”

And then the answer.txt file

This one would create a normal DC with DNS thats also a GC in an existing Domain,

[DCINSTALL]
InstallDNS=Yes
ConfirmGc=Yes
CriticalReplicationOnly=No
DisableCancelForDnsInstall=No
Password=P@ssw0rd
RebootOnCompletion=No
ReplicaDomainDNSName=W2K8.COM
ReplicaOrNewDomain=Replica
SafeModeAdminPassword=P@ssw0rd
SiteName=London
UserDomain=W2K8.COM
Username=administrator

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: