- open regedit.
- go to:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers - add a value (a string):
Name: C:\Windows\system32\notepad.exe
Value: RUNASADMIN
Monday, May 14, 2012
Getting notepad to obey
I always wanted notepad to be ran as admin. I can't think of a case where I didn't want it to be. So I browsed to notepad.exe and was going to turn on "always run as admin" but the option was blanked out. I figured out how to bypass that though. Do these three easy steps if you want always admin notepad
Saturday, May 12, 2012
Fix the windows OS Letter assignment
Hello!
I recently move a few partitions on my hard drive, and when I booted up windows... boot error.
That's somewhat expected so I tried to use startup repair, it worked... until I got stuck right after the loading screen.
I found that "C:" was missing, and "D:" was assigned to what "C:" should be. Here's how I fixed it:
I recently move a few partitions on my hard drive, and when I booted up windows... boot error.
That's somewhat expected so I tried to use startup repair, it worked... until I got stuck right after the loading screen.
I found that "C:" was missing, and "D:" was assigned to what "C:" should be. Here's how I fixed it:
- Before you shutdown, make a note of what letter is currently incorrectly assigned, in my case, it was "D"
- First of all, you need your windows disk, plop it in, and boot from it. When it finishes loading, do not click install. Instead, click repair.
- Lauch command prompt
- We can't just use regedit to fix the problem because we are in a windows pre-install enviroment, with it's own registry. So we need to run a command:
reg load HKLM\TempOS C:\windows\system32\config\system
Now, "C" might be the wrong letter! windows preinstall enviroment automatically assigns letters to the drives and partitions of your computer. You may need to use these commands
cd /d [Letter]:
dir
the first Changes Directory. /d means change to a different Drive, then you would type C: D: E:, etc.
the second command lists the folders and files of the drive. If you see "windows" and "program files" then congrats you found the drive/partition that you want to fix - type regedit to open the registry editor
- browse to HKLM/TempOS/CurrentControlSet/MountedDevices
- find the value that has \DosDevice\C:
rename that to any other untaken letter - find the value that has \DosDevice\[the incorrect letter]:
this should be the letter that you took note of in step 1. rename that one to \DosDevice\C: - Exit regedit, and run this command
reg unload HKLM\TempOS - Reboot and all should be well!
Subscribe to:
Posts (Atom)