blog: Command line guide for Server Core
I have been doing a lot of server core builds as of late and here are list of commands I have found useful.
Set Interface ID
netsh interface set interface name=";Old Name"; newname=";New Name";
Set IP
netsh interface ipv4 set address name=";<ID>"; source=static address=<StaticIP> mask=<SubnetMask> gateway=<DefaultGateway>
Set DNS
netsh interface ipv4 add dnsserver name=";<Interface ID>"; address=<DNSIP> index=1
netsh interface ipv4 add dnsserver name=";ExtraNet"; address=1.1.1.1 index=1
Set Proxy
netsh winhttp set proxy proxy-server=";http=myproxy;https=sproxy:88″ bypass-list=";*.contoso.com";
Set Computer Name
# Use hostname from the command prompt to get current name
netdom renamecomputer <ComputerName> /NewName:<NewComputerName>
Join Domain
netdom join <ComputerName> /domain:<DomainName> /userd:<UserName> /passwordd:*
Set the Default scripting engine to cscript
cscript //H:Cscript
To Activate via KMS server
slmgr -ipk YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
slmgr -skms <KMSServer>:1688
slmgr -ato
slmgr -ato # Yes twice
Running Windows Update
http://msdn.microsoft.com/en-us/library/aa387102(VS.85).aspx
Disable Firewall
netsh advfirewall set allprofiles state off
Allow Remote Desktop
netsh advfirewall firewall set rule group=";remote desktop"; new enable=yes
Allow Remote Administration
netsh advfirewall firewall set rule group=";Remote Administration"; new enable=yes
Allow Remote Firewall Administration
netsh advfirewall firewall set rule group=?Windows Firewall Remote Management? new enable=yes
Allow Ping
netsh firewall set icmpsetting 8
Connect to remote Server Core w/ out domain (this is done on management box)
cmdkey /add:<ServerCore> /user:<UserName> /pass:<password>
Export Security Policy
secedit /export /db secedit.sbd /cfg <Policy File Name>
Import Security Policy
secedit /configure /db secedit.sdb /cfg sctest.inf /overwrite
Allow Remote Disk Management
THIS HAS to be done on BOTH SIDES!!!
netsh advfirewall firewall set rule group=";Remote Volume Management"; new enable=yes
Allow Remote Device Mgr
1. On a Windows Vista or full Server installation, start the Group Policy Object MMC snap-in
2. Connect to the Server Core installation
3. Navigate to Computer ConfigurationAdministrative TemplatesDevice Installation
4. Enable ?Allow remote access to the PnP interface?
5. Restart the Server Core installation
or
Via GPO
Things to Note:
- Firewall rules will have to be re-adjusted after Domain Join
Good Links for more info
Server Core Installation Option of Windows Server 2008 Step-By-Step Guide:
http://technet.microsoft.com/en-us/library/cc753802.aspx#bkmk_managingservercore
Windows Server 2008 Network Shell (Netsh) Technical Reference:
http://www.microsoft.com/downloads/details.aspx?FamilyID=f41878de-2ee7-4718-8499-2ef336db3df5
-Volume Activation 2.0 Deployment Guide
http://technet.microsoft.com/en-us/library/cc303280.aspx#
Product SKUs for Volume Licensing
==================================
Operating System Edition || Product Key
Windows Vista Business || YFKBB-PQJJV-G996G-VWGXY-2V3X8
Windows Vista Business N || HMBQG-8H2RH-C77VX-27R82-VMQBT
Windows Vista Enterprise || VKK3X-68KWM-X2YGT-QR4M6-4BWMV
Windows Vista Enterprise N || VTC42-BM838-43QHV-84HX6-XJXKV
Windows Server 2008 Datacenter || 7M67G-PC374-GR742-YH8V4-TCBY3
Windows Server 2008 Datacenter without Hyper-V || 22XQ2-VRXRG-P8D42-K34TD-G3QQC
Windows Server 2008 for Itanium-Based Systems || 4DWFP-JF3DJ-B7DTH-78FJB-PDRHK
Windows Server 2008 Enterprise || YQGMW-MPWTJ-34KDK-48M3W-X4Q6V
Windows Server 2008 Enterprise without Hyper-V || 39BXF-X8Q23-P2WWT-38T2F-G3FPG
Windows Server 2008 Standard || TM24T-X9RMF-VWXK6-X8JC9-BFGM2
Windows Server 2008 Standard without Hyper-V || W7VD6-7JFBR-RX26B-YKQ3Y-6FFFJ
Windows Web Server 2008 || WYR28-R7TFJ-3X2YQ-YCY4H-M249D
tshell :: Apr.24.2009 :: Active Directory, All :: No Comments »
Leave a Reply
You must be logged in to post a comment.

