- verITableLIFE - http://www.veritablelife.com -
Quick Tips for Administering Windows Server Core 2008
Posted By beau71 On February 17, 2009 @ 2:59 pm In Computers | No Comments
I recently added a Windows Server Core 2008 server to my fleet of servers. There is a huge difference between Server and Server Core, and that difference is that Server Core doesn’t have a graphical user interface. Since most people who administer a Windows network are used to a point and click environment, I wanted to share some quick tips on some command line administration that may be helpful for those Windows System Admins out there. The six main areas that I would like to talk about are: Windows Updates, Restarting the Server, Logging Off, Setting a Static IP Address, Joining a Domain, and Promoting the Server to a Domain Controller.
The first thing that I do whenever I deploy a new server is to make sure that it has the latest updates and patches. To perform this task on Server Core it takes a few extra steps.
- NET USE command: net use X: \\CLIENT\C$ /USER:DOMAIN\Username
- PUSHD command: PUSHD \\CLIENT\C$
- COPY X:\WUA_SearchDownloadInstall.vbs C:\
- NET USE command: net use X: /delete
- POPD command: popd
- cscript WUA_SearchDownloadInstall.vbs
Restarting a server was easy when there was a GUI, you would click start, go to shutdown, and select the restart option. In Server Core, it’s even easier. To perform a restart, or shutdown, you are going to use the SHUTDOWN command:
Restart Server: shutdown /r /f
Shutdown Server: shutdown /f
These are simple examples of how to shutdown and restart, for a more extensive look at what you can do to shutdown go to the SHUTDOWN command help menu:
- shutdown /?
Just like restarting a server, logging off of Windows Server Core is easier that it was back in the GUI days. To log off simply type the following command:
- logoff
To set a static IP address on a Server Core installation of Windows is a bit trickier than our previous administrative tasks. To set an IP address of a server, we will use the NETSH command. To perform this task follow these steps:
- netsh interface show interface
- netsh interface ipv4 set address name="IntName" source=static address=IP mask=SM gateway=DG
- netsh interface ipv4 add dnsserver name="IntName" address=DNSIP index=1
- ipconfig /all
In order to add your new Server Core server to your domain, you need to use the NETDOM command. We will first need the following information, the domain which you want to join (<dn>) and the user account that you would wish to use to authenicate the Server Core to the Domain (<un>). Once we have this information, type the following command:
- netdom join %computername% /Domain:<dn> /UserD:<un> /PasswordD:* /REBoot
I have saved the most fun for last. In previous versions of Windows, it was easy to promote a server to be a Domain Controller; Microsoft provided us with a nice GUI and made it easy. In Server Core it become a bit more tedious. To perform the this, we will use the DCPROMO command, which will be accomplished by following these steps:
- <Disk Drive>:\sources\ADPrep\adprep.exe /forestprep - <Disk Drive>:\sources\ADPrep\adprep.exe /domainprep
[Unattend] Unattendmode = fullunattend
[DCINSTALL] UserDomain=<domain> SafeModeAdminPassword=<Password> ReplicaOrNewDomain=Replica ReplicationSourceDC=<Current Domain Controller> ReplicaDomainDNSName=<domain> RebootOnCompletion=Yes
Save this file as “unattend.txt” and make sure that it is accessible from your Server Core server.
- dcpromo /unattend:unattend.txt
Those are my quick administration tips for managing a Windows Server Core server. Hope this article has been helpful.
Article printed from verITableLIFE: http://www.veritablelife.com
URL to article: http://www.veritablelife.com/2009/02/17/quick-tips-for-administering-windows-server-core-2008/
URLs in this post:
[1] download it here: http://www.veritablelife.com/uploads/WUA_SearchDownloadInstall.vbs
[2] Microsoft’s site: http://msdn.microsoft.com/en-us/library/aa387102(VS.85).aspx
[3] Image: http://www.addtoany.com/share_save
Click here to print.
Copyright © 2008 verITableLIFE. All rights reserved.