Sunday, March 15, 2009

Some Windows Xp Tricks

Lock known dll's list and make your computer a bit more safer

Folks, You may be wondering that I am talking about making your computer a bit more safer even though my very site was hacked on 1/14/2002. As it stands I have kept this site simple and I do not control the webhosting part. Anyway it is a good idea to keep your computer safe.Open Registry by going to START-RUN and entering REGEDIT and Navigate to [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager] and look for ProtectionMode parameter. If its value is not 1 , set it to value of 1. On my computer default value is 1. Doing this will protect your list of known system dlls from being compromised. To see what is present in your known DLL list, navigate to [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\KnownDLLs] and look in the right pane. I have not yet tried this but You may even try adding some other DLLs that You feel important and should be protected. This could be risky as I have not yet tried this myself.

Microsoft has an old but informative article on it

http://support.microsoft.com/support/kb/articles/q218/4/73.asp


 Customize your Start Menu setting and preferences

You can open group policy editor (gpedit.msc) and go to User Configuration \ Administrative Templates \ Start Menu and Taskbar and set a variety of preferences for your startmenu. Or if You want You can open registry editor and navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer and enable/disable various parameters by changing 1 to 0 and viceversa. I am doing a cut/paste of list available at Microsoft site. Visit the site to get details on these registry values

Registry Value:"NoSimpleStartMenu"
Registry Value:"NoStartMenuPinnedList"
Registry Value:"NoStartMenuMFUprogramsList"
Registry Value:"NoStartMenuMorePrograms"
Registry Value:"NoCommonGroups"
Registry Value:"GreyMSIAds"
Registry Value:"NoWindowsUpdate"
Registry Value:"NoStartMenuMyMusic", "NoSMMyPictures","NoFavoritesMenu","NoRecentDocsMenu"
Registry Value:"DisableMyPicturesDirChange", "DisableMyMusicDirChange", "DisableFavoritesDirChange".
Registry Value:"NoSMMyDocs"
Registry Value:"DisablePersonalDirChange"
Registry Value:"NoRecentDocsMenu"
Registry Value:"MaxRecentDocs"
Registry Value:"ClearRecentDocsOnExit"
Registry Value:"NoFavoritesMenu"
Registry Value:"{20D04FE0-3AEA-1069-A2D8-08002B30309D}" under
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum.
Registry Value:"NoNetworkConnections"
Registry Value:"NoStartMenuNetworkPlaces"
Registry Value:"NoRecentDocsNetHood"
Registry Value:"NoSMHelp"
Registry Value:"NoFind"
Registry Value:"NoRun"
Registry Value:"MemCheckBoxInRunDlg"
Registry Value:"NoResolveSearch"
Registry Value:"NoResolveTrack"
Registry Value:"ForceStartMenuLogoff"
Registry Value:"StartMenuLogoff"
Registry Value:"NoClose"
Registry Value:"NoStartMenuEjectPC"
Registry Value:"NoChangeStartMenu"
Registry Value:"NoSetTaskbar"
Registry Value:"NoInstrumentation"
Registry Value:"NoUserNameInStartMenu"

I read about this on Microsoft Web Site. Here is the link Policy Settings for the Start Menu in Windows XP (Q292504) 

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q292504




How startup programs get loaded in Windows at boot time ? Run keys of Windows Registry

Run keys cause programs to automatically run every time computer/XP boots up . The Windows XP registry includes the following four Run keys:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce


Each of these keys has a series of values. The values allow multiple entries to exist without overwriting one another. The data value for a value is a command line. There are some special considerations for the third and fourth keys in the list, the RunOnce keys: By default, Run keys are ignored when the computer starts in Safe mode. Under the RunOnce keys, You can prefix a value name with an asterisk (*) to force the associated program to run even in Safe mode. You can prefix a RunOnce value name with an exclamation point (!) to defer deletion of the value until after the command runs. Without the exclamation point prefix, a RunOnce value is deleted before the command runs. As a result, if a RunOnce operation does not run properly, the associated program is not asked to run the next time You start the computer. 


Want to move a Windows XP Installation to Different Hardware. How to do that ?

In most of the scenarios (legal !), You would be doing one of the following acts:

A. Migrate a working Windows XP operating system and your installed programs to a different or more powerful computer in minimal downtime.
B. Replace a small system/boot disk drive with a larger system/boot disk drive.
C. Restore a Windows backup from a malfunctioning computer to a different computer for disaster recovery purposes

Windows Backup (Ntbackup.exe) can handle differences in hardware configuration information between computers and maintain critical registry entries that are unique to the computer to which You are migrating information. This capability means that You can migrate to new hardware by performing a full backup of the source computer and Then restoring the backup over a fresh installation of Windows XP on the destination computer.

Ntbackup.exe handles restore operations in the registry by first querying the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\KeysNotToRestore
This registry key indicates to Ntbackup.exe that certain registry keys under the HKEY_LOCAL_MACHINE\SYSTEM key should not be overwritten when files are restored.

An entry that ends with a backslash (\) indicates that a key is protected and that any keys or values under that key should not be restored. If the entry ends with a backslash and an asterisk (\*), all subkeys are "merged." In this situation, "merged" means comparing the start values of the keys in the backup set with the start values that exist in the current registry, to determine the correct key to restore.

If the value of the key on the backup set has a lower start value, the backup key takes precedence. If the value of the key in the current registry has a lower start value, the current key takes precedence. This process ensures that all services and devices start correctly after a "system state" restoration, even on dissimilar hardware. 

