Archive of Windows XP Tips.
For reference easy searching
ReInstalling WindowsXP
If you need to reinstall WindowsXP and want to keep all your
current installed applications and settings:
Start WindowsXP
Go to the location of your source files
Run WINNT32 /unattend
--------------------------------------------------------------------------------
Restoring Access to CD ROMs
If after you remove CD Burning software, you can no longer
access your CD ROM's,
the following registry keys need to be deleted:
Locate and delete the UpperFilters and LowerFilters values under
the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
--------------------------------------------------------------------------------
Setting the Dir Command to Display Filenames on the Left
Previous versions of Windows displayed the filenames on the left
hand side when you run the dir command.
WindowsXP changes this and the default it to put it on the
right.
To change this back:
Right click on My Computer
Click on Properties
Click on the Advanced tab
Click on the Environment Variables button
Click on New button
Enter the Variable name: dircmd
Enter the Variable value: /-n
--------------------------------------------------------------------------------
Formatting a Partition Greater than 32 GIGs with FAT32
WindowsXP will only format a partition greater than 32 GIGs as
NTFS.
If you want to format it with FAT32:
You can use a regular Win98 Boot disk and use that version of
FDISK to create the partition (with Large Hard Drive Support)
Reboot with the same boot disk and format
WindowsXP will then be able to use the partition with no
problems
--------------------------------------------------------------------------------
No GUI Boot
If you don't need to see the XP boot logo,
Run MSCONFIG
Click on the BOOT.INI tab
Check the box for /NOGUIBOOT
--------------------------------------------------------------------------------
Speeding the Startup of Some CD Burner Programs
If you use program other than the native WindowsXP CD Burner
software,
you might be able to increase the speed that it loads.
Go to Control Panel / Administrative Tools / Services
Double-click on IMAPI CD-Burning COM Service
For the Startup Type, select Disabled
Click on the OK button and then close the Services window
If you dontYou should notice
--------------------------------------------------------------------------------
Logging in as Administrator
If you want to log in as Administrator, but it is not show on
the Welcome screen,
Hold the Ctrl-Alt key and press Del twice.
This will bring up the normal login and you can log on as
Administrator
To unhide the Administrator account show it does show up:
Start Regedit
Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \
CurrentVersion \ Winlogon \ SpecialAccounts \ UserList
Unhide the Administrator key by giving it a value of 1
--------------------------------------------------------------------------------
Correcting Fast User Switching Error
If you are getting an error that:
A recently installed program has disabled the Welcome screen and
Fast User Switching
with a reference to CSGina.DLL
Start Regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Delete the key GinaDLL
--------------------------------------------------------------------------------
Using the Classic Search in Explorer
If you prefer to use the classic search style in Explorer,
Start Regedit
Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState
Add a String Key called Use Search Asst
Give it a value of no
--------------------------------------------------------------------------------
No To All When Overwriting Files
When overwriting files in the Windows Explorer, there is an
option for Yes To All.
This would overwrite any files you would normally be prompted
for.
To have No To All, simply hold down the Shift key while you
click on the No option.
--------------------------------------------------------------------------------
WINIPCFG for XP
If you like the graphic IP configuration program that comes with
Windows98,
you can download a similar one for WindowsXP or Windows2000 from
Microsoft at:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/wntipcfg-o.asp
The actual file is at:
WntIpcfg_setup.exe
--------------------------------------------------------------------------------
Changing Drive Letters
If you want to change the letters assigned to your fixed or
removable drives:
Right Click on My Computer
Select Manage
Select Disk Management
For a Fixed Disk:
Select it
Right click
Select Change Drive Letter and Path
Click on the Edit button
Enter in the letter you want to use
For a Removable Disk:
In the lower, right hand panel, right click on the Disk or CD
ROM #
Select Change Drive Letter and Path
Click on the Edit button
Enter in the letter you want to use
--------------------------------------------------------------------------------
Allowing Network Access with Blank Passwords
Although you can log in locally without a password, by default,
WindowsXP Pro does not allow network users to access the
computer without a password. Typically you will receive an
Unknown error 31 if this is the case.
To change this setting:
Run gpedit.msc
Go to Computer Configuration / Windows Settings / Security
Settings / Local Policies / Security Options
Double click on Accounts: Limit local account use of blank
passwords to console login only
Disable this option
--------------------------------------------------------------------------------
Changing the Default DOS Window Properties
If you want to change the default DOS windows properties like:
Size
Color
Font
Buffer Size
Window / Full Screen
Open up a DOS window
Right click on the Title Bar
Select Defaults
Make any of the changes you like
All subsequent DOS windows will assume these defaults
--------------------------------------------------------------------------------
Changing the Registered Owner
Start Regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
From there you can edit the name in the Registered Owner key
--------------------------------------------------------------------------------
Stop Password Expiration
If you are getting an error message that your password is about
to expire:
Right click on the My Computer icon
Select Manage
Go to Local Users and Groups / Users
Right-click on the user you want to change
Select Properties
On the General tab, check Password never expires
Click OK
--------------------------------------------------------------------------------
Opening a Command Prompt to a Particular Directory from Explorer
If you want to open a command prompt to a directory that is
selected in the Explorer:
Start Regedit
Go to HKEY_CLASSES_ROOT \ Directory \ shell
Create a new key called Command
Give it the value of the name you want to appear in the
Explorer. Something like Open DOS Box
Under this create a new key called command
Give it a value of " cmd.exe cd %1 " (no quotes)
Now when you are in the Explorer, right click on a folder,
select Open DOS Box, and a command prompt will open to the
selected directory.
--------------------------------------------------------------------------------
Changing the Login Screen Saver
If you want to change the screen saver that runs at the login
prompt:
Start Regedit
Go to HK_USERS / .DEFAULT / Control Panel / Desktop
Double click on SCRNSAVE.EXE
Enter in the screen saver you want to use
--------------------------------------------------------------------------------
Set the Online Registration as Being Completed
You can set WindowsXP to assume the online registration has been
completed.
Run Regedit
Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \
CurrentVersion
Create a String Value called RegDone
Give it a value of 1
--------------------------------------------------------------------------------
Decreasing Boot Time
Microsoft has made available a program to analyze and decrease
the time it takes to boot to WindowsXP
The program is called BootVis
Uncompress the file.
Run BOOTVIS.EXE
For a starting point, run Trace / Next Boot + Driver Delays
This will reboot your computer and provide a benchmark
After the reboot, BootVis will take a minute or two to show
graphs of your system startup.
Note how much time it takes for your system to load (click on
the red vertical line)
Then run Trace / Optimize System
Re-Run the Next Boot + Drive Delays
Note how much the time has decreased
Mine went from approximately 39 to 30 seconds.
--------------------------------------------------------------------------------
Re-Enabling System Restore
If you previously disabled system restore through the Group
Policy Editor,
the option to start it again does not show in the System
Properties.
You can re-enable it again by:
Run the Group Policy Editor (gpedit.msc)
Go to Computer Configuration / Administrative Templates / System
/ System Restore
Set Turn off System Restore and Turn off Configuration to
Disable
Right click on My Computer
Select Manage
Go to Services and Applications / Services
Scroll down to System Restore Service
Set it for Automatic
Click on the Start button to start the service
Close down this window
Go back to the Group Policy Editor and configure both to Not
configured
Now when you right click on My Computer, there should be a tab
for System Restore and you can configure how much space will be
used.
--------------------------------------------------------------------------------
Hide/Unhide Logon Names
If you want to hide or unhide the names of users that are
displayed on the initial logon screen:
Start Regedit
Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \
CurrentVersion \ Winlogon \ SpecialAccounts \ UserList
Add a DWORD with the name of the user account you want to hide
Make sure it has a value of 0
If there is an existing account, you can unhide it by giving it
a value of 1
--------------------------------------------------------------------------------
Reinstalling the TCP/IP Protocol
If you've worked on previous versions of Windows,
there are times when you need to completely reinstall the TCP/IP
protocol stack.
This is typically due to corrupted files.
To do this with XP,
you need to run a small script:
netsh int ip reset [ log_file_name ]
the log_file_name needs to be specified.
e.g.
netsh int ip reset ip_reset.txt
--------------------------------------------------------------------------------
Renaming the Start Button
To rename the start button, you will need a hex editor.
My preference is UltraEdit
Copy the \windows\explore.exe file to a new name (e.g.
explorer_1.exe)
With the hex editor, open that file and go to offset 412b6
You will see the word start with blanks between each letter
Edit it be any 5 characters or less
Save the file
Boot to DOS
Copy the existing c:\windows\explorer.exe to explorer.org
Copy explorer_1.exe to explorer.exe
You will also need to replace the explorer.exe in the
c:\windows\system32\dllcache file as well with the new one.
Note: If the partition is NTFS and you can't access the files
from DOS:
Start Regedit
Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \
CurrentVersion \ Winlogon.
Change the value of Shell from Explorer.exe to explorer_1.exe
--------------------------------------------------------------------------------
Closing Multiple Taskbar Items
If you hold down the Control Key when you click on the taskbar
icons,
it selects multiple tasks. Then you can simply right-click on
the selected items and choose close group.
This tip works with all windows, not just one applications. If
you have the cal, ie, notepad and solitaire open, it will close
them all, unlike the group similar items command that only lets
you close all of one type (ex: all IE or all notepads).
--------------------------------------------------------------------------------
Original NT Style Logon Screen
If you want to have the original NT style windows logon screen
with XP,
simply hold the Ctrl-Alt keys and press the delete key twice.
--------------------------------------------------------------------------------
WindowsXP Command Line Utilities
While there are a lot of command line utilities in WindowsXP,
here are some that I have been using lately.
bootcfg - Configures, queries, or changes Boot.ini file
settings.
driverquery - Displays a list of all installed device drivers
and their properties.
getmac - Returns the media access control (MAC) address and list
of network protocols associated with each address for all
network cards in each computer
gpresult - Displays Group Policy settings and Resultant Set of
Policy (RSOP) for a user or a computer
netsh - You can use commands in the Netsh Interface IP context
to configure the TCP/IP protocol
schtasks - Schedules commands and programs to run periodically
or at a specific time
systeminfo - Displays detailed configuration information about a
computer and its operating system
--------------------------------------------------------------------------------
Adding a Title for the Command Prompt Title Bar
If you create a batch file that might take a while to run,
you can add a title to the command prompt title bar it by simply
adding the line:
title YOUR TEXT
where YOUR TEXT would be replaced by whatever text you want to
show.
--------------------------------------------------------------------------------
Creating an Automated Install of WindowsXP
On the WindowsXP CP, in the SUPPORT\TOOLS directory,
there is a file called DEPLOY.CAB.
Extract the programs DEPLOY.CHM (help file) and SETUPMGR.EXE
(main program)
Run SETUPMGR and answer the prompts.
This will create both a unattend.bat and unattend.txt file you
can use for automated installs.
Note: The batch file might need some minor modification for file
locations but it is fairly basic.
--------------------------------------------------------------------------------
Creating a Shutdown/Reboot Icon
WindowsXP has a program called SHUTDOWN.EXE which allows you to
easily create icons to shutdown or restart your computer.
To create a shutdown shortcut on the desktop:
Right click on an open area of the desktop
Select New / Shortcut
Enter in "shutdown -s -t 00" - no quotes
Press the Next button
For the name, enter in anything you like. I just use shutdown.
Click on the Finish button.
For a reboot, enter "shutdown -r -t 00"
Shutdown [{-l|-s|-r|-a}] [-f] [-m [\\ComputerName]] [-t xx] [-c
"message"] [-d[u][p]:xx:yy]
Parameters
-l - Logs off the current user, this is also the defualt. -m
ComputerName takes precedence.
-s - Shuts down the local computer.
-r - Reboots after shutdown.
-a - Aborts shutdown. Ignores other parameters, except -l and
ComputerName. You can only use -a during the time-out period.
-f - Forces running applications to close.
-m [\\ComputerName] - Specifies the computer that you want to
shut down.
-t xx - Sets the timer for system shutdown in xx seconds. The
default is 20 seconds.
-c "message" - Specifies a message to be displayed in the
Message area of the System Shutdown window. You can use a
maximum of 127 characters. You must enclose the message in
quotation marks.
--------------------------------------------------------------------------------
Command Line Help Reference
To get a quick help for all the commands you can enter from
WindowsXP,
simply create a shortcut:
hh.exe ms-its:C:\WINDOWS\Help\ntcmds.chm::/ntcmds.htm
--------------------------------------------------------------------------------
Using the System File Checker
You can run the System File Checker to verify protected system
files.
Command line switches are:
sfc [/scannow] [/scanonce] [/scanboot] [/revert] [/purgecache]
[/cachesize=x]
/scannow - Scans all protected system files immediately.
/scanonce - Scans all protected system files once.
/scanboot - Scans all protected system files every time the
computer is restarted.
/revert - Returns the scan to its default operation.
/purgecache - Purges the Windows File Protection file cache and
scans all protected system files immediately.
/cachesize=x - Sets the size, in MB, of the Windows File
Protection file cache.
--------------------------------------------------------------------------------
Disabling Balloon Tips
To turn off balloon tips in applications that support XP Themes:
Start Regedit
Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\
Change the value of EnableBalloonTips from 1 to 0
--------------------------------------------------------------------------------
Installing the NetBEUI Protocol
Microsoft no longer supports the NetBEUI protocol as part of
WindowsXP.
You can add it as a installable protocol by going to the
VALUEADD \ MSFT \ NET \ NETBEUI
directory on the CD ROM.
Note: %SYSTEMROOT% refers to the drive and directory where you
installed WindowsXP.
Typically this is in the C:\WINDOWS directory
Copy the nbf.sys into the %SYSTEMROOT%\SYSTEM32\DRIVERS\
directory
Copy netnbf.inf into the %SYSTEMROOT%\INF\ directory
Open the Network connection properties for your local area
network and use "Install..." button to add NetBEUI protocol
--------------------------------------------------------------------------------
Opening an Explorer Window to the Directory You Want
If you want to create a shortcut for the Explorer to a specific
directory,
include the directory you want in the Target.
For example:
%SystemRoot%\explorer.exe /n, /e, d:\internet
would open the Explorer to the D:\INTERNET directory
--------------------------------------------------------------------------------
Locking the Workstation
There are two ways you can lock the workstation.
With a Windows key + L
Create an shortcut rundll32.exe user32.dll,LockWorkStation
--------------------------------------------------------------------------------
Increasing System Performance
If you have 512 megs or more of memory, you can increase system
performance
by having the core system kept in memory.
Start Regedit
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Memory Management\DisablePagingExecutive
Set the value to be 1
Reboot the computer
--------------------------------------------------------------------------------
Common Command Console Utilities
WindowsXP comes with quite a few console utilities you can
easily run from the command line:
Computer Management - compmgmt.msc
Disk Managment - diskmgmt.msc
Device Manager - devmgmt.msc
Disk Defrag - dfrg.msc
Event Viewer - eventvwr.msc
Shared Folders - fsmgmt.msc
Group Policies - gpedit.msc
Local Users and Groups - lusrmgr.msc
Performance Monitor - perfmon.msc
Resultant Set of Policies - rsop.msc
Local Security Settings - secpol.msc
Services - services.msc
Component Services - comexp.msc
--------------------------------------------------------------------------------
Removing the MSN Messenger
If you want to remove the MSN Messenger from always starting in
the system tray, do
Start / Run
Then enter in the following string: RunDll32
advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove
To remove it completely, see the section Adding / Removing
Additional Programs
Remove the hide from the line:
msmsgs=msgrocm.dll,OcEntry,msmsgs.inf,hide,7
--------------------------------------------------------------------------------
Common Command Console Utilities
WindowsXP comes with quite a few console utilities you can
easily run from the command line:
Computer Management - compmgmt.msc
Disk Managment - diskmgmt.msc
Device Manager - devmgmt.msc
Disk Defrag - dfrg.msc
Event Viewer - eventvwr.msc
Shared Folders - fsmgmt.msc
Group Policies - gpedit.msc
Local Users and Groups - lusrmgr.msc
Performance Monitor - perfmon.msc
Resultant Set of Policies - rsop.msc
Local Security Settings - secpol.msc
Services - services.msc
Component Services - comexp.msc
--------------------------------------------------------------------------------
Automatically Ending Non-Responsive Tasks
Start Regedit
Go to HKEY_CURRENT_USER\Control Panel\Desktop\AutoEndTasks
Set the value to be 1
In the same section, change the WaitToKillAppTimeout to the
number of milliseconds you want.
--------------------------------------------------------------------------------
Adding / Removing Additional Programs
By default, WindowsXP does not display all the programs you can
add or remove.
To show this list:
Edit the \Windows\Inf\sysoc.inf file
In the Components section, simply remove the word hide.
This will leave two commas together (like on the rest of the
items).
Then you can go to the Control Panel / Add or Remove Programs /
Add/Remove Windows Components and the new items will be
displayed.
[Components]
NtComponents=ntoc.dll,NtOcSetupProc,,4
WBEM=ocgen.dll,OcEntry,wbemoc.inf,hide,7
Display=desk.cpl,DisplayOcSetupProc,,7
Fax=fxsocm.dll,FaxOcmSetupProc,fxsocm.inf,,7
NetOC=netoc.dll,NetOcSetupProc,netoc.inf,,7
iis=iis.dll,OcEntry,iis.inf,,7
com=comsetup.dll,OcEntry,comnt5.inf,hide,7
dtc=msdtcstp.dll,OcEntry,dtcnt5.inf,hide,7
IndexSrv_System = setupqry.dll,IndexSrv,setupqry.inf,,7
TerminalServer=TsOc.dll, HydraOc, TsOc.inf,hide,2
msmq=msmqocm.dll,MsmqOcm,msmqocm.inf,,6
ims=imsinsnt.dll,OcEntry,ims.inf,,7
fp_extensions=fp40ext.dll,FrontPage4Extensions,fp40ext.inf,,7
AutoUpdate=ocgen.dll,OcEntry,au.inf,hide,7
msmsgs=msgrocm.dll,OcEntry,msmsgs.inf,hide,7
msnexplr=ocmsn.dll,OcEntry,msnmsn.inf,,7
smarttgs=ocgen.dll,OcEntry,msnsl.inf,,7
RootAutoUpdate=ocgen.dll,OcEntry,rootau.inf,,7
Games=ocgen.dll,OcEntry,games.inf,,7
AccessUtil=ocgen.dll,OcEntry,accessor.inf,,7
CommApps=ocgen.dll,OcEntry,communic.inf,HIDE,7
MultiM=ocgen.dll,OcEntry,multimed.inf,HIDE,7
AccessOpt=ocgen.dll,OcEntry,optional.inf,HIDE,7
Pinball=ocgen.dll,OcEntry,pinball.inf,HIDE,7
MSWordPad=ocgen.dll,OcEntry,wordpad.inf,HIDE,7
ZoneGames=zoneoc.dll,ZoneSetupProc,igames.inf,,7
--------------------------------------------------------------------------------
HOW TO: Create a Boot Disk for an NTFS or FAT Partition in
Windows XP
http://support.microsoft.com/default.aspx?scid=kb;[LN];Q305595
--------------------------------------------------------------------------------
Unattended Setup
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314479
To add drivers to an unattended Setup, follow these steps.
NOTE : If the OEM-supplied drivers are not digitally signed, you
receive a warning message about this during Setup. To turn off
this message, add the following entry to the [Unattended]
section of the Setup answer file (Unattend.txt):
DriverSigningPolicy = Ignore
Add Favs List and ReadMe
Unattended Setup http://support.microsoft.com/default.aspx?scid=KB;EN-US;q254078&
When you add drivers to unattended Setup, you need to perform
the following steps. If the OEM-supplied drivers are not
digitally signed, you receive a message that warns you about the
drivers during Setup. To disable this message, please consult
the following Microsoft Knowledge Base article:
Q236029 <http://support.microsoft.com/default.aspx?scid=kb;[LN];Q236029>
Setting Driver Signing Policy for Windows 2000 Unattended Setup
Create your distribution share on a network server by copying
the contents of the Windows installation CD-ROM I386 folder. You
can use Setupmgr.exe to create this share for you along with
your Unattended.txt file. You can find Setupmgr.exe on the
Windows CD-ROM in the Support\Tools folder in the Deploy.cab
file along with the Unattend.doc file that contains information
about Windows unattended Setup.
Create a $oem$\$1\Drivers folder in the I386 folder. You may
want to create additional folders in the Drivers subfolder,
depending on the hardware you want to install (for examplework
adapter, modem, video, and so on). The $1 folder resolves to %SystemDrive%.
During text-mode Setup, these folders and files are copied to
the %SystemDrive%\Drivers folders. For example:
\i386
\$oem$
- - \$1
- - - \Drivers
- - - - - \NIC
- - - - - \MODEM
- - - - - \VIDEO
Copy all of the OEM-supplied driver files for the device in the
folder(s) created in the previous step.
Add the OemPnPDriversPath = Driver_Paths entry in the
[Unattended] section of the Setup answer file. You can list
multiple paths in this key by separating them with a semicolon
(;), as shown in the following example:
[Unattended]
OemPnPDriversPath = Drivers\NIC;Drivers\Modem;Drivers\Video
NOTE: The %SystemDrive% environment variable string is
automatically inserted before each of the listed search paths.
Save the answer file.
During GUI-mode Setup when the system is searching .inf files
for Plug and Play IDs, it also looks in the paths noted in the
OemPnPDriversPath along with the standard default path of %WinDir%\Inf.
The %WinDir%\Inf path is listed first in the search order, but
if you have a device that is supported by more than one .inf
file (Windows may include a driver that offers generic
functionality), Setup continues to search all paths specified in
the OemPnPDriversPath entry. Even though it may find multiple
matches, Plug and Play uses the .inf file that has the best
match, and then installs the associated device driver to support
the device.
Sysprep Setup
Adding OEM-supplied drivers to a Windows Sysprep Setup is
similar to the steps noted in the "Unattended Setup" section,
except that you do not need to create the distribution share. To
add drivers to the mini-wizard of Sysprep, use the following
steps.
--------------------------------------------------------------------------------
If you want to access Device Manager on a local or remote
computer:
1. Click Start, click Run, and then type "mmc" (without the
quotation marks).
2. Click Add/Remove Snap In on the File menu (or press CTRL+M),
click Add, and then click Device Manager.
When you use this procedure, a shortcut to Device Manager is
created that you can use to open Device Manager.
How to Configure Device Manager to Display Detailed Information
<http://support.microsoft.com/support/kb/articles/q304/5/14.asp>
To configure Device Manager to show details:
1. Click Start, click Run, type: cmd.exe, and then press ENTER.
2. Type: set DEVMGR_SHOW_DETAILS=1, and then press ENTER.
3. Type: start devmgmt.msc, and then press ENTER.
In Device Manager the properties for a device should now provide
a Details tab that contains additional information about the
device.
--------------------------------------------------------------------------------