Sunday, October 14, 2007

Managing Windows 2008 Server Core Local Settings

To add hardware to Windows Server 2008
1.If the driver for the hardware is included in Windows Server 2008, Plug and Play will start automatically and install the driver.
2.At a command prompt, open the folder where the driver files are located, and then run the following command:
pnputil -i -a <driverinf>
To add a user to the local Administrators group
1.At a command prompt, type:
net localgroup Administrators /add <domain>\<username>
To remove a user from the local Administrators group
1.At a command prompt, type:
net localgroup Administrators /delete <domain\username>
To disable a device driver
1.At a command prompt, type:
sc delete <service_name>
To obtain a list of drivers that are installed on the server
1.At a command prompt, type:
sc query type= driver
To manage event logs
1.To list event logs type:
wevtutil el
2.To query events in a specified log type:
wevtutil qe /f:text <log name>
3.To export an event log type:
wevtutil epl <log name>
4.To clear an event log type:
wevtutil cl <log name>
To list the running services
1.At a command prompt, type one of the following:
sc query
or
net start
To start a service
1.At a command prompt, type one of the following:
sc start <service name>
or
net start <service name>
To stop a service
1.At a command prompt, type one of the following:

Monday, October 8, 2007

Networking and firewall

At a command prompt, type:

1.Configure your server to use a proxy server.
netsh Winhttp set proxy <Sername>:<port number>

2.Configure your server to bypass the proxy for internet addresses.
netsh winttp set proxy <servername>:<port number>bypass-list="<local>"

3.Display or modify IPSEC configuration.
netsh ipsec

4.Display or modify NAP configuration.
netsh nap

5.Display or modify IP to physical address translation.
arp

6.Display or configure the local routing table.
route

7.View or configure DNS server settings.
nslookup

8.Display protocol statistics and current TCP/IP network connections.
netstat

9.Display protocol statistics and current TCP/IP connections using NetBIOS over TCP/IP (NBT).
nbtstat

10.Display hops for network connections.
pathping

11.Trace hops for network connections.
tracert

12.Display the configuration of the multicast router.
mrinfo

13.Enable remote administration of the firewall.
netsh advfirewall firewall set rule group=”Windows Firewall Remote Management” new enable=yes