Do you have a problem with your Video ? Always going in VGA MODE ?
This happens to everyone at some point of time or other and is most likely caused by some application or third party utility overwriting your drivers files (or if you do not have had a right video driver to begin with). To verify exactly what gets loaded, follow these steps. Open registry by going to START-RUN and entering regedit. Navigate to HKEY_LOCAL_MACHINE\hardware\DeviceMap\Video . In this value of Device\Video0 points to a registry key that has the location of the video driver that Windows is configured to load. for example: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ videodriver \Device0 . Navigate to this key. Check value of "InstalledDisplayDrivers" . Its value indicates whether driver was loaded or not. If the setting shows another registry location, a third-party driver may be getting loaded


Prevent a Program From Being Displayed in the Most Frequently Used Programs List
This is easy.Open registry by going to START-RUN and entering regedit. Navigate to HKEY_CLASSES_ROOT\Applications\ Program name.exe where Program name.exe is the name of the application that you do not want to be displayed in the Most Frequently Used Programs List. Add an empty string value named NoStartPage. That's it. Reboot your computer.
IMPORTANT DISCLAIMER: Before doing anything with registry, It is very important that you take a backup of registry by exporting it. Remember even a minor mistake in registry could render your system unusable or will cause it to stop or crash. XPTOOLS is not responsible for any such damage that may occur directly or indirectly as a result of your applying these changes. Don't try it if you are not sure. Use at your own risk


Having trouble with MSDOS program ? Tips on troubleshooting.
I read a good article on 
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314106 at Microsoft knowledgebase website. One of the first thing to test when you are having problems with MS-DOS-based programs is the Windows Virtual DOS Machine (NTVDM) subsystem. Open START-RUN and enter command.com or cmd.exe. If you don't see a MSDOS windows coming up you of course have a problem. Check the Config.nt and Autoexec.nt files in the SystemRoot%\System32 folder for nonstandard settings. 

Use a REM statement to remark out all entries except the following default entries:
Config.nt
---------
dos=high, umb
device=%SystemRoot%\System32\Himem.sys
files=20
Autoexec.nt
-----------
lh %SystemRoot%\System32\Mscdexnt.exe
lh %SystemRoot%\System32\Redir
lh %SystemRoot%\System32\Dosx
lh %SystemRoot%\System32\Nw16 (only if CSNW is installed)
lh %SystemRoot%\System32\Vwipxspx (only if CSNW is installed)

The registry entries that are associated with the NTVDM subsystem are: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment
This key stores the environment variables from the Config.sys and Autoexec.bat files for use in Windows.
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ VirtualDeviceDrivers
This key stores the device drivers that are used in an NTVDM session. Windows Setup creates these entries when a device driver is installed


How to alter behavior of System Restore Utility
There are three specific keys that control behavior of System Restore Utility. It has many values that can be altered and also have some that should not be altered under any circumstances. Microsoft Article 
 http://support.microsoft.com/default.aspx?scid=kb;en-us;Q295659 explains it all in detail this but in brief following three keys are important.
1. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Sr
2. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Srservice
3. HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\SystemRestore
Only some sub-keys of third key can be modified without harming your computer. Read the Microsoft Article to know what can not be modified.Following keys can be modified (copied from Microsoft Article):
CompressionBurst
This value, listed in seconds, specifies the idle time compression: The amount of time to compress data after the computer reaches its idle time. A service can compress data for the amount of time that is specified in this value, and then stop. Then, at the next idle time compression, the computer can repeat the process.
DiskPercent
This value relates to the percentage of disk space that System Restore uses for its data store. The default value is 12 percent. The data store size is always calculated as "max(12 percent, DSMax)," regardless of the size of the hard disk. The maximum (max) size is what is specified in DSMax. For hard disk sizes that are less than 4 gigabytes (GB) in size, 12 percent is less than 400 megabytes (MB), so "max(12 percent, DSMax) equals 400 MB." For hard disk sizes that are greater than 4 GB, 12 percent is greater than 400 MB, so "max(12 percent, DSMax) equals 12 percent." This data store size is not a reserved disk space, and the data store size is used only on demand.
DSMax
This value specifies the maximum size for the System Restore data store. The default size of the data store is 400 MB. The data store size is always calculated as "max(12 percent, DSMax)," regardless of the size of the hard disk. The maximum (max) size is what is specified in DSMax. For hard disk sizes that are less than 4 GB, 12 percent is less than 400 MB, so "max(12 percent, DSMax) equals 400 MB." For hard disk sizes that are greater than 4 GB, 12 percent is greater than 400 MB, so "max(12 percent, DSMax) equals 12 percent." This data store size is not a reserved disk space, and the data store size is used only on demand.
DSMin
This value relates to the minimum amount of free disk space that System Restore needs so that it can function during the installation process. Also, this value relates to the minimum amount of free disk space that is needed for System Restore to reactivate and to resume the creation of restore points after System Restore has been disabled because of low disk space.
RestoreStatus
This value specifies if the last restore operation failed (0), succeeded (1), or had been interrupted (2).
RPGlobalInterval
This value specifies, in seconds, the amount of time that System Restore waits before it creates the automatic computer check points for elapsed time. The default value is 24 hours.
RPLifeInterval
This value specifies, in seconds, the restore points Time to Live (TTL). When a restore point reaches this time and it is still on the system, it gets deleted. The default value is (7776000), which will be 90 days.
RPSessionInterval
This value specifies, in seconds, the amount of time that System Restore waits before it creates the automatic computer check points for session time (the amount of time that the computer has been on). The default value is zero (0), which means that this feature is turned off.
ThawInterval
This value specifies, in seconds, the amount of time that System Restore waits before it activates itself from a disabled state (after the conditions for this process to occur have been met). If you start the System Restore user interface, System Restore is activated immediately.


If you have a faster hard disk, keep your pagefile.sys
If you do not already know, pagefile.sys is your swap file. It makes common sense to put it on a hard disk that is fastest. So say if you have upgraded you machine and a newer and faster harddisk, change the pagefile location to that drive. Open registry and navigating to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SessionManager\ MemoryManagement and then looking for Paging files Change its drive location (on mine its says C:\pagefile.sys) to the one that is faster (say D:\pagefile.sys if D: denotes the faster drive).

