Windows server 2003 – How to rename your domain controller using alternate name

Posted by aidas | Posted in Active directory, Command line, Tools, Windows 2003 | Posted on 07-05-2009

0

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) .

Windows server 2003 and Windows XP – How to join server to domain via command line

Posted by aidas | Posted in Active directory, Command line, Windows 2003, Windows XP | Posted on 07-05-2009

0

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) .

Windows server 2003 – How to check remote port availability

Posted by aidas | Posted in Command line, Networking, Tools, Windows 2003 | Posted on 07-05-2009

0

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) .

Windows server 2003 – How to export DNS zone resource records list to file

Posted by aidas | Posted in Command line, Tools, Windows 2003 | Posted on 07-05-2009

0

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) .

Windows server 2003/2008 – How to check if your domain controller (DC) is healthy

Posted by aidas | Posted in Active directory, Command line, Windows 2003, Windows 2008 | Posted on 07-05-2009

0

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) .

Windows server 2003 and Windows XP – How to delete share via command line

Posted by aidas | Posted in Command line, Windows 2003, Windows XP | Posted on 07-05-2009

0

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

Windows server 2003/2008 and Windows XP – How to view system information via command line

Posted by aidas | Posted in Command line, Windows 2003, Windows 2008, Windows XP | Posted on 06-05-2009

0

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

Windows server 2003/2008 – How to list processes used by specific session

Posted by aidas | Posted in Command line, Windows 2003, Windows 2008 | Posted on 06-05-2009

0

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>


Windows server 2003/2008 – How to reset session using command line

Posted by aidas | Posted in Command line, Networking, Windows 2003, Windows 2008 | Posted on 06-05-2009

0

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

Windows server 2003/2008 – How to view sessions on your server via command line

Posted by aidas | Posted in Command line, Networking, Windows 2003, Windows 2008 | Posted on 06-05-2009

0

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

Windows server 2008 – How to delete printing jobs via command line

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

Windows server 2008 – How to list installed printers via command line

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