Registry hack to let you right click on any directory and open an administrator command prompt. Pretty cool trick. I added /T:4f to the command line to give it a nice, clear administrator designation (red background). My reg file looks like this:
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Administrator Command Prompt here" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\shell\runas\command] @="cmd.exe /T:4f /k \"pushd %L && title Command Prompt\"" [HKEY_CLASSES_ROOT\Drive\shell\runas] @="Administrator Command Prompt here" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Drive\shell\runas\command] @="cmd.exe /T:4f /k \"pushd %L && title Command Prompt\""
Does anyone know a command line to elevate me? I mean...if I start a regular non-admin cmd.exe and I want to elevate at some point, is there an easy way?
No comments:
Post a Comment