Knowledge: Some good computer tricks

1. Finding Windows Product Key

Assuming you can boot your computer without any problems, you can easily create a simple VBscript that will read the value out of the registry and then translate it into the format that you need for reinstalling.

Copy and paste the following into a Notepad window:


Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
 
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
Do
Cur = Cur * 256
Cur = Key(x + KeyOffset) + Cur
Key(x + KeyOffset) = (Cur \ 24) And 255
Cur = Cur Mod 24
x = x -1
Loop While x >= 0
i = i -1
KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i -1
KeyOutput = "-" & KeyOutput
End If
Loop While i >= 0
ConvertToKey = KeyOutput
End Function

You’ll need to use File -> Save As, change the “Save as type” to “All Files” and then name it productkey.vbs or something similar ending with the vbs extension. We’d recommend saving to the desktop for easy access.


Once you’ve saved it, you can just double-click and the popup window will show you your product key.

Note :- If you use CTRL + C when the popup window is active, it will copy the contents of the window to the clipboard, and then you can paste it into Notepad or somewhere else.

2. Locate Your Android Phone Easily

It is very common situation when you can't find your phone. Then you start looking for it , searching in places like under the pillow , in some jeans pocket, bag etc, or may be that you left it in some place which definitely  you don't recall. Then you find some one who could make a call , but you realize that its on silent mod.


There are some apps available but what if you are just like me and a lot of us who don't have it installed. Here comes a Giant to save you all and search your android Phone in minutes. You don't need to find some other phone to ring your to find or to find the location of the phone if it is lost/stolen. The Giant named Google has it all figured out.

on Google just search  "find my phone" 
Baam!, There you go.
Google will now locate your phone.

  • You can now Ring you phone for 5 min in full volume even if it was in silent mod. It actually schedules a ring if the phone cannot be reached instantly.
  • You can in worst case erase your phone, helpful when phone gets stolen and sensitive data is there.
  • You can now be little more careless.
3. Create your own wifi hotspot on Windows 7 or 8 without using any external applications


You don't need "Connectify" or any other software for it. Also, you can save yourself from that 90 minutes counter in connectify. 

All you need to do is run the following two commands in cmd - 

Open cmd with Run as Administrator.

1) netsh wlan set hostednetwork mode=allow ssid=wifiname key=wifipassword
2) netsh wlan start hostednetwork

Best solution - Make a batch file of it and just run the file every time when you start the pc. 

To make a batch file -
First write the commands on a notepad


Then save it with the extension bat.  e.g. wifi.bat

Your batch file is made and now execute the file with Admin Privileges.

Important - For this to work, your sharing should be on in network properties for  the network/ethernet connection that you want to share through your  wifi:

Go to Open Network and Sharing Centre ->Change Adapter Settings(On left panel)\
Your wifi hotspot would be Microsoft Hosted Network Virtual Adaptor in the Network Connections.

Go to the properties of the LAN/ethernet/WiFi connection and make the changes accordingly.



Your wifi hotspot would be ready. :)

To stop the wifi hotspot - 
Write the following in command prompt (or create a batch file similar to above) : netsh wlan stop hostednetwork.

More coming soon.. :)

0 comments:

Post a Comment

+