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 Hans-Henry Jakobsen
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 Hans-Henry Jakobsen
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.
Posted by Hans-Henry Jakobsen
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: firewall, Windows 7, Windows Server 2008 R2
Posted by Hans-Henry Jakobsen
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
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
Posted by Hans-Henry Jakobsen