0% found this document useful (0 votes)
126 views

Administering A Server Core Installation

This document provides guidance on common administrative tasks for a Server Core installation in Windows Server 2008. It discusses configuration and installation, networking and firewall settings, installing updates, managing services, viewing event logs, and disk and file system management. Administrative actions like joining a domain, configuring network settings, installing updates, and managing services can be performed at the command line using tools like NETDOM, IPCONFIG, WUSA, SC, and WEVTUTIL.

Uploaded by

jayaraj_chintala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views

Administering A Server Core Installation

This document provides guidance on common administrative tasks for a Server Core installation in Windows Server 2008. It discusses configuration and installation, networking and firewall settings, installing updates, managing services, viewing event logs, and disk and file system management. Administrative actions like joining a domain, configuring network settings, installing updates, and managing services can be performed at the command line using tools like NETDOM, IPCONFIG, WUSA, SC, and WEVTUTIL.

Uploaded by

jayaraj_chintala
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Administering a Server Core installation

Administering a Server Core installation


This section focuses on common administrative tasks that are performed locally or remotely from a command prompt. The commands are grouped into the following sections:

Configuration and installation Networking and firewall Updates and error reporting Services, processes and performance Event logs Disk and file system Hardware Remote administration

Prerequisites for administering a Server Core installation


To complete this task, you need:

A computer on which you have installed and configured a Server Core installation of Windows Server 2008. An administrator user account and password for the server running a Server Core installation.

Known issues for administering a Server Core installation

Server Core installation supports Windows Installer in quiet mode so that you can install tools and utilities from Windows Installer files. If you need to write a script for managing a server running a Server Core installation, which requires the secure inclusion of an administrative password, see the scripting column on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkID=56421).

Steps for administering a Server Core installation


The following procedures summarize common administrator tasks for a server running a Server Core installation.

Many of these procedures and commands are summarized in a job aid that you can download and print to take with you for use in the field. Separate versions for Windows Server 2008 and Windows Server 2008 R2 are available at http://go.microsoft.com/fwlink/?LinkId=151984. Configuration and installation

Task Set the local administrative password At a command prompt, type:

Steps

net user administrator * 1. At a command prompt, type on one line: netdom join %computername% /domain:<domain> /userd:<domain>\username> /passwordd:* 2. Restart the computer.

Join a computer to a domain

Confirm that the domain has changed Remove a computer from a domain Add a user to the local Administrators group.

At a command prompt, type: set At a command prompt, type: netdom remove At a command prompt, type:

net localgroup Administrators /add <domain>\<username> Remove a user from the At a command prompt, type: local Administrators group net localgroup Administrators /delete <domain\username> At a command prompt, type: Add a user to the local computer net user <domain\user name> /add * At a command prompt, type: Add a group to the local computer net localgroup <group name> /add At a command prompt, type: Change the name of a domain-joined netdom renamecomputer %computername% /NewName:<new computer computer name> /userd:<domain\username> /passwordd:* At a command prompt, type: Confirm the new computer name set

1. At a command prompt, type: Change the name of a computer in a work group netdom renamecomputer <currentcomputername> /NewName:<newcomputername> 2. Restart the computer. At a command prompt, type: Disable paging file management wmic computersystem where name="<computername>" set AutomaticManagedPagefile=False At a command prompt, type: wmic pagefileset where name=<path/filename> set InitialSize=<initialsize>,MaximumSize=<maxsize> Configure the paging file Where: path/filename is the path to and name of the paging file initialsize is the starting size of the paging file in bytes. maxsize is the maximum size of the page file in bytes. 1. At a command prompt, type: ipconfig /all 2. Record the relevant information or redirect it to a text file (ipconfig /all >ipconfig.txt). 3. At a command prompt, type: netsh interface ipv4 show interfaces Change to a static IP address. 4. Verify that there is an interface list. 5. At a command prompt, type: netsh interface ipv4 set address name <ID from interface list> source=static address=<preferred IP address> gateway=<gateway address> 6. Verify by typing ipconfig /all at a command prompt and checking that DHCP enabled is set to No. Set a static DNS 1. At a command prompt, type:

address. netsh interface ipv4 add dnsserver name=<name of primary DNS server> address=<IP address of the primary DNS server> index=1 2. At a command prompt, type: netsh interface ipv4 add dnsserver name=<name of secondary DNS server> address=<IP address of the secondary DNS server> index=2 3. Repeat as appropriate to add additional servers. 4. Verify by typing ipconfig /all and checking that all the addresses are correct. 1. At a command prompt, type: Change to a DHCPprovided IP address from a static IP address. netsh interface ipv4 set address name=<IP address of local system> source=DHCP 2. Verify by typing Ipconfig /all and checking that DCHP enabled is set to Yes. At a command prompt, type: Enter a product key Activate the server locally. slmgr.vbs ipk <product key> At a command prompt, type: slmgr.vbs -ato 1. At a command prompt, type: cscript slmgr.vbs ipk <product key><server name><username><password> 2. At a command prompt, type: Activate the server remotely. cscript slmgr.vbs -ato <servername> <username> <password> 3. Retrieve the GUID of the computer by typing cscript slmgr.vbs -did 4. Type cscript slmgr.vbs -dli <GUID> 5. Verify that License status is set to Licensed (activated).

Note If Slmgr.vbs fails to activate the computer, the resulting error message advises you to run Slui.exe, along with the error code for more information. Slui.exe is not included in Server Core installationsit is available in Windows Vista, Windows 7,and full installations of Windows Server 2008 and Windows Server 2008 R2. Networking and firewall

Task

Steps At a command prompt, type: netsh Winhttp set proxy <servername>:<port number> Note Server Core installations cannot access the Internet through a proxy that requires a password to allow connections.

Configure your server to use a proxy server.

At a command prompt, type: Configure your server to bypass the proxy for internet addresses. netsh winttp set proxy <servername>:<port number>bypass-list="<local>" At a command prompt, type: Display or modify IPSEC configuration. netsh ipsec At a command prompt, type: Display or modify NAP configuration. netsh nap At a command prompt, type: Display or modify IP to physical address translation. arp At a command prompt, type: Display or configure the local routing table. route At a command prompt, type: View or configure DNS server settings. nslookup At a command prompt, type: Display protocol statistics and current TCP/IP network connections. netstat

Display protocol statistics and current At a command prompt, type: TCP/IP connections using NetBIOS over TCP/IP (NBT). nbtstat At a command prompt, type: Display hops for network connections. pathping At a command prompt, type: Trace hops for network connections. tracert At a command prompt, type: Display the configuration of the multicast router. mrinfo At a command prompt, type: Enable remote administration of the firewall. netsh advfirewall firewall set rule group=Windows Firewall Remote Management new enable=yes

Updates, error reporting, and feedback

Task Install an update.

Steps At a command prompt, type: wusa <update>.msu /quiet At a command prompt, type:

List installed updates systeminfo 1. Type at a command prompt: expand /f:* <update>.msu c:\test 2. Navigate to c:\test\ and open <update>.xml in a text editor. Remove an update. 3. In <update>.xml, replace Install with Remove and save the file. 4. At a command prompt, type: pkgmgr /n:<update>.xml

At a command prompt:

To verify the current setting, type: cscript scregedit.wsf /AU /v

Configure automatic updates.

To enable automatic updates, type: cscript scregedit.wsf /AU 4

To disable automatic updates, type: cscript scregedit.wsf /AU 1

At a command prompt:

To verify the current setting, type: serverWerOptin /query To automatically send detailed reports, type: serverWerOptin /detailed

Enable error reporting.

To automatically send summary reports, type: serverWerOptin /summary

To disable error reporting, type: serverWerOptin /disable

At a command prompt:

To verify the current setting, type: serverCEIPOptin /query

Participate in the Customer Experience Improvement Program (CEIP).

To enable CEIP, type: serverCEIPOptin /enable

To disable CEIP, type: serverCEIPOptin /disable

Services, processes, and performance

Task

Steps At a command prompt, type either of the following:


List the running services.

sc query net start

At a command prompt, type either of the following: Start a service.


sc start <service name> net start <service name>

At a command prompt, type either of the following: Stop a service.


sc stop <service name> net stop <service name>

Retrieve a list of running applications and associated processes.

