Windows 7

From TheAlmightyGuru
Revision as of 22:12, 11 September 2019 by TheAlmightyGuru (talk | contribs)
Jump to: navigation, search

Windows 7 is a version of the Windows operating system developed and published by Microsoft on 2009-10-22. I don't care much for the OS because it adds a lot of mandatory user interface changes that I find to be inferior to previous versions. I do like that it seems slightly more stable with Windows Vista, but, other than that, I prefer Windows XP.

Bugs, Quirks, and Work-Arounds

Improper "You need permission to perform this action" Message

Windows 7 will incorrectly report "You need permission to perform this action" when you try to edit or delete a file that is in use, even though it knows that the file is actually in use and no amount of permission will allow the user to access the file. To get around this, you must determine which program has the file in use and force that program to close the file or end the program entirely. Windows knows which program has the file open, but doesn't tell you, you just have to know which program is using it or use a program which monitors the open files of the OS.

Automatic Login

By default, Windows 7 requires you to enter a user name and password at boot up. Many users don't like to bother with this password, and, since Windows 7 used such weak encryption for their password file, it won't stop even an amateur cracker, it's pretty pointless anyway. To turn on automatic login, click Start, and type the following in the search box:

netplwiz

Under the Users tab, uncheck the "Users must enter a user name and password for this computer." Now you will no longer have to enter a password to log into the specified user.

Check Disk Hides Recovered Files

If a disk drive has a problem with its file allocation table, Windows will attempt to run Check Disk on the drive. If Check Disk finds lost files during the scanning process, it will recover the files into folders named "found.000" (the numbers at the end will increment until it finds an available folder name). Although this is a helpful utility, Microsoft stupidly marks the found folder with the System attribute, so the files remain hidden for most users. To view these recovered files, do the following:

  1. In your File Explorer, press Alt on your keyboard to open the hidden file menu.
  2. Click Tools to open the Tools menu.
  3. Click Folder Options to open the Folder Options dialog.
  4. Click View to reveal the View tab.
  5. In the Advanced settings: tree view, uncheck the Hide protected operating system files (Recommended) item.
  6. You will get a warning message, click Yes to continue.
  7. Click OK to save your changes.
  8. Any found folders that have been created by Check Disk will now be visible as folders lighter then the other. The light color is to show that they are system folders. Right-click on each
  9. Double-click the found.000 folder to open it.
  10. You should see one of more files with names file0000.chk. The number will increment for each file. These files represent those data that was lost to the file allocation table, and therefore no longer have a useful file name or extension. You may want to copy all of these files into a new folder that isn't a hidden system folder so you can work on them.
  11. To set system files back to hidden, make sure your File Explorer is the active window, press Alt, click Tools in the menu, then Folder Options, go to the View tab, and in the Advanced settings: tree view, recheck the Hide protected operating system files (Recommended) item, then click OK to save.
  12. To figure out how you should rename these files, see determine the file type of an unknown file.

Check For Administrative Rights

Check Windows Version / Bit Type

These methods will help you figure out the version of Windows.

Basic

The simplest way to detect the Windows bit type is to check for a "C:\Program Files (x86)". If it exists, this is probably a 64-bit system.

MSInfo32

Click Start, Run, and type in the box:

MSInfo32

The relevant information is found under OS Name, Version, and System Type.

Registry

Click Start, Run, and type in the box:

RegEdit

Bit Type is found at:

HKLM\SYSTEM\CurrentCongtrolSet\Control\Session Manager\Environment\Processor_Architecture

Disassociate File Types

Windows 7 doesn't allow you to disassociate a file type, only change it, but you can use this program to do so: winhelponline.com/blog/unassociate-file-types-windows-7-vista/.

Force a Reboot

If you don't have access to the shutdown there are several methods for forcing a reboot.

Shutdown.exe

If you have access to the command window, you can execute "shutdown.exe -i" to bring up the shutdown interface. To force an immediate reboot, use "shutdown.exe -f -r -t 0"