Private information about who is logged on your computer at a time.
XP stores certain information about you as and when you are logged on in following places in registry:
Logged on User: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Logon User Name]
Personal: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personnal]
Default Document folder: [HKEY_CURRENT_USER\Volatile Environment\HOMEDRIVE]
.Net email account: [HKEY_CURRENT_USER\Software\Microsoft\MessengerService\ListCache\.NET Messenger Service\IdentityName]
Number of Open programs: [HKEY_CURRENT_USER\SessionInformation\ProgramCount]

Does your computer forgets to power off after shutdown ?
If this is is the case, try this. It may help. Open registry by going to START-RUN and entering REGEDIT and Navigating to [HKEY_CURRENT_USER\Control Panel\Desktop] and look for value of PowerOffActive key. If it is set to 0, set it to 1 . This may not work in all cases (specially if your hardware does not support APMS protocol) but is worth a try in other cases.


Have you been asked to insert Window XP CD whenever you install a new software ?
If this is is the case, you may want to automate the process a bit. Assuming you have enough disk space (meaning at least 600 MB extra), you can copy all that you have in your Win XP CD's \i386\ directory to your harddisk and change its pointer in registry. Assume you copy everything that you have in \i386 directory to say C:\i386 where C: is your hard disk, you can automate this process and avoid being asked for inserting CD by changing following entry in registry. Open registry and navigate to [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion and look for the key called SourcePath. Change this key's value to your hard disk path. Thats all.
Optimize your XP Pro system by tweaking service manager ? Remove unnecessary services !
This is important. You don't know how many services are started by your service manager everytime you boot your system. There is a very strong likelihood that some of these services are never of any use to you and as such you never directly or indirectly use them. If so, why delay the boot time and also degrade the system performance for no reason ! Stop this services from starting automatically. Here is How-to ! Open service manager by going to START-RUN and entering services.msc. Now in the right pane, you would see a list of services some of them would be started and others don't. Also they could be set to any of three status of start mode. "Manual", "automatic" and "disabled". If you double Click on any of these you would see detailed info on each of these. You have an option of starting or stopping the services running on your computer. If you are typical desktop user like most of us, it might be safe to disable and stop following services. But still do understand it before you do it. Also some of those listed below may not be available for you as well.
1. Portable Media Serial Number
2. DHCP Client
3. Distributed Link Tracking Client (Most likely you're not connected to a Windows 2000 domain )
4. DNS Client ( Again you're not connecting to a specific DNS server on your local network most of times)
5. FTP Publishing Service ( If you don't want your system to act as an FTP server. I don't !)
6. IIS Admin Service ( You computer may not be a WWW server and as such no need for this service )
7. IPSEC Policy Agent ( disable it if you're not connected to a Windows 2000 domain )
8. Messenger ( same reason...you may not be connected to a Windows 2000 domain )
9. Remote Registry Service (Typically you don't remotely access the Registry of other systems )
10. RIP Service (If you are a typical home user, you don't need your system to act as a router)
11. Run As Service ( This can also go since most likely you don't use any applications that run as an alias )
12. World Wide Web Publishing Service ( If you are a not into web publishing business,You don't need this as well)

Improve speed of of file search in WINDOWS XP PRO operating system.
If you have not already noticed, you soon will. Default search for a file in Windows Explorer takes a long time to complete. Yes thats correct. I had to wait for some time before I could do that when I was creating the screen print of *.msc search on my computer (see the article on gpedit.msc in list of tools link). Anyway bottom line is default search would be slow in XP, In fact slower than even a Window 98 PC. But there is a reason for it and couple of ways to tweak it. First the reason: One of the reasons XP's default file search takes so long is it not only looks for file names in your directories, it processes compressed (.zip and .cab) files, looking for your filename inside of these zipped files! There are few ways to improve your search.
Disable ZIP and CAB search:
This tip was brought to my attention by James Heinrich.

To disable Compressed Folders for zip files:
regsvr32 /u zipfldr.dll
For CAB files:
regsvr32 /u cabview.dll
All of a sudden it goes so much faster, and no need for indexing service,
or weird searching limitations.
Can always be re-enabled afterwards with the same command, minus the/u
Set index service on:
You can further improve the search bye turning the index service on ! Well it does not end here. You not only have to turn the index service on but also has to follow many do's and don'ts. Here are some of them.
1: Never search by putting criteria in the "All or part of the file name" box.
2. Enter your criteria in the "A word or phrase in the file" as described below - no matter what you want to achieve !
TO SEARCH FOR A FILE BY NAME:
Your search criteria must begin with:
@filename
or
#filename
followed by all or part of the filename you are looking for and you must put it in the "A word or phrase in the file: input area Wildcards * and/or ? are allowed:
TO SEARCH FOR A FILE BASED UPON A WORD OR PHRASE IN THE FILE:
Your search criteria must start with an exclamation mark
!yourcriteria
The exclamation mark forces use of the index. If the exclamation mark isn't used, Search Companion will begin a slow file-by-file physical search


Troubled by IE crashing unexpectedly for no reason? Launch it in its own process.
If you have seen it happening, you must hate it. You are working on something important (may be filling an application form, filing a tax return, view sensitive data what not or may be just reading an interesting site ) and out of no where an error is reported in iexplorer.exe and all instances of Internet explorer closes out. Isn't this painful ? Well sure it is , but what can you do (???) Well you can do some thing. Thats not the perfect solution but may be a good workaround till we achieve perfection. Open registry (by going to START-RUN and entering regedit) and navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer] and add a new string by the name "BrowseNewProcess" and set its value to "yes". That all. Doing this would open your Internet Explorer Browser in a separate process area of its own, and this would not shut down just because there was a problem with another instance of Internet Explorer. Hey this takes more memory but for those who can afford it offers a solution.

Don't want Num Lock to be switched on at boot time ? Shut it off.
This tip is not a performance tip but may be liked by those who like customization. If you are one of those who do not want NUMLOCK to be on at boot time, here is the trick. Open registry (by going to START-RUN and entering regedit) and navigate to [HKEY_USERS\.DEFAULT\Control Panel\Keyboard] and look for a string key by the name "InitialKeyboardIndicators". If its not there , create it else change its value to
0 to set NUMLOCK off or 2 to set NUMLOCK on.



Troubled by IE crashing unexpectedly for no reason? Launch it in its own process.
I am not a serious gamer but there was a time when I was playing a chilly eating game at Guiness book of records. Even with my best efforts I was not able to eat more than 72 chillies where as record was for that of 90 in a minute. I was wondering how could that happen ? Same goes with 1 minute short chess games on line. I think an accelerating mouse and pointing device was what I was missing (apart from the gamer skills !) Well if you want to accelerate your mouse , here a tip I found on Internet There is a logic order in the 64-bit hexadecimal values in the registry trick I am suggesting to you folks. When trying different values, you should come up with a diagram which displays a curve, this is the unwanted acceleration. Adjusting the values that the curve becomes a straight line resolves the mouse-acceleration. Open registry (by going to START-RUN and entering regedit) and navigate to [HKEY_CURRENT_USER\Control Panel\Mouse] and set value of "SmoothMouseXCurve" and
"SmoothMouseYCurve" as follows:
"SmoothMouseXCurve"=hex:00,00,00,00,00,00,00,00,00,a0,00,00,00,00,00,00,00,
40,01,00,00,00,00,00,00,80,02,00,00,00,00,00,00,00,05,00,00,00,00,00

"SmoothMouseYCurve"=hex:00,00,00,00,00,00,00,00,66,a6,02,00,00,00,00,00,cd,4c, 05,00,00,00,00,00,a0,99,0a,00,00,00,00,00,38,33,15,00,00,00,00,00 


Load Outlook Express faster. Stop Outlook express logo screen from poping up
Not a big deal but would help you get there faster. Open registry (by going to START-RUN and entering regedit) and navigate to [HKEY_CURRENT_USER\Identities\{** Identity ID **}\Software\Microsoft\Outlook Express\5.0] where Identity Id is your computer specific value (on my computer Identity Id is {9144D186-C4E5-462F-A269-E9F293F14A1D}) and look for value of "NoSplash ". If this is the first time, you may not see this key and if so add the DWORD key by the name "NoSplash ". Now sets its value to 1

Run Windows Explorer in its own process. Avoid Total Explorer Crash
This will further secure your windows explorer from crash though not a great idea if short on memory. Open registry by going to START-RUN and entering regedit. Navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] . In this look for value of "SeparateProcess". If available set its value to 1 and if not (which could be the case ) then add a DWORD key by the name "SeparateProcess" and set its value to 1.

If you would rather prefer not to change registry settings , you can get similar results by following steps mentioned below
Click on "Start" Menu
Clcik "My Computer"
Click on "Tools" Menu
Click "Folder Options"
Check "Lauch folder windows in separate process"
Stability would be more because each Folder window will start in separate process and will not cause system to halt in case one or more of such processes stop responding. Although it is supposed to provide better stability but may be at the cost of performance.


Secure your computer: Enable Advanced File System Security Options
This will further secure your windows explorer and not really a performance tweak. Open registry by going to START-RUN and entering regedit. Navigate to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa] . In this look for value of "forceguest". If available, its default value would be 1. Set its value to 1. This would enables Windows XP logic for advanced permissions


Define a logical value for System Cache
Depending upon how you intend to use your computer (like a workstation or server ), it may make sense to set the system cache. Open registry by going to START-RUN and entering regedit. Navigate to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management] . In this look for value of "LargeSystemCache". If available, do one of the following:
If intention is to use the computer like a workstation, set its value to 0.
If intention is to use the computer like a server, set its value to 1.

Control parsing of autoexec.bat
In Window 3.1 autoexec.bat was one of the few choices of executing any app at boot time. But its importance has gradually thinned. It is still supported but you can pretty much do without it for most part. If you do not need to parse the autoexec.bat (there may not be anything in it anyway !), you can tell Windows XP to do that. Open registry by going to START-RUN and entering regedit. Navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon] . In this look for value of "ParseAutoexec". If available, do one of the following:
If you want to disable parsing of autoexec.bat, set its value to 0.
If you want to enable parsing of autoexec.bat, set its value to 1


Disable default capability of Windows XP to open the compressed/zipped folder
I am comfortable with the default capability that Windows XP provides to unzip the zipped/compressed files/folders. But if you are used to winzip/pkzip or any other third vendor software, it may make sense to avoid confusion by disabling default unzipper code in windows. To do this go to START-RUN and entering "regsvr32 /u zipfldr.dll" (without quotes). To enable it go to START-RUN and entering "regsvr32 zipfldr.dll" (without quotes).



Automatically kill non-responding application at shutdown
Remember this ! It happens to all of us invariably sometime or the other no matter what you do. Don't you hate waiting for those extra seconds and then simply responding yes to the windows query. Well you have a remedy. You can tell Windows XP to automatically close all non responding windows. Open registry by going to START-RUN and entering regedit. Navigate to [HKEY_USERS\.DEFAULT\Control Panel\Desktopn] . In this look for value of "AutoEndTasks". If available, do one of the following:
If you want to enable automatic killing of non responding tasks, set its value to 1. to disable it set it back to 0


Improve Shutdown. Lets not save your active session's settings on exit
If you Don't care which windows app was located where when you are shutting down the system, this tip may in fact help improve the shutdown time a bit (a bit not too much)..Simply inform windows not to save the settings at exit time. To do this , open registry by going to START-RUN and entering regedit. Navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] . In this look for value of "NoSaveSettings". If available, do one of the following:
If you want to enable no save on exit, set its value to 1 else to save on exit. set it back to 0


Disable use of Win key
I am not sure why you would ever want to do this except probably if you do not have a windows enabled keyboard but here is the tip anyway (tip for the sack of tip !!!!). To disable use of Win key, open registry by going to START-RUN and entering regedit. Navigate to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] . In this look for value of "Scancode Map". Its binary data so be extra careful:
Set its value to "00 00 00 00 00 00 00 00 03 00 00 00 00 00 5B E0 00 00 5C E0 00 00 00 00" to disable the win key.
 


AutoReboot whenever Windows XP experiences BSOD (Blue Screen of Death!)
Since Windows XP is touted as most reliable Windows XP ever, you do not need this trick!. Well I am somewhat kidding. There is nothing in this world that is foolproof. I have faced this twice so far. To make windows reboot instead of producing the cryptic dump, open registry by going to START-RUN and entering regedit. Navigate to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl] . In this look for value of "AutoReboot". Setting its value to 1 will activate Autoreboot. By default this is the value on my system but just in case if you have a 0,set it to 1


 Laptop/portable computer users ! Undock without logon
I read about this over the Internet. This would allow you to undock without logging on to Window XP.To do this, open registry by going to START-RUN and entering regedit. Navigate to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] . In this look for value of "UndockWithoutLogon". Setting its value to 1 to enable it or 0 to disable it