At a command prompt, type: tasklist 1. Use the tasklist command to retrieve the process ID (PID). 2. At a command prompt, type: taskkill /PID <process ID> At a command prompt, type:

Stop a process forcibly.

Start Task Manager. taskmgr Manage the performance counters and logging with commands such as typeperf, logman, relog, tracerprt. Event logs See http://go.microsoft.com/fwlink/?LinkId=84872.

Task

Steps

At a command prompt, type: List event logs. wevtutil el At a command prompt, type: Query events in a specified log. wevtutil qe /f:text <log name> At a command prompt, type: Export an event log. wevtutil epl <log name> At a command prompt, type: Clear an event log. wevtutil cl <log name> Disk and file system

Task Manage disk partitions.

Steps For a complete list of commands, at a command prompt, type: diskpart /? For a complete list of commands, at a command prompt, type: diskraid /? For a complete list of commands, at a command prompt, type: mountvol /? For a complete list of commands, at a command prompt, type: defrag /? At a command prompt, type: convert <volume letter> /FS:NTFS For a complete list of commands, at a command prompt, type: compact /? For a complete list of commands, at a command prompt,

Manage software RAID.

Manage volume mount points.

Defragment a volume.

Convert a volume to the NTFS file system.

Compact a file. Administer open files.

type: openfiles /? For a complete list of commands, at a command prompt, type: vssadmin /? For a complete list of commands, at a command prompt, type: fsutil /? At a command prompt, type: Verify a file signature. sigverif /? For a complete list of commands, at a command prompt, type: icacls /? Hardware

Administer VSS folders.

Administer the file system.

Take ownership of a file or folder.

Task

Steps 1. Copy the driver to a folder at %homedrive%\<driver folder>. 2. At a command prompt, type: pnputil -i -a %homedrive%\<driver folder>\<driver>.inf 1. For a list of loaded drivers, at a command prompt, type:

Add a driver for a new hardware device.

Remove a driver for a hardware device.

sc query type= driver 2. At the command prompt, type: sc delete <service_name>

Tags : Add a tag Community Content Add new content

Annotations

wmic pagefileset has Case Sensitivity Issues stryqx | Edit | Show History <path/filename> for wmic pagefileset is has case sensitivity issues. The drive letter can be in capitals, but the filename and extension needs to be in lower case. e.g. "C:\pagefile.sys" is fine, but "C:\Pagefile.sys" will generate a "Provider does not support put extensions" error. Covered in the following blog post: http://blog.mpecsinc.ca/2011/09/wmic-pagefileset-create-errorprovider.html Tags : pagefile (x) wmic (x) Add a tag Flag as ContentBug remove a computer from a domain Julien.G | Edit | Show History Remove a computer from a domain At a command prompt, type:netdom remove -> At a command prompt, type:netdom remove computername Tags : domain (x) netdom (x) Add a tag Flag as ContentBug Error in Change to static IP address Step 5 is missing a '='

Jo EVENS | Edit | Show History

netsh interface ipv4 set address name <ID from interface list> source=static address=<preferred IP address> gateway=<gateway address> should be netsh interface ipv4 set address name=<ID from interface list> source=static address=<preferred IP address> gateway=<gateway address> Otherwise the command will fail with "The filename, directory name, or volume label syntax is incorrect." Tags : Add a tag Flag as ContentBug error in "configure the paging file" PlateSpinner | Edit | Show History Above it says that you should enter the InitialSize and MaximumSize in bytes. That is incorrect. It seems to accept it only in megabytes. When I tried bytes, this is what I got:
C:\>wmic pagefileset set InitialSize="805306368",MaximumSize="805306368" Updating property(s) of '\\CORE\ROOT\CIMV2:Win32_PageFileSetting.Name="C:\\pagefile.sys"' ERROR: Description = Value out of range

When I tried megabytes, this is the response I got:


C:\>wmic pagefileset set InitialSize="768",MaximumSize="768" Updating property(s) of

'\\CORE\ROOT\CIMV2:Win32_PageFileSetting.Name="C:\\pagefile.sys"' Property(s) update successful.

It took me a couple minutes to figure that out so I thought I'd be nice and post it here.

You might also like