Type : Tips and Trick
Level : Easy
O.S : Windows 7 SP1
Have you ever try to connect or view your registry data using command prompt? when you’re digging to HKEY_LOCAL_MACHINE\blah\blah\blah you need to know the exact thing there and you also cannot use code completion (whooaa).
Of course this thing will make your life harder 😀 , that’s why today I write a simple tips and trick to make our life a little bit easier.
1. Command Prompt
1. Open you command prompt (view the shortcut here)
2. As example, for the normal way you do query to registry is by using reg query command like this :
reg query "hklm\system\currentControlSet\Control\Terminal Server" /s
3. When I do above command, I need to remember the registry path without code completion and I think it’s quite hard to do that 😛 .
4. Still in command prompt, now lets type powershell, and your command prompt will change like this :
5. Now if we try to query the registry content, to move from one to other path you just need to press your <TAB> to view the code completion (it was nice isn’t it?). Another thing that might take you by surprise is that you can "change directory" into the registry. Technically "cd" is an alias for Set-Location, but it still works the same as the "cd" you know and love from the other shells.
6. You can view the content by using ls command :
That’s it. Hope you found it useful 🙂
Wait my next post about revealed the secret of USB. Register your e-mail now by clicking the link below to get the latest tutorial update directly from your e-mail.