Tuesday, October 21, 2008

Commands for Server core

1. IP- address and DNS-Server settings:
netsh int ip show config : show actual configuration
netsh int ip set address "interface-name" static 192.168.1.200 255.255.255.0 192.168.1.253 1 : configure static address
netsh int ip set dnsserver "interface-name" static 192.168.1.200 primary : configure primary DNS-server (use the address of the Administration Server)

2. rename the core-server:
C:\netdom renamecomputer oldname /NewName:newname

3. change product key ( if necessary):
cscript.exe c:\windows\system32\slmgr.vbs -ipk

4. activate machine:
cscript.exe c:\windows\system32\slmgr.vbs -ato

5. join machine to the EBS domain:
netdom join "computername of core-machine" /domain: /userd: /passwordd:

6. reboot:
shutdown /r /t 0

7. connect to the messaging server, put in a Windows Server 2008 DVD (Standard or Enterprise)
and from the source\adprep directory on the DVD start "adprep /domainprep"

8. on the core server use the following command to promote the machine as DC:
dcpromo /unattend /RebootOnCompletion:Yes /ReplicaDomainDNSName: /ReplicaOrNewDomain:Replica /ReplicationSourceDC: /SafeModeAdminPassword: (one line!)

9. reboot after installation:
shutdown /r /t 0

10. now you should have a third DC:
additional work:

9. activate remote desktop on server-core:
C:\windows\system32\cscript scregedit.wsf /AR 0

10. activate WinRM for server-core:
winrm quickconfig : creates a http-listener for winrm und and the necessary filewall exception

No comments:

Blog Archive