Selectively clean the history of START-RUN list
If you have not cleaned the RUN entries for a while or you choose not to, you would have a list of them.If you want to selectively delete the entries do this.Open registry by going to START-RUN and entering regedit. Navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU] . In this look for various entries on right pane. You can choose what you want to delete and simply delete it. Or you can clear all command lines as well


Activate Automatic Boot Disk Optimization
To activate automatic boot disk optimization, do this.Open registry by going to START-RUN and entering regedit. Navigate to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction] . In this look for value of "Enable". You can set its value to "Y" to enable it


Restrict certain users from running an application
You can selectively restrict access to few apps and file names. To do this, open registry by going to START-RUN and entering regedit. Navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Policies\Explorer] and a sub-key by the name "DisallowRun". Within this key, add many string keys you like each mapped to an application or file that you want to be restricted


Do not let Regedit remember last changed key
You'll need to be in the admin account, or yours must have admin privileges.

In regedit, navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit] and look for the value LastKey. Double-click it and clear the string. Then right-click the Regedit key (in the left-hand pane) and select Permissions. Set Permissions to Deny for any/all users/group


How to use program aliases ?
You can use program aliases to run actual program. Well there are ways to hide actual program name. Not sure what's the good use for this tip but here it is anyway

In regedit, navigate to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths]. To create a new alias, create a sub-key, and call it the name of the alias you wish to create. Then modify the Default value of the sub-key to equal the fully qualified path and filename of the application you want to be launched



