This post will show you how to use command line to rename your domain controller to alternate name. Note that alternate name must be available for DC we want to operate against. Lets say you have domain controller named “TestDC1″ with alternate name “TestDC2″ assigned to it. If you want to make “TestDC2″ primary name for your domain controller open command line on your Windows server 2003 and type:
netdom TestDC1 dc /makeprimary: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) .
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) .
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
This post will show you how to view system information using command line. To do it open command line on your Windows server 2003 and type:
systeminfo
To view system configuration on remote server named “Testserver” type:
systeminfo /s Testserver
This post will show how to list processes used by specific session on your Windows server 2003 using command line.
First you need to view current sessions on server named “Testserver”. For that open command line and type:
query session /server:Testserver
Note the ID number of the session you want to use for process list. To list processes for specific session type:
query process /ID:<ID number>
This post will show how to reset session on your Windows server 2003 using command line.
First you need to view current sessions on server named “Testserver”. For that open command line and type:
query session /server:Testserver
Note the ID number of the session you want to reset. To reset session on server named “Testserver” type:
reset session <ID number> /server:Testserver
This post will show how to view sessions on your Windows server 2003 using command line. To view sessions on server named “Testserver” open command line and type:
query session /server:Testserver
Posted by aidas | Posted in Command line, Windows 2008 | Posted on 06-05-2009
0
I`ll show you how to delete all printing jobs on your Windows server 2008 using command line. For that we will use Prnqctl.vbs script which by default is located on your Windows server 2008 after install. To delete all jobs on printer named “Testprinter” open command line and type:
cscript %windir%\System32\Printing_Admin_Scripts\Prnqctl.vbs -x -p Testprinter
Posted by aidas | Posted in Command line, Windows 2008 | Posted on 06-05-2009
0
I`ll show you how to list installed printers on your Windows server 2008 using command line. For that we will use Prnmngr.vbs script which by default is located on your Windows server 2008 after install. To list all installed printers on server named “Testserver” open command line and type:
cscript %windir%\System32\Printing_Admin_Scripts\Prnmngr.vbs -l