Monday, November 07, 2005

Maximum connections exceeded in Windows terminal server

As we know that windows Terminal server provides max of 2 users session,
Sometime we may face a problem in connecting remote PC due to the maximum number of the connection was exceeded in the terminal server
Fortunately there is an easy solution. Windows 2000+(includes Windows XP and 2003) have two command-line tools called qwinsta and rwinsta that can query and reset a remote session
qwinsta = Query WINdows STAtion
rwinsta = Reset WINdows STAtion
qwinsta /server: = Displays the number of active user sessions with corresponding session ID
Rwinsta /server: = To reset a specific connection or session id

Windows bootup problems and solutions

NTOSKRNL Missing or Corrupt

If you get an error that NTOSKRNL not found:

  1. Insert and boot from your WindowsXP CD.
  2. At the first R=Repair option, press the R key
  3. Press the number that corresponds to the correct location for the installation of Windows you want to repair.
    Typically this will be #1
  4. Change to the drive that has the CD ROM.
  5. CD i386
  6. expand ntkrnlmp.ex_ C:\Windows\System32\ntoskrnl.exe
  7. If WindowsXP is installed in a different location, just make the necessary change to C:\Windows
  8. Take out the CD ROM and type exit

HAL.DLL Missing or Corrupt

If you get an error regarding a missing or corrupt hal.dll file, it might simply be the BOOT.INI file on the root of the C: drive that is misconfigured

  1. Insert and boot from your WindowsXP CD.
  2. At the first R=Repair option, press the R key
  3. Press the number that corresponds to the correct location for the installation of Windows you want to repair.
    Typically this will be #1
  4. Type bootcfg /list to show the current entries in the BOOT.INI file
  5. Type bootcfg /rebuild to repair it
  6. Take out the CD ROM and type exit

Corrupted or Missing \WINDOWS\SYSTEM32\CONFIG

If you get the error:
Windows could not start because the following files is missing or corrupt
\WINDOWS\SYSTEM32\CONFIG\SYSTEM or \WINDOWS\SYSTEM32\CONFIG\SOFTWARE

  1. Insert and boot from your WindowsXP CD.
  2. At the first R=Repair option, press the R key
  3. Press the number that corresponds to the correct location for the installation of Windows you want to repair.
    Typically this will be #1
  4. Enter in the administrator password when requested
  5. cd \windows\system32\config
  6. Depending on which section was corrupted:
    ren software software.bad or ren system system.bad
  7. Depending on which section was corrupted
    copy \windows\repair\system
    copy \windows\repair\software
  8. Take out the CD ROM and type exit

NTLDR or NTDETECT.COM Not Found

If you get an error that NTLDR is not found during bootup,

If you have FAT32 partitions, it is much simpler than with NTFS.
Just boot with a Win98 floppy and copy the NTLDR or NTDETECT.COM files
from the i386 directory to the root of the C:\ drive.

