Windows server 2003 and Windows XP – How to view SID of service

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

0

This post will show you how to use command line to get SID of specific service. To get SID for “workstation” service open command line on your Windows server 2003 and type:

sc showsid workstation

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

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

0

This post will show you quick way how to ged rid of service using command line. To delete service open command line on your Windows server 2003 and type:

sc delete <service name>

Windows server 2003 – How to clear arp cache via command line

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

1

This post will show you how to clear arp cache on your Windows server 2003 using command line. To do it open command line and type:

netsh interface ip delete arpcache

Windows server 2008 – How to view network configuration remotely

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

0

This post will show you how to view network configuration on remote server using command line. Lets say we want to check network configuration on remote server named “Testserver1″. To do it open command line on your Windows server 2008 and type:

netsh -r Testserver1 interface ip show config

If you need to supply different credentials to run this command type:

netsh -r Testserver1  -u testdomain.com\Admin -p Pa$$w0rd interface ip show config

Windows server 2003/2008 – How to end running process via command line

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

0

This post will show how to end running process by using command line on your Windows server 2003. First of all you need to run tasklist command to view PID number of the process you want to end. To do it type:

tasklist

To end process type:

taskkill /PID <PID number>

To end process on remote server named “Testserver” type:

taskkill /s Testserver /PID <PID number>

Note that you can always type taskkill /? for more command usage examples


Windows server 2003/2008 – How to view running processes via command line

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

0

This post will show how to view running processes using command line on your Windows server 2003. To do it open command line and type:

tasklist /v /fi “status eq running”

To view running processes on remote server named “Testserver” type:

tasklist /s Testserver /v /fi “status eq running”

Note that you can always type tasklist /? for more command usage examples

Windows server 2003 and Windows XP – How to log memory resources consuming

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

0

This article will show you how to create log file of memory resources consuming on your Windows server 2003. To create log and place it to D:\Logs directory open command line on your Windows server 2003 and type:

memsnap /m D:\Logs\memoryusage.log

Created log will be in “raw” format and in order to read it is recommended generate log analysis file. To generate it type:

memsnap /a D:\Logs\memoryusage.log

Note that memsnap 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 test Kerberos functionality

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 test Kerberos authentication between server and your domain. Note that this operation must be run on server or workstation being tested and cannot run remotely. To perform Kerberos check on domain named “testdomain.com” open command line on your Windows server 2003 and type:

netdom trust /d:testdomain.com /verify /kerberos

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 verify domain trust

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

0

This post will show how to verify domain trust relationship in one-way and two-way trust cases. Lets say we have testdomain1.com and testdomain2.com domains with one-way trust established. To verify one-way domain trust open command line on your Windows server 2003 and type:

netdom trust /d:testdomain1.com testdomain2.com /verify

If we have two-way trust established to verify it type:

netdom trust /d:testdomain1.com testdomain2.com /verify /twoway

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 remove your server from domain

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 remove you server from domain using command line tool netdom. Lets say we want to remove server named “Testserver” from domain testdomain.com.  To do it open command line on your Windows server 2003 and type:

netdom remove /d:testdomain.com testserver /ud:testdomain.com\Admin /pd:Pa$$w0rd

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 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 – How to add alternate name to your domain controller

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