This post will show you how to use command line tool netdom and add alternate name to your domain controller running on Windows server 2003. Lets say we have domain controller named “TestDC1.testdomain.com” and we want to add alternate name “TestDC2″. To do it open command line and type:
netdom TestDC1 dc /add:TestDC2.testdomain.com
Note that netdom is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .
This post will show you how to join member server to domain and place it to specific organizational unit (OU) using command line. Lets say we have server named “Testserver” and it must be joined to domain testdomain.com. Also we want to place it in OU named “servers”. To do it open command line on your Windows server 2003 and type:
netdom add /d:testdomain.com testserver /OU:OU=servers,DC=testdomain,DC=com
Note that netdom is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .
This post will show you how to check if remote port is listening for incoming connections. Lets say we want to query server named “testserver” to check if TCP port 3389 (Remote desktop connection) is listening. Open command line and type:
portqry /n testserver /p TCP /e 3389
Note that portqry is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .
If you want to capture network traffic on your Windows server 2003 this how to will show you the way to go. For this case we can use nice utility from Windows support tools netcap. When first run this tool will install Network Monitoring Driver on your server. Ok, lets say we want to monitor traffic for 15min and save all output to D:\monitoring directory. Open command line and type:
netcap /f:D:\monitoring /l:00:15:00
If you want to get rid of Network Monitoring Driver after you`ll finish traffic capture open command line and type:
netcap /remove
Note that netcap is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .
In this post you`ll see how to export DNS zone resource records list to a file using command line tool dnscmd. Lets say want to export test.testdomain.com to file named test.testdomain.com.dns. To do it open command line on your Windows server 2003 and type:
dnscmd testdomain.com /zoneexport test.testdomain.com test.testdomain.com.dns
Note that dnscmd is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools directory) .
If you have network connectivity problems on your Windows server 2003 this how to is for you. Lets say we have problem with connecting to network resource and want to troubleshoot this. Open command line on your server and type:
netdiag
These tests are performed by running netdiag:
# Netcard queries test
# IpConfig test
# Autoconfiguration test (APIPA)
# NetBT name test
# WINS Service test
# Default gateway test
# NetBT name test
# WINS Service test
# Domain membership test
# NetBT transports test
# Autonet address test (APIPA)
# IP loopback ping test
# Default gateway test
# NetBT name test
# Winsock test
# DNS test
# Trust relationship test
# Kerberos test
# LDAP test
# Bindings test
# WAN configuration test
# Modem configuration test
# IP Security test
# Redir and Browser test
# DC discovery test
# DC list test
# Trust relationship test
# Kerberos test
# LDAP test
# Bindings test
# WAN configuration test
# Modem configuration test
# IP Security test
Note that netdiag is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools) .
This post will show you how to check if your domain controller is healthy and is functioning in right way. Lets say we want to run check against server named “TestDC”. For this we will use domain admin account “testadmin” with password “Pa$$w0rd”. To start check open command line on your Windows server 2003 and type:
dcdiag /s:TestDC /u:testdomain.com\testadmin /p:*
After you will hit Enter password prompt will appear.
Note that dcdiag is part of Windows server 2003 support tools. They can be found on your OS CD (Support\Tools) .
This post will show you how to delete share using command line. Lets say you have shared folder D:\Test named “TestDocs”. To remove sharing open command line on your Windows server 2003 and type:
net share TestDocs /DELETE
If you want to remove share from remote server, for example “Testserver”, type:
net share TestDocs \\Testserver /DELETE