WindowsXP Tips
WindowsXP Tips
Web
WindowsXP Tips
Performance
Services You Can Disable - Updated 10/30/03
Faster DOS Printing - Added 6/21/03
Cleaning the Prefetch Directory - Added 3/2/03
Increasing the Folder Cache - Added 1/6/03
Increasing Graphics Performance - Added 11/27/01
Disabling Balloon Tips - Added 11/9/01
Speeding Up the Display of Start Menu Items - 11/8/01
Networking / Internet
IPCONFIG Error - Added 9/15/07
Browse Master Monitor - Added 2/8/07
Repairing Damaged Winsock2 - Updated 2/6/07
Network Connection Always Shows Access Denied - Added 2/6/07
Speeding Up Network Browsing - Added 11/14/05
Opening Shared Folders Snap-In - Added 8/17/05
Viewing Your IP Address Information - Added 8/17/05
Opening Ports or Adding Allowed Programs with SP2's Firewall - Added 9/30/04
Guest Only Network Access - Added 4/11/04
Not Displaying Previous Network Share Shortcuts - Added 3/26/004
Hiding a XP Computer from Network Neighborhood - Added 3/26/04
Easy Way to Share Multiple Folders - Added 3/26/04
Running Network Diagnostics - Added 3/4/04
Network Access After Norton Anti-Virus Install - Added 12/9/03
Adding TCP/IP Printers - Added 1/7/03
Repairing
Windows Help and Support Error - Added 11/19/05
Make Pictures Smaller Unavailable - Added 8/17/05
Identify Faulty Device Drivers - Added 3/2/05
Operation Was Attempted on Something That Is Not a Socket Error - Added 11/19/04
Autoexec.nt or Config.nt Errors - Added 9/17/04
Windows Explorer Opens Search Companion Rather than the Folder - Added 9/1/04
Running SFC without a CD ROM - Added 6/9/04
Fixing Cryptographic Services Error - Added 12/8/03
Fixing Explorer Searching Rather Than Opening Directories - Added 11/30/03
Repair Install - Added 2/9/03
Missing or Corrupt NTOSKRNL - Added 2/9/03
Missing or Corrupt HAL.DLL - Added 2/9/03
Corrupted or Missing \WINDOWS\SYSTEM32\CONFIG - Added 2/9/03
NTLDR or NTDETECT.COM Not Found - Added 2/9/03
ReInstalling WindowsXP - Added 5/21/02
Startup/Shutdown
Configure for Auto-Logon - Added 11/28/03
Not Displaying Logon, Logoff, Startup and Shutdown Status Messages - Added 3/2/03
Bringing Up the Shutdown Dialog Box - Added 1/31/03
Misc
Taking Ownership Of a Folder - 2/6/07
Task Manager is Menu Bar is Missing - Added 2/6/07
Hiding Manage My Computer - Added 11/25/05
Finding Your XP Product ID - Added 11/25/05
Forgotten Admin or User's Password - Added 11/25/05
Renaming Multiple Files in a Directory - Added 11/19/05
Disable Windows Tour - Added 11/19/05
Editing the Boot.ini file - Added 10/18/05
Running CHKDSK- Added 8/17/05
Additional Utilities - Added 8/17/05
Creating a Suspend Shortcut - Submitted 3/2/05
Changing the User Type - Added 3/2/05
Determining Which Services are Associated with SVCHOST - Added 3/2/05
Viewing Installed Drivers - Added 3/2/05
Common Control Panel Applets - Added 9/17/04
System32 Folder Opens When Logging On - Added 3/26/04
Setting Capslock, Numlock, Scroll Lock - Added 3/4/04
DOS Tips in XP - Submitted 3/4/04
Stopping the Messenger Service - Added 6/21/03
Accessing Non-Listed Display Configurations - Added 3/2/03
Stop Password Expiration - Updated 12/21/02
Preventing Applications from Stealing the Focus - Added 12/4/02
Adding Environment Variables - Added 12/4/02
a socket.
Also Internet Explorer may give the following error message:
The page cannot be displayed Additionally, you may have no IP address or no Automatic Private IP
Addressing (APIPA) address, and you may be receiving IP packets but not sending them.
----If you have WindowsXP with Service Pack 2, there is a one line command you can run to reset the winsock2
registry entries
netsh winsock reset catalog
-----There are two easy ways to determine if Winsock2 is damaged:
From the XP source files, go to the Support / Tools directory
Winsock Test Method 1
Run netdiag /test:winsock
The end should say Winsock test ..... passed
Winsock Test Method 2
1.
2.
3.
4.
5.
Run Msinfo32
Click on the + by Components
Click on the by Network
Click on Protocol
There should be 10 sections if the Winsock2 key is ok
MSAFD Tcpip [TCP/IP]
MSAFD Tcpip [UDP/IP]
RSVP UDP Service Provider
RSVP TCP Service Provider
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
MSAFD NetBIOS [\Device\NetBT_Tcpip...
If the names are anything different from those in this list, then likely Winsock2 is corrupted and needs to be
repaired.
If you have any 3rd party software installed, the name MSAFD may be changed.
There should be no fewer than 10 sections.
To repair Winsock2
1. Run Regedit
2. Delete the following two registry keys:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2
Download Reg file to delete these entries
3.
4.
5.
6.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
Start Regedit
Go to HKEY_LOCAL_MACHINE / SYSTEM / CurrentControlSet / Control / Lsa
Change the value of a key called "restrictanonymous" to 0 instead of 1
Don't change "restrictanonymoussam" value.
Reboot
Start Regedit
Go to HKEY_CURRENT_USER / Software / Microsoft / Windows / CurrentVersion / Policies / Explorer
Create a DWORD value called NoManageMyComputerVerb
Set the value to 1
Reboot
There is a great little utility available to help you find your currently installed product ID
http://www.magicaljellybean.com/keyfinder.shtml
It also works for Windows 95, 98, ME, NT4, 2000, XP, Server 2003, Office 97, and Office XP
Using the Windows Explorer, select all the files you want to rename
Press F2 or right click and select Rename
Enter the prefix for the name you want (e.g. Newname)
This will automatically rename the rest of the files Newname (1).jpg, Newname (2).jpg etc.
Make sure you include the extension if you have the Explorer configured to show them.
Start Regedit
Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Tour
Create a new DWORD key called RunCount
Give it a value of 0
Start Regedit
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
Create a DWORD Key called SizReqBuf
Give it a value of Hex FFFF
1.
2.
3.
4.
5.
Running CHKDSK
Added 8/17/05
One way to run a chkdsk (this is like Scandisk that was with Win9X), is to
1.
2.
3.
4.
5.
6.
7.
Additional Utilities
Added 8/17/05
On the XP CD in the \Support\Tools directory, there are a lot of additional support and troubleshooting
utilities.
You can run SETUP from that directory to install them.
Just a few are:
diruse
pviewer
windiff
1.
2.
3.
4.
5.
Submitted by Gabe
Try copying the file from \windows\repair directory to the one that is in the \windows\system32 directory.
Add/Remove Programs
desk.cpl
Display Properties
firewall.cpl
Firewall Settings
inetcpl.cpl
Internet Options
mmsys.cpl
ncpa.cpl
Network Connections
nusrmgr.cpl
User Accounts
powercfg.cpl
Power Options
sysdm.cpl
System Properties
wscui.cpl
Security Center
wuaucpl.cpl
locations.
Start Regedit
Go to the follow locations and change the path to wherever you copied the source files.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\ServicePackSourcePath
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SourcePath
the last one might not be necessary
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SourcePath
2.
3.
4.
5.
Start Regedit
Go to both:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
Double check that the values do not have incorrect, incomplete, or blank entries
Start Regedit
Go to HKEY_CURRENT_USER \ Control Panel \ Keyboard
Open InitialKeyboardIndicators
Change the value to one of the following numbers
0 - All Keys off
1 - Caps Lock on
2 - Num Lock on
4 - Scroll Lock on
For multiple keys, add their values:
3 - Caps Lock and Num Lock on
5 - Caps Lock and Scroll Lock on
6 - Num Lock and Scroll Lock on
7 - Caps Lock, Num Lock, and Scroll Lock on
5. Log off and back on again
connections.
Start / Run / NETSH DIAG GUI
The following is the type of information that can be displayed:
Ping
Connect
Show
Verbose
Save to Desktop
Mail Service
News Service
Internet Proxy Server
Computer Information
Operating System
Windows Version
Modems
Network Clients
Network Adapters
Domain Name System (DNS)
Dynamic Host Configuration Protocol (DHCP)
Default Gateways
Internet Protocol Address
Windows Internet Naming Service (WINS)
DOS Tips in XP
Submitted 3/4/04
Windows XP cmd tip (DOS isnt dead... it just smells funny) Some command-line folder creation examples:
To create multiple folders at once, add them directly to the "md" command:
C:\> md this is a test
To create a folder several folders deep, use:
C:\> md this\is\a\test
Creating a folder with a long name requires the double-quote at the beginning:
C:\> md "this is a test
Bonus tip: Windows XP supports the forward slash "/" as a folder divider. Unix/Linux users: don't let the DOS
environment get you down. Use a Unix-style CD command to change your present working directory:
C:\> cd Windows/system32/drivers/etc
Submitted by Bob and Tina
Start Regedit
Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters
Edit the IRPStackSize
Give it a value of 15
Reboot the computer
To correct this:
1. Start Regedit
2. Go to HKEY_CLASSES_ROOT \ Directory \ shell
3. Edit the default value to be explorer or none
Download reg file
Portable Media Serial Number - Retrieves the serial number of any portable music player connected
to your computer
QOS RSVP - Provides network signaling and local traffic control setup functionality for QoS-aware
programs and control applets.
Remote Desktop Help Session Manager - Manages and controls Remote Assistance. If you are not
using Remote Desktop you don't need this service.
Remote Registry - Enables remote users to modify registry settings on this computer.
Routing & Remote Access - Offers routing services to businesses in local area and wide area
network environments. Allows dial-in access.
Secondary Login - Enables starting processes under alternate credentials. This is what allows you to
run an application as another user.
Smart Card - Manages access to smart cards read by this computer.
Smart Card Helper - Enables support for legacy non-plug and play smart-card readers used by this
computer.
SSDP Discovery Service - Enables discovery of UPnP devices on your home network.
TCP/IP NetBIOS Helper - Enables support for NetBIOS over TCP/IP (NetBT) service and NetBIOS
name resolution. This should not be needed in today's network environment.
Telnet - Enables a remote user to log on to this computer and run programs, and supports various
TCP/IP Telnet clients.
Uninterruptible Power Supply Service - Manages an uninterruptible power supply (UPS) connected
to the computer.
Universal Plug and Play Device Host - Provides support to host Universal Plug and Play devices
Upload Manager - Manages synchronous and asynchronous file transfers between clients and
servers on the network.
Volume Shadow Copy Service - Manages and implements Volume Shadow Copies used for
backup and other purposes.
Web Client - Enables Windows-based programs to create, access, and modify non-local files across
the Internet.
Wireless Zero Configuration - Provides automatic configuration for the 802.11 adapters
WMI Performance Adapter - Provides performance library information from WMI HiPerf providers.
1.
2.
3.
4.
5.
6.
7.
Repair Install
Added 2/9/03
If XP is corrupted to the point where none of the previous solutions get it to boot,
you can do a Repair Install that might work as well as keep the current settings.
Make sure you have your valid WindowsXP key.
3. You can make a shortcut to that file to make it easy to shut down your system.
Submitted by DJ Speed Racer
Poweroff at Shutdown
1/4/03
If your computer does not turn off the power when doing a shutdown,
you may need to edit the registry. I have all the correct BIOS and Power settings and still needed to do this.
1. Start Regedit
2. Go to HKEY_CURRENT_USER\Control Panel\Desktop
2. Go to HKEY_CURRENT_USER\Control Panel\Desktop
3. Edit the key PowerOffActive and give it a value of 1
4. You can do the same in HKEY_USERS\.DEFAULT\Control Panel\Desktop
Download reg file
Added 12/14/02
To prevent applications from stealing the focus from the window you are working
1. Start Regedit
2. Go to HKEY_CURRENT_USER \ Control Panel \ Desktop
3. Edit the key ForegroundLockTimeout
4. Give it a value of 00030d40
Download reg file
Start regedit.exe
Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Conferencing\Mcpt
Create a new string value (Click on Edit > New > String Value).
Name the value Nx
Double-click on it and set it's value to 1
Close the registry
Prevent the Remote Desktop Sharing (RDS) icon from appearing in the
notification tray
Submitted 11/23/02
To Prevent the Remote Desktop Sharing (RDS) icon from appearing in the notification tray:
1.
2.
3.
4.
5.
6.
7.
Printing a Directory
Added 11/12/02
WindowsXP does not allow you to use previously describe methods for printing the contents of a directory.
To do this requires the creation of a small batch file which is then added to your right-click options.
Batch File
On the root of the C: drive, create a batch file called print_directory.bat with the following lines:
@echo off
dir %1 /o:g > c:\directory.txt
start /w notepad /p c:\directory.txt
del c:\directory.txt
exit
Note: dir %1 /o:g will print with any directories listed first. You can add whatever other switches you like
Adding to the Explorer Right Click
1. Start the Explorer
2. Go to Tools / Folder Options
3. On the File Types tab, click File Folder.
4. Click Advanced button and then click New.
5. In the Action box, type Print Directory (or whatever text you want to appear).
6. In the Application used to perform action box, type C:\print_directory.bat, and then click OK.
7. Click OK, click OK, and then click Close
Fixing the Registry
Sometimes after adding the right click with the Explorer, the default setting for opening a folder is changed.
To correct this:
1. Start Regedit
2. Go to HKEY_CLASSES_ROOT \ Directory \ shell
3. Edit the default value to be explorer or none
Download reg file
1. Start Regedit
2. Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
3. Create the Dword value DisableTaskMgr
4. Give it a value of 0 to enable it
5. Give it a vaule of 1 to disable it
Download Reg File
If you want to use the older version of Microsoft Media Player 6.4, it is still on your computer.
Make a shortcut on your desktop to the:
C:\Program Files\Windows Media Player\mplayer2.exe file
You can also change the file associations from this program to set it as the default for all media types.
ReInstalling WindowsXP
Added 5/21/02
If you need to reinstall WindowsXP and want to keep all your current installed applications and settings:
1. Start WindowsXP
2. Go to the location of your source files
3. Run WINNT32 /unattend
I've often need to do this to repair something that had gotten corrupted and didn't want to do a clean install.
5.
6.
7.
8.
9.
No GUI Boot
No GUI Boot
Added 4/23/02
If you don't need to see the XP boot logo,
1. Run MSCONFIG
2. Click on the BOOT.INI tab
3. Check the box for /NOGUIBOOT
Start Regedit
Go to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
If it is not there, create a String Value of Use Search Asst
Give it a value of no
Logging in as Administrator
Added 4/11/02
If you want to log in as Administrator, but it is not show on the Welcome screen,
1. Hold the Ctrl-Alt key and press Del twice.
2. This will bring up the normal login and you can log on as Administrator
To unhide the Administrator account so it does show up:
1. Start Regedit
2. Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon
\ SpecialAccounts \ UserList
3. Unhide the Administrator key by giving it a value of 1
Download reg file
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
Added 4/5/02
Normally WindowsXP shows assigned pictures for each user on the system.
If you have deleted your user pictures, want to know the location, or need to reinstall them,
they are stored in the C:\Documents and Settings\All Users\Application Data\Microsoft\User Account
Pictures\Default Pictures
directory.
If you need to reinstall them, they can be expanded from the source CD. The actual files are:
airplane.bmp
astronaut.bmp
ball.bmp
butterfly.bmp
cat.bmp
fish.bmp
pink flower.bmp
guitar.bmp
snowflake.bmp
beach.bmp
car.bmp
chess.bmp
dirt bike.bmp
dog.bmp
drip.bmp
duck.bmp
frog.bmp
horses.bmp
kick.bmp
lift-off.bmp
palm tree.bmp
red flower.bmp
skater.bmp
WINIPCFG for XP
Added 4/1/02
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
Log on as an Administrator
Click Start
Select Run
Enter in the command - %systemroot%\inf
Right-click the Srchasst.inf file
Select it
Right click
Select Change Drive Letter and Path
Click on the Edit button
Enter in the letter you want to use
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
Note: This can only be done for drives that do not have the Operating System Installed or you are
booting to.
Turn off the Windows Picture and Fax Viewer as the Default Image Viewer
Updated 3/29/02
You can also change the file associations for the specific file types you want.
1.
2.
3.
4.
5.
6.
Added 3/4/02
Added 3/4/02
If the Windows Picture and Fax Viewer is set as the default for many of your graphic file types,
you can remove it so other graphics programs can be used.
1. Run Regedit
2. Go to HKEY_CLASSES_ROOT / SystemFileAssociations / image / ShellEx / ContextMenuHandlers
3. Delete the key ShellImagePreview
Download reg file
Added 3/18/02
If you want to open a command prompt to a directory that is selected in the Explorer:
1.
2.
3.
4.
5.
6.
7.
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 /k "cd %L"
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.
Running NetMeeting
Running NetMeeting
Added 3/8/02
To run NetMeeting:
1. Do a Start / Run
2. Enter conf
3. Answer the prompts along the way for name, e-mail etc.
Run Regedit
Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion
Create a String Value called RegDone
Give it a value of 1
8.
9.
10.
11.
12.
Note: If the partition is NTFS and you can't access the files from DOS:
1. Start Regedit
2. Go to HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Winlogon.
3. Change the value of Shell from Explorer.exe to explorer_1.exe
Genre
Duration
Bit Rate
Protected
Camera Model
Date Picture Taken
Dimensions
Company
Description
File Version
Product Name
Product Version
1.
2.
3.
4.
5.
If you want to turn off the ability to using the built-in CD burner software that comes with WindowsXP:
1.
2.
3.
4.
5.
Run MSCONFIG
Click on the Startup tab
Uncheck Taskswitch
Click on the OK button
Press Ctrl-Alt-Delete
Click on the Processes tab
Highlight TaskSwitch.exe
Click on the End Process tab
Click on the Yes button
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
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.
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
1. Copy the nbf.sys into the %SYSTEMROOT%\SYSTEM32\DRIVERS\ directory
2. Copy netnbf.inf into the %SYSTEMROOT%\INF\ directory
3. Open the Network connection properties for your local area network and use "Install..." button to add
NetBEUI protocol
I included a zipped file with the above files and a simple batch file to copy both to the appropriate directories
This is only if you absolutely need NetBEUI. It is not at all a necessary requirement for most networks.
Disabling Hibernation
Added 8/20/01
If you don't want to use up the disk space taken by Hibernation, or don't need to use it at all,
you can easily disable it.
1. Open up the Control Panel / Power Options icon
2. Click on the Hibernation icon
3. Uncheck Enable Hibernation
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.
ZoneGames=zoneoc.dll,ZoneSetupProc,igames.inf,,7
Start Regedit
Go to HKEY_CURRENT_USER\Control Panel\Keyboard\InitialKeyboardIndicators
Change the value from 0 to 2
Turn Numlock on manually
Log off and back on again.
For all users, make the same change to HKEY_USERS\.DEFAULT\Control
Panel\Keyboard\InitialKeyboardIndicators