Change alignment of Start Menu panel.
This is a customizing tip. If you have noticed, START MENU PANEL has all the entries aligned to left. Well that's not a cause of concern but may be you are one of those who want it to be the other way, say you want it to align to right. This can be done by a quick registry tweak. In regedit, navigate to [HKEY_CURRENT_USER\Control Panel\Desktop] and look for key "MenuDropAlignment". Set its value to 1 to align the menu entry to right or if you did not like the idea of entries aligned to right, set it back to 0 for align back to left which is the Default XP behavior


Customize windows explorer's Default search
This is a customizing tip. If you want to customize your windows explorer search here are some tips. In regedit, navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer] and look for following keys
"CaseSensitive"
"IncludeSubFolders"
"SearchHidden"
"SearchSlowFiles"
"SearchSystemDirs"
Key names are self revealing. If you want a CaseSensitive search set its value to 1 else 0. This is the technique, if you prefer to enable any of the above feature, set its value to 1 else set it back to 0


Get back to old days, see the file attributes in Windows Explorer
I have noticed that in Windows Explorer, when you click on the detailed mode, you do not see the file attributes any more. This used to be there in previous versions of Windows (Well in office, I still use Windows 95 and Windows Explorer out there shows the file attributes). If you want to enable this setting, do this:
In regedit, navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ Explorer\Advanced] and look for key "ShowAttribCol". You may not find it there if this is your first time. In this case, create a new DWORD key "ShowAttribCol" and set its value to 1 to enable it


Stop a user from changing Start Menu
This can be considered a security tip. If you want to restrict modifications to Start menu, do the following:
In regedit, navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] and look for key "NoChangeStartMenu". Set its value to 1 to enable it to stop users from changing the Start Menu


How to enable/disable thumbnail cache
For performance reason, Windows explorer stores thumbnail of pictures in a cache. This is good but there is a problem. Some time caching mechanism would show incorrect pictures just because update process is not instantaneous. If you want to have thumbnail pictures refreshed every time (mind you, this would be an additional load on your CPU resources), do this:
In regedit, navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] and look for key "DisableThumbnailCache". You may not find it there if this is your first time. In this case, create a new DWORD key "DisableThumbnailCache" and set its value to 1 to disable caching mechanism


Disable Default CD Burning capability
If you have a good CD burning software, you may want to disable the CD burning capability. There are couple of ways to, do this:
REGISTRY METHOD
:
In regedit, navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer] and look for key "NoCDBurning". You may not find it there if this is your first time. In this case, create a new DWORD key "NoCDBurning" and set its value to disable it