For NTFS:

  1. Insert and boot from your WindowsXP CD.
  2. At the first R=Repair option, press the R key
  3. Press the number that corresponds to the correct location for the installation of Windows you want to repair.
    Typically this will be #1
  4. Enter in the administrator password when requested
  5. Enter in the following commands (X: is replaced by the actual drive letter that is assigned to the CD ROM drive.
    COPY X:\i386\NTLDR C\:
    COPY X:\i386\NTDETECT.COM C:\
  6. Take out the CD ROM and type exit

Wednesday, November 02, 2005

Registry tips and tricks

  1. Disable the Autorun Option in your CD Rom Drive:
    Open your Registry and navigate to "
    HK_L_M\system\currentcontrolset\services\cdrom"
    Change the value of '
    Autorun', or create a new DWORD value if it doesn't already exist, and set the value as '0' for Autorun disabled.
  2. Disable the Harddisk Lowdiskspace warning in Windows Xp
    User Key: "
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    and
    System Key: "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    create a new DWORD '
    NoLowDiskSpaceChecks' and change its value to '1'.
  3. Disable the Windows Key
    "
    HK_L_M\system\currentcontrolset\control\keyboard layout"
    Create a new Binary value, or modify the existing value called '
    Scancode Map' as shown below.
    Value: 00 00 00 00 00 00 00 00 03 00 00 00 00 00 5B E0 00 00 5C E0 00 00 00 00
  4. View System BIOS Information
    Open Registry and navigate to
    "
    HK_L_M\hardware\description\system"
  5. Change the Title of Windows Media Player
    "HK_C_USER\software\policies\microsoft\windowsmediaplayer\"
    Create a new string value called '
    TitleBar' and change text as your wish.
  6. Disable Internet access in Network
    Open Registry and make the following changes
    "
    KH_C_User\software\microsoft\windows\currentversion\internetsettings\"
    Change the value of "
    Proxyenabled" to 1 and change the value of "proxyserver" and set it to an ip address. Change the value of the ip address and port to "10.0.0.1:5555"
  7. Disable the ability to Right click on the desktop
    "HK_C_User\software\microsoft\windows\currentversion\policies\explorer\"
    Create a DWORD "
    NoViewContextMenu" and change its value to "0" for disabling and "1" for enabling.
  8. Hide all items on desktop
    "HK_C_USER\software\microsoft\windows\currentversion\policies\explorer\"
    and
    "
    HK_L_M\software\microsoft\windows\currentversion\policies\explorer\"
    create a new DWORD "
    NoDesktop" and change its value to "1"
    You can show all the items in the desktop by chaning the value to "0"
  9. Disable the "Change Password" button in windows
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System"
    and
    "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersi on\Policies\System"
    Create a new DWORD "
    DisableChangePassword" and change its value to "0" for disabling and "1" for enabling.
  10. Disable the "cancel" button or pressing the "Esc" key while logging on to Windows"
    "HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run"
    Create a new string value "
    NoLogon" and change its value to "RUNDLL32 shell32,SHExitWindowsEx 0"
  11. Remove "Log off" from start menu
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    and
    "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    Create a new DWORD "
    NoLogOff" and change its value to "1" for disabling and "0" for enabling.
  12. Clear the Recent playlist in Media Player
    Navigate to "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player"
    And clear the "
    RecentFileList" subkey.
  13. Empty temporary Internet files on exit (in Internet Explorer)
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache"
    and
    "
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache"
    Create a new DWORD "
    Persistent" and change the value to "0" for emptying and "1" to remove this option.
  14. Clear the Internet Explorere typed addresses history
    "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs"
    And delete the subkeys.
  15. Remove recent documents from start menu
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    and
    "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    Create a new DWORD "
    NoRecentDocsMenu" and change its value to "1".
  16. Remove Network connections from start menu
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    and
    "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    Create a new DWORD "
    NoNetworkConnections" and change its value to "1".
  17. Remove My documents from start menu
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    and
    "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    Create a new DWORD "
    NoSMMyDocs" and change its value to "1".
  18. Remove My pictures from start menu
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    and
    "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer "
    Create a new DWORD "
    NoSMMyPictures" ad change its value to "1".
  19. Remove My music fro start menu
    "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    and
    "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
    Create a new DWORD "
    NoStartMenuMyMusic" and change its value to "1".
  20. Reboot windows after crash
    "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl"
    Create a new DWORD "
    AutoReboot" and change its value to "1".Restart the machine for the effect to take place.
  21. Disable the use of MSDos
    User Key: "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\WinOldApp"
    and
    System Key:
    "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\WinOldApp"
    Create a new DWORD "
    Disabled" and set its value to "1". Change it to "0" for enabling.
  22. Enable Directory completion in MSDos prompt
    User Key: "HKEY_CURRENT_USER\Software\Microsoft\Command Processor"
    and
    System Key:
    "HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor"
    Create a new DWORD "
    PathCompletionChar " and set it to equal the hex value of the required control character.
  23. Quick edit the command prompt
    User Key: "HKEY_CURRENT_USER\Console"
    and
    System Key:
    "HKEY_USERS\.DEFAULT\Console"
    Create a new DWORD "
    QuickEdit" and set its value to "1" for enabling and "0" for disabling.
  24. http://groups.yahoo.com/group/coolsunny/join""" Join Me Here HKEY_USERS\.DEFAULT\Console"
  25. Disable Registry editing
    "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"
    Create a new DWORD "
    DisableRegistryTools" and change its value to "0" for allowing Regedit and "1" for disabling it.
  26. Disable task scheduler
    " HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices"
    Delete the value from "
    SchedulingAgent". Usually its value is set to "'mstask.exe".
  27. Remove My computer from desktop and start menu
    User Key: "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum"
    and
    System Key: "
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\NonEnum"
    Create "
    {20D04FE0-3AEA-1069-A2D8-08002B30309D}" and change its value to "1" for removing. Change its value to "0" for showing.
  28. Show Windows version on desktop
    User Key: "HKEY_CURRENT_USER\Control Panel\Desktop"
    Create a new DWORD "
    PaintDesktopVersion" and change its value to "1" for showing and "0" for removing.
  29. Remove My documenst from desktop
    Windows 95, 98 and Me
    "
    HKEY_CURRENT_USER\Software\Classes\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\ShellFolder"
    Windows NT, 2000 and XP
    "
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\ShellFolder"
    Modify the value called "
    Attributes" as "0xf0500174" to hide or "0xf0400174" to show.
  30. Disable Scan disk after improper shutdown
    " HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem"
    create a new DWORD "
    DisableScandiskOnBoot" and change its value to "01" for disablng and "00" for enabling.
  31. Automatically end Hung programs.
    " HKEY_CURRENT_USER\Control Panel\Desktop"
    and
    "
    System Key: [HKEY_USERS\.DEFAULT\Control Panel\Desktop"
    Modify the value of "
    AutoEndTasks" to "1".