Configure IP Address and DNS from Command Line

The IP address of your computer can be set from the command prompt by running the following commands at an administrative level prompt:
netsh interface ip set address name="Local Area Connection" static 123.123.123.123 255.255.255.0 123.123.123.1 1
Local Area Connection is the name of the adapter you want to modify. In single NIC systems it is normally called Local Area Connection.
123.123.123.123 is the IP address you want to set.
255.255.255.0 is the subnet mask.
123.123.123.1 is the gateway.
1 is the gateway metric. You can leave this as 1 for almost all cases. 
If you want to enable DHCP you can run:
netsh interface ip set address name="Local Area Connection" dhcp
There are two commands for DNS since administrators typically configure a primary and secondary DNS server.
For the primary DNS run:
netsh interface ip set dns name="Local Area Connection" static 208.67.222.222
For the secondary run:
netsh interface ip add dns name="Local Area Connection" 208.67.220.220 index=2
If you want to configure the computer to use DNS from DHCP run:

netsh interface ip set dnsservers name="Local Area Connection" source=dhcp
When you are finished with all of your IP and DNS changes run ipconfig -all to review the new settings.

Recover Deleted Photos, Pictures and Other Files

Have you ever accidentally deleted a photo or other file from your computer or digital camera?  Even if you clear the recycle bin, there is still a chance your pictures can be recovered.
Even though a file was deleted there is a good chance the contents of the file are still around.  When a file is deleted the contents of the file are not removed. Only a pointer to the file in the file system table is deleted. 
Time is your worst enemy when restoring files. When the pointer to the file has been deleted the operating system can use that storage space to write and store new data.  The longer it has been since you realized the file was deleted increases the chance any remaining file content has been overwritten.
It is very important to immediately stop writing to the storage device that previously contained your pictures so that the old file contents are not overwritten.  For example, don’t take any more pictures with your digital camera because new pictures will overwrite the deleted files.
Next, you will need to use a utility to reassemble the file remains back into the original files.
I like to use a free utility called Recuva by Piriform.  Head over to http://www.piriform.com/recuva/download/standard to download a copy.
After the utility is installed start it up and click cancel on the Recuva Wizard screen.  I’m not a big fan of wizards, instead I’m going to show you the power user method.
First, select the drive you want to scan for the deleted files.

There are two ways to scan for deleted files. First we are going to use the default scan method by just clicking Scan.

The results pane will be populated when the scan is completed. Files that are  green can be recovered by other files that are yellow or red have been overwritten. Previews are shown for some files when you click on them.

Check the boxes next to the files you want to restore and click Recover.

Select a location to restore the files to and click OK. Make sure you select a different storage device/drive than where the files are currently located so you don’t overwrite the file remains. 

Your files will now be recovered. 

Deep Scan

Earlier I mentioned there is another method to recover deleted files with Recuva that is helpful when the files you want do restore were not found with the normal scan.
Running a deep scan will check the actual sectors on the storage device for file remains. You can enable this scan option by clicking Options on the main screen.

Click on the Actions tab, check Deep Scan and click OK.

Now just click Scan again and go for a walk because the deep scan can take a while depending on the size of the drive.


When the scan is completed restore the files the same way discussed above for the normal scan.

Get a Power Efficiency Report

Have a laptop and want to get more battery life out of it? Windows 7 includes a hidden built-in tool that will examine your laptop's energy use and make recommendations on how to improve it. To use it:



1. Run a command prompt as an administrator. To do this, type cmd in the search box, and when the cmd icon appears, right-click it and choose "Run as administrator."
2. At the command line, type in the following:
powercfg -energy -output \Folder\Energy_Report.html
where \Folder represents the folder where you want the report to be placed.
3. For about a minute, Windows 7 will examine the behavior of your laptop. It will then analyze it and create a report in HTML format in the folder you specified. Double-click the file, and you'll get a report -- follow its recommendations for ways to improve power performance.

Unknown KeyBoard Shortcuts for Windows 7

Keyboard is an input device and also a main part of computer. Generally we use shortcuts to perform our work directly. There are many shortcuts you may know for windows 7. But check these below shortcuts.

Keyboard Shortcuts for Windows 7
  • Shortcut 1:
[Windows] + Left arrow/Right arrow
//Change window to the left or right.
  • Shortcut 2:
[Windows] + Up arrow/Down arrow
//Maximize/Minimize the selected window.
  • Shortcut 3:
[Windows] + [SHIFT] + Up arrow/Down arrow
//Maximizes/Minimize selected window in vertical dimension.
  • Shortcut 4:
[Windows] + [Tab]
//3D representation of open windows.
  • Shortcut 5:
[Alt] + [Tab]
//Cycle through open windows.
  • Shortcut 6:
[Windows] + [T] or [Windows] + [SHIFT] + [T]
//Move focus to front or back of taskbar left to right or right to left.
  • Shortcut 7:
[Windows] + [B]
//Move focus on the ‘show hidden icons’ button on the system tray.
  • Shortcut 8:
[Windows] + [SHIFT] + [1] to [9]
//Starts new instance of respective taskbar icon.
  • Shortcut 9:
[Windows] + [Ctrl] + [1] to [9]
//Cycles through multiple instances of the respective icon.
  • Shortcut 10:
[Windows] + [Alt] + [1] to [9]
//Opens jump list for respective icon.
  • Shortcut 11:
[Windows] + [Spacebar]
//Make all open windows transparent to view gadgets and icons on desktop.
  • Shortcut 12:
[Windows] + [P]
//Select presentation display mode.
  • Shortcut 13:
[Windows] + [+] OR [Windows] + [-]
//Activates Windows Magnifier to zoom in or zoom out.
  • Shortcut 14:
[Ctrl] + [Alt] + [L]
//Switch to lense mode.
  • Shortcut 15:
[Windows] + [G]
//Cycle through desktop gadgets.
  • Shortcut 15:
[Windows] + [X]
//Launches Windows Mobility Center. Especially for laptop user.
Many of you already know some shortcuts among these. But try these shortcuts in your system and if you know some unknown shortcut then comment below.