ALTERNATE METHOD:
Go to your windows explorer and locate the drive that corresponds to CD-RW drive. Right click on it and select properties. Within Properties window, go to Recording tab and you would see and option called "Enable CD Recording on this drive". If it is checked , deselect it



Securing your WINDOWS XP computer
You can provide added level of security to your WINDOWS XP System. This is called securing your Windows XP accounts database. You can store all information related to your accounts in a encrypted form on a floppy disk. What this would do is that if You do not have access to your floppy disk, You can not access the system. I am not sure You realized what I just said ! Even if You know your userid/password, You will not be able to access the system unless and until You have this startup disk.
Process of generating the this secure startup floppy disk is simple. Go to START-RUN and type syskey. You would see a window coming up. Click on Upgrade command button. You would see another window poping up which will give You the option of storing the encrypted accounts database either locally or on your floppy disk. Choose floppy disk and click OK and let the process complete. You are done.
Next time You reboot the computer and get to the logon prompt, make sure that You have the floppy disk available in A: drive else You can not log on


How to restart Windows without restarting your computer
This one is again is. When you click on the SHUTDOWN button, make sure to simultaneous press SHIFT Button. If you hold the Shift key down while clicking on SHUTDOWN button, you computer would restart without restarting the Computer. This is equivalent to term"HOT REBOOT


How to print content of directory
Here work around is to create a DOS batch file with command to print the dir content into your printer port (make sure you know what is your printer port, in general it is LPT1 but it could be USB001 if you have it connected to USB port, right click on the printer icon and go to port tab and figure this out first) and then creating a context menu access this batch functionality. All right here are the instructions:
step 1:
Open a text editor, such as Notepad, and type the following lines into a new document: (assuming the printer you wish to use is connected to printer port #1).
CD %1
DIR>LPT1

Save the two-line file into your Windows\Command folder, and call it PRINTDIR.BAT.
step 2:
Find the file in Explorer, right click on it, and select Properties.
Click on the Program tab, turn on the Close on Exit option, choose Minimized from the Run list, and click Ok.
Next, run the Registry Editor (REGEDIT.EXE) by going to START-RUN and type regedit and navigate to
[\HKEY_CLASSES_ROOT\Directory\shell]. Select New from the Edit menu, and then select Key. Type Print for the name of this new key, and press Enter. Highlight the new Print key, select New from the Edit menu, and then select Key again. Type command for the name of this new key, and press Enter. Double-click on the (default) value in the right pane, and type C:\Windows\Command\PRINTDIR.BAT (assuming that C:\Windows\ is your Windows folder).
From now on, when you right-click on a folder icon, you can click Print to print its contents. Note: this assumes that your printer is connected to the LPT1 port, which is true for most users. However, if your printer is connected over a network or you have more than one printer, you need to change LPT1 to the correct port


Using third part defrag utility ? Make it defrag all files
I read about this tip on web. If you are using a third party defrag utility, you can make it defrag all files. Go to C:\Windows\Prefetch directory and removing/deleting layout.ini file


Speedup boot time by improving NTFS check
CHKNTFS is the command used to set the AUTOCHK initiation count down time. You can reduce it from default 9 seconds to a much lower value say 4 seconds. Go to command prompt and type CHKNTFS/T:4 This command would set the AUTOCHK initiation count time down to 4

How to kill the IE About windows that popup from time to time
There is an Internet Explorer vulnerability to which allows some web sites to open a hidden popup tracking minimized window either upon your first visit or when you leave their web site or even when you close your browser while one of their web pages is still displayed. They do this by using the little known "about:" browser built-in command into their HTML/DHTML/XML code. Sometimes this window Go undetected as these are not resizable as you come to expect of a typical window app. If you do not have anything specific with www.about.com, there could be a registry tweak that you can do. Run the Registry Editor (REGEDIT.EXE) by going to START-RUN and type regedit and navigate to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
Internet Settings\ZoneMap\ProtocolDefaults]
and add two DWORD keys"about" and "about:" and set its value to 4


What is Master Bood Record ? How to fix problems with master boot record
So what is Master Boot Record (MBR)? Master boot record is the first sector of the disk that is accessed by you computer BIOS as soon as it boots up. So what does it mean ? It means that your ability to boot to a particular operating system depends upon the correctness of Master Bood Record. If you have ever installed two or more operating system, your ability to select an operating system is controlled by master boot record. Assume if you are not able to boot due to your dislike of the changes in boot loader process or corruption in MBR (btw, this could happen for a variety of reasons, right from virus to your own experiments with multi boot process.. I have seen this happening a lot on my PC since I have a dual cpu system with Mandrake 8.1 on one partition and Windows XP on another with Mandrake graphical Master Boot Menu ) you have to correct the master boot record.
Assuming you are in Windows XP, you have to put WINDOWS XP CD in your drive and make it reboot next time in recovery console.
1. Simplest way to do this would be to would be to navigate to START-RUN and type
D:\i386\winnt /cmdcons (D: is the CDROM drive in my computer) and let the process finish and reboot.
2. Once rebooted, system would prompt you to choose recovery console and chose it by entering proper menu id number (by default should be 1). Once console is loaded do enter this command
FIXMBR /device/harddisk0 (where harddisk0 refers to C: drive where WINDOWS XP is installed by default). This would fix your master boot record to default XP boot. By the way FIXMBR command is only available from recovery console

http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/winxppro/proddocs/bootcons_fixmbr.asp


How to write a new partition boot sector to the system partition
Are you look for a way to correct the partition boot sector, here is a quick fix. You have to put WINDOWS XP CD in your reboot the computer next time in recovery console. Here are the steps after you put your XP CD and boot into recovery console (Choose R for Recovery console when Windows XP setup disk starts)
1. Once console is loaded do enter this command
FIXBOOT C:(where C: is the hard disk drive where WINDOWS XP is installed by default)

