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/2008 – How to check network connectivity

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

0

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

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

Windows server 2008 – How to delete Active Directory snapshot

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

0

This post will show you how to delete Active Directory snapshot using command line on your Windows server 2008. Snapshot is a copy of active directory which contains active directory database and log files and it  can be viewed without starting server in Directory Services Restore Mode.

To list all available snaphosts on server type:

ntdsutil press Enter

snapshot press Enter

list all press Enter

You will see all available snapshots with specific GUID {…..} .  Make sure that snapshot, you are going to delete, is unmounted. If it is mounted unmount it by typing:

unmount {<GUID>}

To delete snapshot type:

delete {<GUID>}

Windows server 2008 – How to mount or unmount Active Directory snapshot

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

0

This post will show you how to mount or unmount Active Directory snapshot using command line on your Windows server 2008. Snapshot is a copy of active directory which contains active directory database and log files and it  can be viewed without starting server in Directory Services Restore Mode.

To list all available snaphosts on server type:

ntdsutil press Enter

snapshot press Enter

list all press Enter

You will see all available snapshots with specific GUID {…..} . To mount snapshot note GUID of snapshot you would like to mount and type:

mount {<GUID>}

To unmount snapshot type:

unmount {<GUID>}

Windows server 2008 – How to create Active Directory snapshot

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

0

This post will show you how to create Active Directory snapshot using command line on your Windows server 2008. Snapshot is a copy of active directory which contains active directory database and log files. Snapshot can be viewed without starting server in Directory Services Restore Mode.

Before creating snapshot you need to set AD as active instance. To do it open command line and type:

ntdsutil press Enter

activate instance NTDS press Enter

Now you are ready to create snapshot:

snapshot press Enter

create press Enter

You will see in output that snapshot was generated successfully.

Windows server 2003/2008 – How to reset Directory Services Restore Mode (DSRM) password

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

0

I`ll show you how to reset Directory Services Restore Mode password using command line on your Windows server 2003 domain controller. Lets say we want to reset password for server named  “Testserver”. Open command line and type:

ntdsutil press Enter

Set DSRM password press Enter

reset password on server Testserver press Enter

Type new password for DSRM two times.