Friday, October 23, 2009

disable auto reboot when error occured (blue screen)

This will show you how to disable automatic restart option in registry, follow these steps.
  • Open registry editor
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl
  • In the right side double click AutoReboot key
  • Change the value to 0 to disable and 1 to enable
  • Exit registry editor and restart pc

windows low on registry space (win 2000)

The most possible cause for this is errors in windows partition, as a result of this error you cannot change the page file values. the first thing to try is using scandisk.

Solution
  • Start command prompt
  • Type chkdsk /f and press enter, this will ask to schedule scandisk in next restart, press y
  • In the restart system will scan the partition you specified, after login to windows your problem will be fixed.
Verify pagefile in registry
  • Start > run
  • Type regedit and press enter
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
  • In the right side open pagingfiles key
  • The default registry value described in here, for example if you set initial size of 2046 and maximum size of 4092 for your pagefile, your registry key value should be C:\pagefile.sys 2046 4092

reduce the time of operating system selection menu

If your pc in a dual boot mode (such as xp and vista) you notice that every time you restart or switch on pc operating system selection menu is displayed, the default timeout is 30 seconds, if you want you can reduce default timeout. follow these steps.

  • Right click on my computer and click properties
  • Click on advanced tab
  • Under "startup and recovery" click settings tab
  • Now reduce the timeout by clicking the down arrow head in "time to display list of operating systems"
  • After done click ok
  • Then click apply and ok
  • Reboot the pc and you can see the changes for default timeout
Also you can change the default highlighted operating system to most you preferred, for example if you use windows xp and vista, the xp will be on the top and vista will be second choice, but it always highlighted default operating system as vista, if no selection been made before timeout, pc loads windows vista. you can change the default highlighted operating system, to do this follow these steps.

  • Right click on my computer and click properties
  • Click on advanced tab
  • Under "startup and recovery" click settings tab
  • In here under "default operating system" the first displayed operating system is the default highlighted operating system, to change the order click down arrow head and select the other operating system you prefer, after done click ok
  • Reboot the pc to see the changes

to view hidden and super hidden files

To view hidden files in you need to deselect some options in folder option. note that most viruses hide itself for further infections and more damaged to your pc, when you enabled view hidden files option, you can safely delete those viruses, some viruses run itself as a active process, there for you may not be able to delete viruses easily. use runscanner utility to kill virus process. to view hidden files
  • Start > run
  • Type control.exe folders and press enter
  • In the folder option window, click on view tab
  • Under "advanced settings" select show hidden files and folders also deselect hide protected operating system files (recommend)
  • Click apply and ok
After doing this you can see hidden file and folders, for example just go to the root of C: drive, notice that no of hidden files were in the root of drive (such as "ntldr, ntdetect) read this about how to enable hidden files using registry file.

Tuesday, October 13, 2009

configure schedule smart disk cleanup in xp

This tip will show you how to create smart disk cleanup, to do this we need to create one batch file, please note that this will clear prefetch files also. follow these steps.
  • Create new text document
  • Type or copy the following inside text document
  • c:\windows\system32\cleanmgr.exe /dc /sageset: 1
    c:
    cd \
    cd c:\windows\prefetch
    del *.* /q
  • Now save the text file and change the extension of the file from .txt to .bat (ex - cleanup.bat)
  • Now open the bat file you created, this will open disk cleanup settings window
  • In here select the options (by clicking check box) you want to configure for disk cleanup
  • Click ok
  • Now open the bat file again for editing (right click the file and click edit)
  • Change the first line to c:\windows\system32\cleanmgr.exe /dc /sagerun: 1
  • Save the file
  • Execute file for disk cleanup
You can also add schedule task for smart disk cleanup
  • Open schedule task folder (start > run > type tasks > press enter)
  • Double click add schedule task
  • Click next
  • Click browse button
  • Specify the disk cleanup bat file we created
  • In the name field type anything, and select the action under "perform this task"
  • Now proceed with the schedule task, and click finish at the end.