http://www.microsoft.com/technet/treeview/default.asp?url=/TechNet/prodtechnol/winxppro/proddocs/bootcons_fixboot.asp


How to change the text in START Button in task bar ?
I have received many emails from users on this topic. In Windows XP Pro, you can change your Start button and you are not even restricted with 5 characters as it used to be the case in previous version of Windows but the process itself of modifiying the start button is a bit more tedious than what it used to be. Anyways, gist of act is to modify your
1. First of all, make a backup of your explorer.exe This is one of the most important executables of your operating system and incase you make a mistake, you should have its backup to fall back on to ! You will see this file in C:\Windows directory. Go there, make a copy and change its name to something you remember like "explorerold.exe or explorer.old".
2. Download a freeware called ResourceHacker by going to

http://www.rpi.net.au/~ajohnson/resourcehacker  3. Now, lauch resource hacker and locate your explorer.exe by going to c:\windows. Now go to String Table>37>1033. This is where the START text is located. Change it whatever you would like....
4. Once done with the changing START button text, click on the button called "Compile Script". Now its time to save the changes.
Important: Save the file as explorer_modified.exe (or something similar). You can not save it as explorer.exe as file is in use as you are exploring the directories etc etc.
5. All right, reboot the computer and boot into safe mode in command prompt environment (at boot time press 'F8' a few times...) and log in as administrator.
6. Now all that you need to do is to copy the modified explorer file to original one.
Type this at command prompt "copy c:\windows\explorer_modified.exe to c:\windows\explorer.exe" (without quotes)
7. Reboot your computer as you would normally do.

If you have followed the steps correctly, you should have new explorer by now


How to disable screen saver in Windows XP ?
One of the easiest things that you can do to remove screen saver is to simply select none from the Screen Saver tab of Desktop properties window. This should help. Doing this would be all that most of us would ever need for those few who want to go one more level, here is what you can do. Windows has a default screen saver called login.scr, which runs even if no screen saver has been selected. There is a potential security risk here as login.scr can be removed and replaced with malicious screen saver with system priviledges.
To resolve this, Open registry and navigate to [HKEY_USERS\.DEFAULT\Control Panel\Desktop] and look for the data key "ScreenSaveActive". Setting its value to 0 would disable screen saver (you can always enable it by setting it back to 1). You may as well change the login.scr that is goes as the value of data key 'SCRNSAVE.EXE' .Try clearing out the value for 'SCRNSAVE.EXE' to completely remove the screen saver or replace it with some thing of your own


How to stop XP from displaying unread messages count on Welcome Screen?
I received few mails from users requesting HowTo on disabling unread message count from Welcome Screen.
To stop XP from displaying count of unread messages, Open registry and navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UnreadMail] and look for the data key "MessageExpiryDays". If you do not see this key, create one DWORD key by the name "MessageExpiryDays". Setting its value to 0 would stop Windows XP from displaying the count of unread mesages


How to rollback a device driver ?
There are times when you install an ungrade to a device driver but instead of getting an upgrade you get downgraded in the sense that either you loose on performance or its stoping functioning at all. In situation like this where you are still able to logon with System priviledges, you can roll back the driver. Even though this can not be considered as a tweak, but it could save you a good deal of time and disappointment.
Here are the steps:


Step:1 Log in with an administrator account
Step:2 Right click on My Computer
Step:3 Select Properties
Step:4 Click on the Hardware tab
Step:5 Click on the Device Manager button
Step:6 Select the device you want to rollback or reconfigure
Step:7 Click on the Driver tab and then click on the Roll Back Drive button 


Windows XP Command Line Reference 

You would be surprised to know what you can do from command line of Windows XP Pro. Windows XP Pro comes equipped with a powerful set of command line utilities. If you want to know what they are and how to run them and a good decription of each of them...go no futher.. Its available right in your computer. This is again not a tip or trick or tweak of any kind but information that is as powerful as any of the tips/tricks.

Open START-RUN window and type C:\WINDOWS\Help\ntcmds.chm
Also you may not know that .chm is the windows help file extension. I find the Windows Help to be a very good starting point to learn all the power and resources of Windows environment. I like section of NETSH and Windows scripting host among other things. You can read most of it in the reference but here I am doing a cut/paste of the new command line tools.

The following table lists the new Windows XP Professional command-line tools.

Command

Features

bootcfg

Configures, queries, or changes Boot.ini file settings.

defrag

Locates and consolidates fragmented boot files, data files, and folders on local volumes.

diskpart

Manages disks, partitions, or volumes.

driverquery

Queries for a list of drivers and driver properties.

eventcreate

Enables an administrator to create a custom event in a specified event log.

eventquery

Lists the events and event properties from one or more event logs.

eventtriggers

Displays and configures event triggers on local or remote machines.

fsutil

Manages reparse points, managing sparse files, dismounting a volume, or extending a volume.

getmac

Obtains the media access control (MAC) address and list of network protocols

helpctr

Starts Help and Support Center.

ipseccmd

Configures Internet Protocol Security (IPSec) policies in the directory service, or in a local or remote registry. Ipseccmd is a command-line version of the IP Security Policies Microsoft Management Console (MMC) snap-in.

logman

Manages and schedules performance counter and event trace log collections on local and remote systems.

openfiles

Queries, displays, or disconnects open files.

pagefileconfig

Displays and configures the paging file Virtual Memory settings of a system.

perfmon

Enables you to open a Performance console configured with settings files from Windows NT 4.0 version of Performance Monitor.

prncnfg

Configures or displays configuration information about a printer.

prndrvr

Adds, deletes, and lists printer drivers from local or remote print servers.

prnjobs

Pauses, resumes, cancels, and lists print jobs.

