Please support our Software Development advertiser:
Aug 4th, 2006, 3:21 pm
This blog entry is regarding a registry hack for Windows XP. Be advised that twiddling with the registry requires care, and use the information here at your own risk. Backing up the registry before proceeding is adviced.
This is a based on the Add Command Prompt Here tweak that is fairly common in the internet. What the original tweak basically did was, create a shortcut in the Directory/Drive Context Menu of Windows Explorer when clicked executes a command prompt with the clicked directory as current directory.
This modification was created so that I could run a root console from any directory or drive even when I was logged in as a restricted user. This can come in handy because then you can run many programs in restricted mode without re-login in as Administrator. Of course there is the Runas menu for executables, but you don't get it for Folders and directories.
What you have to do is simple. Copy and paste the following code in to notepad and save the resulting file in any name of ".reg" extension. E.g. RootConsole.reg
Then do a one time login as Administrator and double click the newly created .reg file. If all goes well, you should see a Shortcut called "Open Root Console Here" when you right click a Directory or Drive. When selected it will open a Command Promt , ask you for the administrator password, and open up a Admin Console for you in the selected directory if the password given is correct.
Note.
You will have to replace COMPUTER_NAME with your computer name, and AdministratorName with your administrator account name.
E.G. My Computer name was Laptop
My administrator name was Administrator
You should have the Registry Version in the heading of the reg file. I think it differs depending on the windows OS version. But version 5.00 should be okay for Windows XP and above. I think REGEDIT4 should work for Windows 2000. You can find it by running regedit.exe from Start Menu + Run, and clicking Help + About Registry Editor.
This is the complete .reg file.
This is a based on the Add Command Prompt Here tweak that is fairly common in the internet. What the original tweak basically did was, create a shortcut in the Directory/Drive Context Menu of Windows Explorer when clicked executes a command prompt with the clicked directory as current directory.
This modification was created so that I could run a root console from any directory or drive even when I was logged in as a restricted user. This can come in handy because then you can run many programs in restricted mode without re-login in as Administrator. Of course there is the Runas menu for executables, but you don't get it for Folders and directories.
What you have to do is simple. Copy and paste the following code in to notepad and save the resulting file in any name of ".reg" extension. E.g. RootConsole.reg
Then do a one time login as Administrator and double click the newly created .reg file. If all goes well, you should see a Shortcut called "Open Root Console Here" when you right click a Directory or Drive. When selected it will open a Command Promt , ask you for the administrator password, and open up a Admin Console for you in the selected directory if the password given is correct.
Note.
You will have to replace COMPUTER_NAME with your computer name, and AdministratorName with your administrator account name.
E.G. My Computer name was Laptop
My administrator name was Administrator
You should have the Registry Version in the heading of the reg file. I think it differs depending on the windows OS version. But version 5.00 should be okay for Windows XP and above. I think REGEDIT4 should work for Windows 2000. You can find it by running regedit.exe from Start Menu + Run, and clicking Help + About Registry Editor.
This is the complete .reg file.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_root] @="Open Root Console Here" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_root\command] @="runas /user:COMPUTER_NAME\\AdministratorName \"Cmd.exe /k pushd %L\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd_root] @="Open Root Console Here" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd_root\command] @="runas /user:COMPUTER_NAME\\AdministratorName \"Cmd.exe /k pushd %L\""
This blog entry was written by WolfPack. It has received 6,289 views, 0 comments, and 6 linkbacks. 4 voters have rated this entry an average of 5 out of 5 stars. It was promoted to featured status Aug 24th, 2006.
•
•
•
•
apple bill gates browser clone computer console crack dell desktop development drm game gartner google hoax ie install internet leopard linux mac merger microsoft mobile news nintendo novell operating operating system os patch photo playstation ps3 safari security server software sony sp1 system ubuntu unix upgrade vista wii windows xbox 360 xp yahoo
All Recent Tags Post Comment
•
•
•
•
Only community members can start a blog or comment on blog entries. You must register or log in to contribute.
•
•
•
•
•
•
•
•
DaniWeb Software Development Marketplace
Related Blog Entries
- SF Password Hijack Highlights Importance of Process in City, State IT (2 Days Ago)
- Security Holes Spring Up in Java Framework (8 Days Ago)
- iPhone 3G: It Was All Yellow (10 Days Ago)
- iPhone App Store to open Friday, Jailbreakers could care less (16 Days Ago)
- Cross-Platform RealBasic 3 IDE Ships Today (16 Days Ago)
- Coders Can be Frugal When They Use Krugle (17 Days Ago)
- Microsoft Publishes File Format Specs, 'Open Connections' (18 Days Ago)
- FreeRunner Linux Phone Liberated on July 4 (21 Days Ago)
- Apple Leopard changes spots (24 Days Ago)
- With ‘Ganymede’ Release, Eclipse Community Gets it Done (24 Days Ago)
Related Forum Threads
- Virus Alert! icon in the Notification Bar <<HELP>> (Viruses, Spyware and other Nasties)
- running Perl/CGI scripts under Tomcat server (Perl)
- Computer Running Slow and Programs Locking Up (Viruses, Spyware and other Nasties)
- Running a Root/Administrator Console from any Folder (Windows tips 'n' tweaks)
- protect partitioned hard drives (Storage)
- my computer, my documents, etc.. folders do not open (Windows NT / 2000 / XP / 2003)
Featured Entry