Saturday, December 20, 2008
Logon - Logoff issue in Windows XP - Immediate Logout after Login
2. Boot the system using the Windows XP CD-ROM. In the first screen when the Setup begins, read the instructions press "R" (in the first screen) enter the Recovery Console.
3.Type-in the built-in Administrator password to enter the Console. You'll see the prompt reading C:\Windows (Or any other drive-letter where you've installed XP)
4.Type the following command and press Enter. CD SYSTEM32
(If that does not work, try CHDIR SYSTEM32)
5.COPY USERINIT.EXE WSAUPDATER.EXE
Quit Recovery Console by typing EXIT and restart Windows.
You'll be able to login successfully as you've created the wsaupdater.exe file (now, a copy of userinit.exe) Now, change the USERINIT value in the registry (see Phase II in this page) and change it accordingly.
Phase II - Fixing a registry entry which causes the Quick Launch issue (not retaining the settings)
Click Start, Run and type REGEDIT. Navigate to:
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ WindowsNT \ CurrentVersion \ Winlogon
In the right-pane, change the value of Userinit to "C:\WINDOWS\system32\userinit.exe,"
Type the above value exactly as given, including the comma - exclude the quotes. Also, change the path to userinit.exe appropriately if Windows is installed in a different drive.
Close Registry Editor and restart Windows. The Quick Launch settings should be retained now.
Advanced troubleshooting - Diagnostic and Selection startup modes
1. Click Start, click Run, type msconfig, and then click OK.
2. On the General tab, click Diagnostic Startup, and then click OK.
3. Restart your computer.
If the problem does not occur, use Selective startup mode to try to find the problem by turning individual services and startup programs on or off.
Selective startup:
Selective startup enables you to select the files and the settings that you want the computer to load when you restart the computer. Select from the following options:
• Process System.ini File
• Process Win.ini file
• Load System Services
• Load Startup Items
By default, no options are selected. The following actions apply to these options:
To perform a selective startup, follow these steps:
1. Click Start, click Run, type msconfig, and then click OK.
2. On the General tab, click Selective Startup.
3. Select or clear the available settings.
4. Click OK.
5. Restart your computer.
6. Repeat steps 1 through 5 until you find the problem.
Change individual file settings :
1. Click Start, click Run, type msconfig, and then click OK.
2. Click a tab: System.ini, Win.ini, Boot.ini, Services, or Startup.
3. Select or clear the available settings.
4. Click OK.
5. Restart your computer.
6. Repeat steps 1 through 5 until you find the problem.
System.ini and Win.ini options:
• Check boxes enable you to enable or to disable an option. To enable an option so that it loads at startup, select the check box or select the option, and then click the Select button. To disable an option so that it does not load at startup, clear the check box or select the option, and then click the Disable button.
Note When you click to clear a check box for an item or a line, the Selective Startup option on the General tab is automatically selected.
Manually extract a file:
If you have to fix a corrupted file, extract the individual Windows file from the CAB files. To do this, follow these steps:
1. Click Start, click Run, type msconfig, and then click OK.
2. On the General tab, click Expand File.
3. In the File to restore box, type the name of the file that you want to restore.
4. In the Restore from box, type the path of the Windows XP .cab file from which you want to restore the file. Or, click Browse From to locate the Windows XP .cab file.
Note The Windows XP .cab files are stored in the I386 folder on the Windows XP installation CD.
5. In the Save file in box, type the path of the folder to which you want to extract the new file. Or, click Browse To to locate the folder that you want.
6. Click Expand.
7. In the System Configuration Utility dialog box, click OK. If you are prompted to restart the computer, click Restart.
Return to normal startup:
After you complete your troubleshooting and fix your configuration, return to a normal startup. Follow these steps:
1. Click Start, click Run, type msconfig, and then click OK.
2. On the General tab, click Normal startup.
3. Click OK.
4. Restart your computer.
| Msconfig > Boot.ini > Options: |
| Microsoft recommends that you don’t attempt to use MSCONFIG to edit BOOT.INI unless you’re directed to do so by a Microsoft support professional. |
Boot tab summary:Safe boot
* Minimal - Safe mode
* Alternate shell - Safe mode with Command Prompt
* Active Directory repair - Directory Services Restore mode (domain controllers only)
* Network - Safe mode with networking
Note: This does not load the network configuration, but instead loads a generic TCP/IP network configuration.
No GUI boot - When this option is selected, the VGA video driver responsible for presenting bitmapped graphics during the Windows startup process is not initialized. The driver is used to display startup progress information and error messages. Disabling this disables Windows ability to do those things.
Boot log - Enable Boot Logging. This is the mode to use when you are debugging problems that are regularly reproducible.
Base video - The computer starts up using the standard VGA video driver. Use this switch if you have installed a graphics driver that is not working.
OS boot information - Displays the driver names while they are being loaded. Use this switch if Windows does not start up and you believe that a driver is missing.
Boot option pane :
The most valuable functions on the BOOT.INI tab are the boot options, which are explained below. You can use these five choices for a variety of troubleshooting techniques.
- /SAFEBOOT gives you four suboptions for starting the computer.
- /SAFEBOOT with MINIMAL starts the computer in Safe Mode.
- /SAFEBOOT with NETWORK starts the computer in Safe Mode with networking support.
- /SAFEBOOT with DSREPAIR is used to repair Directory Services on Domain Controllers.
- /SAFEBOOT with MINIMAL (ALTERNATESHELL) starts the computer in Safe Mode with Command Prompt.
- /NOGUIBOOT starts the computer without the VGA video driver that displays graphics during the boot process and Blue Screen crash information.
- /BOOTLOG enables boot logging to help you debug and troubleshoot startup problems.
- /BASEVIDEO starts the computer using a standard VGA video driver, as opposed to the one installed for the graphics card.
- /SOS causes the driver names to be displayed when they’re loaded. You can use this switch to diagnose driver-related issues.
Note
/SAFEBOOT with NETWORK does not load the normal network configuration; instead, it loads a generic TCP/IP network configuration.
| Figure E |
The BOOT.INI Advanced Options screen, shown in Figure E, offers you four more options for starting your computer.
- /MAXMEM limits the amount of memory that Windows XP can use. You can use this switch if you believe that your system has a bad memory chip.
- /NUMPROC limits the number of processors used in a multiprocessor system.
- /PCILOCK stops Windows XP from dynamically assigning system resources to PCI devices. The devices will use the BIOS configuration instead.
- /DEBUG starts the computer in debugging mode. It allows you to configure the machine with three additional suboptions, as follows:
- /DEBUG with /DEBUGPORT specifies the communications port to be used for debugging.
- /DEBUG with /BAUDRATE specifies the baud rate to be used for debugging. The default baud rate is 9600 with a modem and 19200 with a null-modem cable.
- /DEBUG with /CHANNEL specifies the 1394 communications channel for debugging.
The MSCONFIG Services tab, shown in Figure F, allows you to prevent specific services from starting when the computer is started. This is extremely useful when you’re troubleshooting service-related problems.
| Microsoft has designed the majority of services in Windows XP. To make it easier to find a non-Microsoft service, you can select the Hide All Microsoft Services option. |
Troubleshooting using the Startup tab:
The Startup tab lets you prevent items in your startup folder from starting when you log in. As you can see in Figure G, you can simply deselect the service to prevent it from starting. If you want to disable all the services, click the Disable All button. To enable all the services again, click the Enable All button.
System restore : Windows XP
• System checkpoints that Windows schedules
• Manual restore points that you specify with the System Configuration utility
• Installation restore points that occur before you install a program or a service
You can use the system checkpoints or the installation restore points to restore your computer's settings to a date when it operated correctly. This may also help determine the cause of the configuration error.
To perform a system restore, follow these steps:
1. Click Start, click Run, type msconfig, and then click OK.
2. On the General tab, click Launch System Restore.
3. Select Restore my computer to an earlier time, and then click Next.
4. Calendar dates in bold are possible restore points. Click the most recent one to view system restore information.
5. Select a system checkpoint or an installation restore point, and then click Next.
6. Close all other programs.
7. To start the system restore, click Next.
8. Your computer restarts.
9. Repeat steps 1 through 8 until you fix your configuration issue.
FIX & Bootcfg Commands on Recovery Console
ex: fixboot c:
Use this command to write the new Windows boot sector code on the system partition. In the command syntax, drive name is the drive letter where the boot sector will be written. This command fixes damage in the Windows boot sector. This command overrides the default setting, which writes to the system boot partition. The fixboot command is supported only on x86-based computers.
# Fixmbr repairs the startup partition's master boot code:
The variable device is an optional name that specifies the device that requires a new Master Boot Record. Omit this variable when the target is the startup device.
fixmbr \device\harddisk2
Fixmbr Command Syntax: fixmbr (device_name)
device_name = This is where you designate the exact drive location that a master boot record will be written to. If no device is specified, the master boot record will be written to the primary boot drive.
Fixmbr Command Examples: fixmbr \Device\HardDisk0
In the above example, the master boot record is written to the drive located at \Device\HardDisk0. In this example, the master boot record is written to the device that your primary system is loaded onto. If you have a single installation of Windows installed, which is normally the case, running the fixmbr command in this way is usually the right way to go.
# Bootcfg modifies the Boot.ini file for boot configuration and recovery.
What Is the Bootcfg Command?:
The bootcfg command is a Recovery Console command used to build or modify the boot.ini file, a hidden file that is used to identify in what folder, on which partition, and on which hard drive Windows is located.
Bootcfg Command Syntax: bootcfg /list
/list = This option will list every entry in the boot list in the boot.ini file.
bootcfg /scan
/scan = Using this option will instruct bootcfg to scan all drives for installations of Windows and then display the results.
bootcfg /rebuild
/rebuild = This option will step you through the process of rebuilding the boot.ini file.
bootcfg /default
/default = the /default switch sets the default boot entry in the boot.ini file.
bootcfg /add
/add = This option allows for the manual entry of a Windows installation in the boot.ini boot list.
bootcfg /rebuild
In the above example, the bootcfg command scans all drives for any Windows installations, displays the results, and steps you through building the boot.ini file.
#Diskpart What Is the Diskpart Command?:
The diskpart command is a Recovery Console command used to create or delete partitions on hard drives.
Diskpart Command Syntax: diskpart /add
/add = The /add option will create a new partition on the specified hard drive.
diskpart /delete
/delete = This option will remove a specified partition on a specified hard drive.
Diskpart Command Examples:
diskpart /add \Device\HardDisk0 5000
In the above example, the diskpart command creates a 5,000 MB partition on the hard drive located at \Device\HardDisk0.
diskpart /delete \Device\HardDisk0\Partition1
In the above example, the diskpart command will remove the Partition1 partition located on the hard drive \Device\HardDisk0.
diskpart /delete G:
In the above example, the diskpart command will remove the partition currently assigned the drive letter
Missing or Damaged Driver File
1. Insert the Windows XP CD-ROM into the CD-ROM or DVD-ROM drive, and then restart the computer. Select any options that are required to start the computer from the CD-ROM or DVD-ROM drive if you are prompted to do so.
2. When the "Welcome to Setup" screen appears, press R to start Recovery Console.
3. If your computer is configured for dual booting or multiple booting, select the relevant Windows XP installation.
4. When you are prompted to do so, type the administrator password, and then press ENTER.
Note In Windows XP Home Edition, the administrator password is\ blank by default.
5. At the command prompt, type the following command, and then press ENTER:
cd windows\system32\drivers
6. To rename the damaged driver file, type the following command, and then press ENTER
ren drivername.sys drivername.bak
where drivername is the name of the damaged driver file.
7. To copy the driver from the Windows XP CD-ROM to the Drivers folder, type the following command, and then press ENTER
copy cd-rom:\i386 drivername
where cd-rom is the drive letter for the drive that contains the Windows XP CD-ROM.
8. Type exit, press ENTER, and then restart the computer.
Missing or Damaged User32.dll File
1. Insert the Windows XP CD-ROM into the CD-ROM or DVD-ROM drive, and then restart the computer. Select any options that are required to start the computer from the CD-ROM or DVD-ROM drive if you are prompted to do so.
2. When the "Welcome to Setup" screen appears, press R to start Recovery Console.
3. If your computer is configured for dual booting or multiple booting, select the relevant Windows XP installation.
4. When you are prompted to do so, type the administrator password, and then press ENTER.
NOTE: In Windows XP Home Edition, the administrator password is\ blank by default.
5. At the command prompt, type the following command, and then press ENTER:
cd windows\system32
6. To rename the User32.dll file, type the following command, and then press ENTER:
c:\windows\system32\ren user32.dll user32.bak
7. To expand a new copy of the User32.dll file from the Windows XP CD-ROM to the System32 folder, type the following command, and then press ENTER:
expand cd-rom:\i386\user32.dl_ c:\windows\system32
where cd-rom is the drive letter for the drive that contains the Windows XP CD-ROM, and c:\windows is the drive letter and folder in which Windows XP is installed.
8. Type exit, press ENTER, and then restart the computer.
If Windows XP still fails to start, you may need to perform an in-place upgrade (also called a repair install)
Black startup screen is briefly displayed and your computer restarts repeatedly when you try to start Windows XP
| • | A fatal system error (STOP error) causes the computer to stop. |
| • | The Automatically restart option is selected under System failure in the Startup and Recovery dialog box in System Properties. |
| • | The Windows XP paging file is smaller than the amount of physical memory that is installed on the computer, or there is insufficient free space on the hard disk to write the error dump file (Memory.dmp). |
Method 1
| 1. | Try to replace the registry hives from the repair directory by using the Recovery Console, and then restore the system to a current state with System Restore. |
| 1. | Install Windows XP to a different folder. |
| 2. | Click Start, and then click Run. |
| 3. | In the Open box, type regedit, and then click OK. |
| 4. | Browse to the following registry subkey: HKEY_LOCAL_MACHINE |
| 5. | On the File menu, click Load Hive. |
| 6. | Navigate to the System file in the original Windows XP installation location.
%SystemRoot%\System32\Config\System |
| 7. | Type an arbitrary name when you are prompted for a key name in the Load Hive dialog box.
|
| 8. | In the arbitrary name key (where arbitrary name is the name that you assigned the HKEY_LOCAL_MACHINE registry key from the original Windows installation), browse to the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CrashControl |
| 9. | In the right pane of the Registry Editor window, double-click AutoReboot. |
| 10. | In the Value data box, type 0 (zero), and then click OK. |
| 11. | Click the minus sign to collapse the HKEY_LOCAL_MACHINE registry subkey. |
| 12. | On the File menu, click Unload Hive. |
| 13. | On the File menu, click Exit. |
Method 3 :
| 1. | Click Start, and then click Run. |
| 2. | In the Open box, type regedit, and then click OK. |
| 3. | Browse to the following registry subkey: HKEY_LOCAL_MACHINE |
| 4. | On the File menu, click Load Hive. |
| 5. | Navigate to the System file in the original Windows XP installation location. By default, this is stored in the following location: %SystemRoot%\System32\Config\System |
| 6. | Type an arbitrary name when you are prompted for a key name in the Load Hive dialog box.
|
| 7. | In the arbitrary name key (where arbitrary name is the name that you assigned the HKEY_LOCAL_MACHINE registry key from the original Windows installation), browse to the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Memory Management |
| 8. | In the right pane of the Registry Editor window, double-click PagingFiles. |
| 9. | In the Value data box, edit the first numeric value after c:\pagefile.sys (where c: is the drive on which the pagefile is stored) to increase it to a number that is at least 1 MB greater than the amount of physical memory in the computer.
c:\pagefile.sys 130 256 |
| 10. | Click OK. |
| 11. | Browse to the following location in the registry hive that you loaded from the original Windows installation: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CrashControl |
| 12. | In the right pane of the Registry Editor window, double-click CrashDumpEnabled. |
| 13. | Type 1 (one) in the Value data box if it is not already present, and then click OK. |
| 14. | Click the minus sign to collapse the HKEY_LOCAL_MACHINE registry subkey. |
| 15. | On the File menu, click Unload Hive. |
| 16. | On the File menu, click Exit. |
| 17. | Attempt to start the original Windows XP installation. When the STOP error occurs, the memory dump information will be stored in the paging file. |
| 18. | Restart the computer and select the parallel installation of Windows XP. This allows the dump file to be created and you may be able to use the information to resolve the problem that causes the STOP error message in the original installation.
|
| 19. | Click Start, right click My Computer, and then click Properties. |
| 20. | Click the Advanced tab, click Settings under Startup and Recovery. |
| 21. | Click to clear the Automatically restart check box, click OK, and then click OK again. |
| 22. | Restart the computer. When you attempt to shut down the computer, the exact message should be displayed. |
You receive a "System Has Recovered from a Serious Error" message after every restart
1. Click Start and Right-click My Computer Properties.
2. On the Advanced tab, in the Performance section, click Settings.
3. In the Virtual Memory section, click Change.
4. For Paging file size for selected drive, click No Paging File, and then click Set.
5. Click Yes after the following warning appears:
If the paging file on volume X: has an initial size of less than xx megabytes, then the system may not be able to create a debugging information file if a STOP error occurs. Continue anyway?
(X is the drive letter and xx is the amount of RAM installed on your computer minus 1 megabyte.)
6. Click System Managed Size.
7. Click OK four times, and then restart the computer when you are prompted.
HAL.DLL is Missing or Corrupted
Option 1 :Boot from your CD and follow the directions to start Recovery Console. Then:
Attrib -H -R -S C:\Boot.ini
BootCfg /Rebuild
Fixboot
Option 2: Boot from your CD and follow the directions below to start Recovery Console.
Most likely you will need to expand the file from the CD. The command would be
c:\windows\d:
d:\expand d:\i386\hal.dl_ c:\windows\system32\hal.dll
Substitute d: for the drive letter of your CD. Once you have expanded the file type “exit” to exit the Recovery Console and restart the computer.
Missing or corrupt ntoskrnl.exe file
If the ntoskrnl.exe file is corrupt or missing this can also generate the error. To restore this file follow the below steps.
- Insert the Microsoft Windows XP CD. Note: If you have a recovery CD or a restore CD and not a Microsoft Windows XP CD it is likely the below steps will not resolve your issue.
- Reboot the computer, as the computer is starting you should see a message to press any key to boot from the CD. When you see this message press any key.
- In the Microsoft Windows XP setup menu press the R key to enter the recovery console.
- Select the operating system you wish to fix, and then enter the administrator password.
- Type expand d:\i386\ntoskrnl.ex_ c:\windows\system32
- You will then be prompted if you wish to overwrite the file type Y and press enter to overwrite the file.
- Type exit to reboot the computer
Friday, December 19, 2008
How Do I Do a "Repair Installation"?
1. Insert your Windows XP compact disc (CD) into your CD-ROM drive or DVD-ROM drive, and then restart your computer.
(You can also boot with a Windows 98/Me Startup disk with CD support and run WINNT.EXE in the I386 folder on the CD)
2. When the "Press any key to boot from CD" message is displayed on your screen, press a key to start your computer from the Windows XP CD.
3.At this point an option to press R to enter the Recovery Console is displayed. Do not select this option.
4.On the Windows XP Licensing Agreement screen, press F8 to agree to the license agreement.
5. Make sure that your current installation of Windows XP is selected in the box, ex:c:\windows and then press the R key to repair Windows XP.
Follow the instructions on the screen to complete Setup.
Missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM
STEP1:
1. When the "Welcome to Setup" screen appears > press R to start the Recovery Console.
2. > 1: > press ENTER with admin password
3. type each line:
4.
md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak
delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:\windows\system32\config\default
5.
copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default
6.
Type exit to quit Recovery Console. Your computer will restart.
Note You may receive the following error message:
C:\System Volume Information is not accessible. Access is denied. If you receive this message,
1. Type the following line, and then press ENTER:
cacls "driveletter:\System Volume Information" /E /G username:F
2. If you need to remove the permissions after troubleshooting, type the following line at a command prompt:
cacls "driveletter:\System Volume Information" /E /R username
This command removes all permissions for the specified user.
STEP 2 :
C:\Windows>CD C:\system~1\_resto~1
C:\system~1\_resto~1\>dir
Note: What you'll want to do is find the 2nd highest numbered folder in that list. ex: choose RP23 instead of last RP24
C:\system~1\_resto~1>cd rp23
C:\system~1\_resto~1\rp23>cd snapshot
follow the above 1 to 4 of STEP1: and type 5.
copy _REGISTRY_USER_.DEFAULT c:\windows\system32\config\default
copy _REGISTRY_MACHINE_SAM c:\windows\system32\config\sam
copy _REGISTRY_MACHINE_SECURITY c:\windows\system32\config\security
copy _REGISTRY_MACHINE_SOFTWARE c:\windows\system32\config\software
copy _REGISTRY_MACHINE_SYSTEM c:\windows\system32\config\system
6. type EXIT and restart