Kill lsass.exe

LSASS.exe is the Local Security Authority Process. Windows requires this program to be running, and if it ever closes, Windows will initialize a mandatory shutdown after 30 seconds.

Clear Icon Cache

Windows stupidly doesn't update the icon cache even when an icon file has been altered. It also has a tendency to overflow the cache and display the wrong icons for various files. Both are common problems for icon designers. To force windows to purge its existing icon cache, do the following:

  1. Click Start.
  2. In the Search box, type ie4uinit.exe -ClearIconCache.
  3. Press Enter or click the program in the list.
  4. Windows will clear the icon cache and draw the modified icon.

Manually Add a Port

Add Hardware - Manually.png

Windows 7 removed the "Add New Hardware" from the Control Panel, but the program still exists. To open it:

  1. Click the Windows button.
  2. Click Run
  3. In the Open box, type hdwwiz.exe
  4. Click OK.

This gives you the opportunity to add Serial COM Ports and other legacy devices.

Network Sharing

Getting Windows to share files through the network is a lot more complicated than it needs to be.

  1. Check simple sharing, turn it off if it's on.
  2. Right-click the shared folder, select Properties, click the Security tab.
  3. Click Edit to bring up the "Permissions for Folder"
  4. Select the Administrators group, and check Full Control.
  5. Click Add, under "Enter the object names to select" type "Guest" if the server is XP of "Everyone" if the server is Windows 7, click "Check Names", click "OK".
  6. Click on Guest/Everyone in the Group list, click Full Control.
  7. In Windows 7, do the same in the "Sharing" tab.
  8. Click "OK".

The Open With Dialog Doesn't Allow Custom Programs

Windows 7 will sometimes fail to add custom programs into the "Open With" dialog after you select them using the Browse button. This will happen if you install multiple programs with the same executable name. Windows fails to update its registry with the new file path to the executable, so you must do it manually. To fix this bug, do the following:

  1. Open RegEdit.
  2. Expand the tree view on the left to, Computer\HKEY_CLASSES_ROOT\Applications.
  3. Find the name of the program that you're selecting in the Browse dialog and expand it.
  4. Expand shell\open\command.
  5. In the right panel, find the (Default) string value and double-click it to open the Edit String dialog.
  6. In the Value data: text box, change the value to the correct path to the program.
  7. Click OK.
  8. Close RegEdit.
  9. Retry the Browse button in the Open With dialog, it should now add the program correctly.

Quick Launch Toolbar

The Quick Launch Toolbar was a wonderful feature of Windows XP that was removed in Vista and above which used the less-intuitive Pin/Unpin feature. To re-enable it, do the following:

  1. Right-click on the taskbar.
  2. Select the Toolbars menu.
  3. Click on New Toolbar...
  4. Navigate to .\Users\Your User\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch.
  5. Highlight the Quick Launch folder, and click "Select Folder".
  6. Right-click on the new Quick Launch toolbar in the taskbar.
  7. In the menu, uncheck "Show Title" and "Show Text".
  8. Use the toolbar's handle to drag it fully to left to position it like XP.

Rename Files Sequentially

To rename a series of files to a sequential number, do the following:

  1. Highlight all the files you want renamed.
  2. Right-click on the first file and from the menu choose Rename.
  3. Enter a base name and press Enter.
  4. All of the files will be given the base name plus a sequential number in parentheses.

To rename a series of files with a fixed-width number (to avoid sorting problems), do the following:

  1. Highlight all the files you want renamed.
  2. Right-click on the first file and from the menu choose Rename.
  3. Enter a base name, then a space, then the (10000000), and press Enter.
  4. All of the files will be given the base name plus a sequential number starting from 10000000 and will sort properly whether the viewer sorts them as a number or as text.

Search In File Contents

By default, Windows 7 will not search in text files and other documents. To force it to do so, do the following:

  1. Open a file explorer window.
  2. Press ALT to reveal the hidden menu.
  3. Under Tools, select Folder Options.
  4. Under the Search tab, in the "What to search" frame, select "Always search file names and contents".

