'); } ?>

Windows Server 2008 and Windows Server 2008 R2 Useful Administrative commands and tools

Windows Server 2008 tips commands

4 – With this command line you can create a list of files and display the last time they were accessed, which is very useful when a mapped  network drive is low on disk space and users tell you they have to have that copy of Software on the network. Point is – if they haven’t touched it in two years, burn it to DVD and then delete it from disk to free some disk space:

dir /t:a /s /od >> list-of-files.txt [ Hit enter]

5 – You need to pause a batch file for a period of time but don’t have the sleep command from the old resource kit ?  with this switch you can build a ten second delay into a script:

ping -n 10 > NUL 2>&1

6 – If your Website hosted on Windows Server IIS has stopped responding, or is showing a error 500, and you are not sure what to do, first thing you can do is to  reset IIS server without having to reboot the whole server. Run this command:


7 – You can see all the open files on a system with this command:

openfiles /query

8 – To pull all the readable data out of a corrupt file you can use this command:

recover filename.txt

9 – You can use &&  to string multiple commands together, so they will run sequentially. You can use this command to separate multiple commands on one command line.

CMD runs the first command, and then the second command.

Example: command1 && command2     ,   or  nslookup ComputerName && ping ComputerName

This options is Used to run the command following && only if the command preceding the symbol is successful and is completed successfully.

One Response to Windows Server 2008 and Windows Server 2008 R2 Useful Administrative commands and tools

  1. defi says:

    Good to know this useful commands for everyday administrative tasks.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>