prnmngr

Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer.

prnport

Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration.

prnqctl

Prints a test page, pauses or resumes a printer, and clears a printer queue.

relog

Extracts performance counters from performance counter logs into other formats, such as text-TSV (for tab-delimited text), text-CSV (for comma-delimited text), binary-BIN, or SQL.

sc

Retrieves and sets information about services. Tests and debugs service programs.

schtasks

Schedules commands and programs to run periodically or at a specific time. Adds and removes tasks from the schedule, starts and stops tasks on demand, and displays and changes scheduled tasks.

shutdown

Shuts down or restarts a local or remote computer.

systeminfo

Queries the system for basic system configuration information.

taskkill

Ends one or more tasks or processes.

tasklist

Displays a list of applications, services, and the Process ID (PID) currently running on either a local or a remote computer.

tracerpt

Processes event trace logs or real-time data from instrumented event trace providers and allows you to generate trace analysis reports and CSV (comma-delimited) files for the events generated.

typeperf

Writes performance counter data to the command window or to a supported log file format.

WMIC

Eases the use of Windows Management Insturmentation (WMI) and systems managed through WMI.


Enable 5th zone setting in Internet Explorer 6.0
I read about this a few days ago. There a fith setting in Internet Explorer 6 called my computer which is diabled by default. If you want to enable this, Open registry by going to START-RUN and entering regedit and then navigate to [HKEY_CURRENT_USER\Software\Microsoft\ Windows\CurrentVersion\InternetSettings\Zones\0] and look for the data value called "flags". Its default value is 33 ("Flags"=dword: 0X00000021 ) . Chage its value 1 and reboot. Now you should see an option called
my computer in Internet Explorer 6 Zone settings


Are you annoyed by XP asking for registration again & again ?
First of all, this trick must only be used by those who have legal copy of XP and are troubled by registrations reminders every now and then. Before you begin, make sure PC must not be connected to the network. During XP setup answer no when setup asks you to use Windows Dynamic Update. Dynamic update connects to Microsoft to register XP. Once the installation is completed, reboot to Safe mode.
Go to Windows Explorer and rename %systemroot%\System32\regwizc.dll and %systemroot%\System32\Dllcach\regwizc.dll to regwizc.dll.bak or whatever. By renaming the regwizc DLL, it blocks other windows components from registering XP to Microsoft.
Now, navigate to [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion] and look for the data key "RegDone" and set its value to 1 to make XP believe that its registered .
Change the IE home page to something besides Microsoft's web site.
Reboot to Normal mode and reconnect your nic card before the XP Windows GUI loads


Turn off the descriptions that poppup when you place the cursor on windows object
If you want to turn off the descriptions that poppup when you place the cursor above desktop icons or Explorer objects, you can use the following registy hack: .
Navigate to [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion \Explorer\Advanced] and look for the data key "ShowInfoTip" and set its value to 0 to disable it. In future if you want to enable it again, simply change it back to 1 


Disable XP warning on low disk space ?
XP warns you on three different occassions with messages related to low disk space.
when this is true : 80 MB <>


Improve system performance by disabling last access/update feature
NTFS file system in XP maintains liast access/update details for each file and directory. This information is useful sometimes but for an average user this may not be of much use most of the times. Doing this takes considerable resources and as such it may make sense to diable it. Even after disabling it you still have access to last modified info which would still be available. To disable lass access update feature, do as follows:

Navigate to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem] and look for the data key "NtfsDisableLastAccessUpdate" and set its value to 1 to disable lass access update feature


 How to enable/disable command prompt extension ?
NTFS file system in XP maintains liast access/update details for each file and directory. This information is useful sometimes but for an average user this may not be of much use most of the times. Doing this takes considerable resources and as such it may make sense to diable it. Even after disabling it you still have access to last modified info which would still be available. To disable lass access update feature, do as follows:

Navigate to [HKEY_CURRENT_USER\Software\Microsoft\Command Processor] and look for the data key "EnableExtensions" and set its value to 1 to enable command prompt extension or 0 to disable this feature.
You can enable/disable the extensions for the command shell you are in by issuing the following commands:
cmd /y disables command extensions for this cmd session
cmd /x enables command extensions for this cmd session 


Do you hate that "Local Area Connection A network cable is unpluged" or MSN-Messenger icon in your System Tray and want to get rid of that ?

Right Click on "Start" Menu
Click "Properties" Tab
Click "Taskbar" Tab
Click "Hide inactive icons" if not Checked
Click on "Customize" Button
Click the Notification item you want to change under Current Items
Select "Always Hide" behaviour under the Behavior column

Click "Ok" and then click "Apply"


How do I get Volume Control icon in system tray that is available with all earlier version of Windows ?


To add the Volume Control icon to the taskbar
Click on "Start" Button
Click on "Control Panel"
Click on "Sound, Speech, and Audio Devices"
Click on "Adjust the system volume" or "Change Speaker Settings" or Sounds and Audio Devices
Click "Place volume icon in the taskbar" in Device Volume Secion on "Volume" Tab
Click on "Apply"

If you cann't see the Speaker icon in your system tray then do the following additional settings.
Right-click the taskbar
Click "Properties".
Select the "Hide inactive icons" check box, under "Notification area", on the "Taskbar" tab,
Click "Customize" Button.
In the Name column, click Volume
Click "Always show" behaviour from the drop down list, in the Behavior column
Click "OK" and then "Apply" Buttons


Enable drag and drop operation to add custom menu links to Start Menu

Right Click on "Start" Menu
Click "Properties"
Click "Start Menu" Radio Button
Click on "Customize" Button
Click on "Advanced" Tab
Click "Enable draggin and dropping" Checkbox.
Click "Ok" and then click "Apply"

No comments:

Post a Comment