msgbartop
A cronological documentation test project, nothing serious, really!
msgbarbottom

25 Mar 2011 Shudown Windows 2003 Server from command prompt

You can shutdown a Windows 2003 Server using the tsshutdn.exe command from a command prompt.

This example restarts the server without any delay

tsshutdn.exe 0 /reboot /delay:0

There are several options available to this command.
This command might work on other Windows releases though not tested.

Posted by

18 Jan 2011 Determine uptime on Windows machine

This is quick way to determine when your Windows machine had a reboot.
Open a command prompt and type in the following command

net statistics server

The result could be like

Statistics since 18.03.2011 08:19

In Windows 2008, Vista, 7 you can get the same information by starting the task manager and take a look at the Performance tab. You will find Up Time under the System field.

Posted by

08 Jan 2011 Copy EXIF information from one file to another

This is a short post about how to duplicate or copy the EXIF information from one file to another using exiftool.
The command comes handy when you have one image with EXIF information and you would like another image to have the exact EXIF information.

exiftool -TagsFromFile CopyFromFile.NEF ToFile.JPG

This works in both Windows and Linux.

Tags: ,

Posted by

03 Mar 2010 Enable or disable ping in Windows Server 2008 R2

I always forget where to change the ping setting in the Windows Server 2008 R2 Firewall.
To enable ping

Go to Start >> Administrative Tools >> Windows Firewall with Advanced Security >> Inbound Rules >> File and Printer Sharing (Echo Request – ICMPv4-IN) >> right click and select Enable Rule.

To disable the ping rule just select Disable Rule in the last step.
These steps does also work in Windows 7 to enable ping.

Tags: , ,

Posted by

17 Aug 2009 Search Wikipedia using the command line

This post describes how you can search Wikipedia from the command line using a DNS tool like nslookup in Windows or dig in linux.
Handy if you don’t wan’t to open a Internet browser to do a simple Wikipedia query.

Windows
This is how it’s done in Windows

  1. Choose Start -> Run
  2. Write “cmd” and press OK
  3. Write “nslookup” and press ENTER
  4. Write “set type=txt” and press ENTER
  5. Write <topic>.wp.dg.cx and press ENTER

Using linux
This is how it’s done from a console window in linux

# dig +short txt search_keyword.wp.dg.cx

Example

# dig +short txt oslo.wp.dg.cx
"(formerly Christiania) is the capital and largest city in Norway. Metropolitan Oslo or the Greater Oslo Region makes up the third largest urban area in Scandinavia after Metropolitan Stockholm and Metropolitan Copenhagen. http://en.wikipedia.org/wiki/Oslo"

Source: http://lifehacker.com/5329014/search-wikipedia-from-the-command-line

Tags: , ,

Posted by