Configurate Windows 2008 Server Core

Here are som useful stuff when installing and configurate Windows 2008 Server Core.

Network
Show network interfaces
> netsh interface ipv4 show interfaces

Rename network interface
> netsh interface set interface name = <interface name> newname = <new interface name>

Change static IP-address
> netsh interface ipv4 set adress ”<interface name>” static 192.168.0.1 255.255.25.0 192.168.0.1

Change to DHCP
> netsh interface ipv4 set addresses name=”<interface name>” source=dhcp

Show IP-address
> netsh interface ipv4 show addresses

Add primery DNS server
> netsh interface ipv4 set dnsserver name=”<interface name>” source=static address=<primery dns servers ip-address>

Add secondary DNS server
> netsh interface ipv4 add dnsserver name=”<interface name>” address=<secondary dns servers ip-address>

Enable Remote Administration in firewall
> netsh advfirewall firewall set rule group=”Remote Administration” new enable=yes

Enable Windows Firewall Remote Administration in firewall
> netsh advfirewall firewall set rule group=”Windows Firewall Remote Management” new enable=yes

Disable firewall
> netsh firewall set opmode disable

Enable firewall
> netsh firewall set opmode enable

Show computername
> hostname

Change computername
> netdom renamecomputer <computer name> /newname:<new computer name>

Change name of a domain-joined server
> netdom renamecomputer %computername% /NewName:<new computer name> /userd:<domain\username> /password:*

Join a domain
> netdom join %computername% /domain:<domain> /userd:<username> /passwordd:*

Remove computer from domain
> netdom remove

Enable Remote Desktop. Only support Windows Vista/2008 clients
> Cscript %windir%\system32\SCRegEdit.wsf /ar 0

Enable Remote Desktop. Support Windows XP/2003/Vista/2008 clients
> Cscript %windir%\system32\SCRegEdit.wsf /ar 0
> Cscript %windir%\system32\SCRegEdit.wsf /cs 0

Users, Groups & seciruity
Add a user to the local Administrators group
> net localgroup Administrators /add <domain>\<username>

Remove a user from the local Administrators group
> net localgroup Administrators /delete <domain>\<username>

Change administrator password
> net user administrator *

Show security settings on a folder or file
> cacls <file or folder path>

KMS (
Key Management Service)
Install KMS
> slmgr -ipk <KMS key>

KMS activation
> slmgr -ato

Display KMS license information
> slmgr – dlv

Check for KMS in DNS
> nslookup -type=srv _vlmcs._tcp

Misc
Configure the paging file
>wmic pagefileset where name=”<path/filename>” set InitialSize=<initialsize>,MaximumSize=<maxsize>

Reboot server
> shutdown /r /t 0

Shutdown server
> shutdown /s /t 0

List event logs type
> wevtutil el

List running services
> sc query
> net start

Start a service
sc start <service name> or net start <service name>

Stop a service
> sc stop <service name>

> net stop <service name>

Stop/kill a process
> taskkill /PID <process ID>

Move file
> move “z:\Windows6.0-KB950050-x64.msu” “c:\Windows6.0-KB950050-x64.msu”

Copy file
> copy “z:\Windows6.0-KB950050-x64.msu” “c:\Windows6.0-KB950050-x64.msu”

Roles
Show server roles
> oclist

Install server roles
> ocsetup

example:
> start /w ocsetup Microsoft-Hyper-V

Hyper-V
Install virtual machine integrated components
Mount integrated components cd from action menu.
D:\support\amd64\setup.exe or D:\support\x86\setup.exe

Update Hyper-V
Download and copy Windows6.0-KB950050-x64.msu to your core server.
Example:
Download Windows6.0-KB950050-x64.msu to your fileserver.

From Core server:
> net use z: \\fileserver\share\
> Z:
> copy Windows6.0-KB950050-x64.msu c:\
> C:
> net use z: delete
> Windows6.0-KB950050-x64.msu


Posted

in

, ,

by

Tags:

Comments

4 responses to “Configurate Windows 2008 Server Core”

  1. AndrewBoldman Avatar

    I really liked this post. Can I copy it to my site? Thank you in advance.

  2. Kelly Brown Avatar

    Hi, gr8 post thanks for posting. Information is useful!

  3. Daniel Avatar

    AndrewBoldman, yes you can copy this information. Please refer to headadmin.net in the text.

  4. Schedule Avatar

    Maybe you could edit the post subject Configurate Windows 2008 Server Core | headadmin.net to something more better for your subject you make. I loved the the writing even sononetheless.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.