Windows server 2003/2008 and Exchange 2007 – How to view queue via powershell

Posted by aidas | Posted in Exchange 2007, Powershell | Posted on 06-05-2009

0

This post will show you how to view mail queue using powershell on your Exchange 2007 server. To do it open exchange powershell on your Windows server 2003 and type:

Get-queue | format-list

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.

Windows server 2008 – How to view domain trusts via command line

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

0

This post will show you how to view existing domain trust relationships for your domain using command line. To do it open command line on your Windows server 2008 and type:

nltest /domain_trusts