Search Inside Zip Files

By default, Windows 7 will not search in compressed zip files. To force it to do so, do the following:

  1. Open a file explorer window.
  2. Press ALT to reveal the hidden menu.
  3. Under Tools, select Folder Options.
  4. Under the Search tab, select Include compressed files.

Note, Windows will still fail to search in other formats like RAR, 7Z, etc.

Speed Up File Explorer

Windows Vista and 7 tries to optimize media folders by assigning them special templates. Folders with a lot of media are given special templates which slow down File Explorer because it tries to read the meta data out of every file even if it's not one of the viewable columns. When hundreds of folders with media content exist, this can lead to File Explorer taking several seconds to open a folder. To prevent Windows from doing this:

  • Open File Explorer.
  • Navigate to the problematic folder.
  • Right-click on the folder, and, in the context-menu click Properties.
  • Click the Customize tab.
  • In the "Optimize this folder for:" drop-down, select Documents.
  • Check the Also apply this template to all subfolder" check box.
  • Click OK.

This takes awhile to process in Vista (seems instant in Windows 7), but it will speed up File Explorer considerably for future views.

System Configuration

Run "msconfig.exe" to get access to the booting config, services, and a quick list of windows tools.

Task Manager Menu Is Hidden

Windows stupidly has an undocumented and hidden feature that users sometimes stumble upon. If you double-click on the main form or the interior of any of the tabs, the title bar, menu, and status bar will be hidden. To return everything to view, double-click again on form or the interior of a tab.

Toggle Ping

If you have ping response disabled, you can re-enable it by doing the following:

  1. Open Control Panel.
  2. Open Windows Firewall.
  3. In the side-panel, click on Advanced Settings.
  4. In the side-panel, open Inbound Rules.
  5. Select each "File and Printer Sharing (Echo Request - ICMPv4-In)".
  6. Right-click to open menu.
  7. Choose "Enabled" to allow ping, "Disable" to disallow ping.

Turn Off AutoPlay

Windows 7 has an obnoxious autoplay dialog which runs every time you use a USB device or optical disc. Although the UI claims to allow you to turn it off by setting every action to "Do Nothing," it doesn't work. To actually turn it off autoplay, do the following:

  1. Click the Windows button.
  2. Click Run.
  3. In the Open box, type gpedit.msc and click OK.
  4. This opens the Local Group Policy Editor.
  5. In the tree view on the left, expand Computer Configuration.
  6. Then expand Administrative Templates.
  7. Then expand Windows Components.
  8. Click the folder labeled AutoPlay Policies.
  9. In the list on the right, double-click Turn off Autoplay.
  10. This opens the Turn off Autoplay dialog.
  11. Select Enabled on the left and click OK.

USB Drives and Sleep

To run quickly, Windows 7 caches the files of connected USB devices, but this cache is maintained through sleep mode, and, depending on how slow your computer is, it can take upwards to 30 seconds for Windows to refresh the cache after waking up. This can cause serious data loss if any files were modified on the USB device while the computer was in sleep mode. Because of this, it's very important to remove USB devices from your computer before putting Windows 7 to sleep.

The following steps will show you how data loss can occur, so you can avoid it:

  1. With a USB drive plugged in, put your computer into sleep mode.
  2. Unplug the drive and plug it into another computer.
  3. Make changes to the drive.
  4. Plug it back in while the original computer is still in sleep mode, or shortly after waking it up.
  5. Open a file that was changed on the second computer. You will notice that Windows will display old files before they were altered in the second computer.
  6. Save new changes to the files.
  7. Windows will eventually refresh after about 30 seconds, and, when it does, it will have lost the changes you made on the second computer. You may also get a corrupt disk and have to run Check Disk to repair them.

Volume Reset

Each time Windows 7 receives a Windows update that requires it to reboot, all the volume sliders are reset to the maximum level. As far as I know, there is no way to fix this.