Skip navigation

Windows XP and 2000 Tips & Tricks UPDATE, June 3, 2002

Windows XP and 2000 Tips & Tricks UPDATE—brought to you by the Windows & .NET Magazine Network and the Windows 2000 FAQ site
http://www.windows2000faq.com


THIS ISSUE SPONSORED BY

New SmarTerm v11 is host access transformed
http://www.esker.com/stv11wintips

New System Management Toolset from TNT Software
http://www.tntsoftware.com/download/
(below COMMENTARY)


SPONSOR: NEW SMARTERM V11 IS HOST ACCESS TRANSFORMED

Step up to new SmarTerm v11 for as little as $50 USD per user. New licenses start at just $99 USD. SmarTerm v11 is multi-OS host access — XP/2000/ME/98/95/NT. For smooth migration and continuity of your host applications no matter the operating system. Key enhancements include: SCP for secure file copying, simplified installation and setup for easy upgrading and improvements for equal access in compliance with Section 508. SmarTerm v11 also gives you industry-standard encryption services with SSH and SSL. SmarTerm v11 is host access transformed. For FREE information or to qualify for an eval, go to
http://www.esker.com/stv11wintips


June 3, 2002—In this issue:

1. COMMENTARY

2. FAQS

  • Q. How can I ensure that Microsoft Outlook 2002 or Outlook 2000 will overwrite information I've deleted from my personal folder store (PST) and offline folder store (OST) when I close my mailbox?
  • Q. How can I ascertain which machine a user is using?
  • Q. How can I recover a deleted dynamic NTFS or FAT32 volume in Windows XP or Windows 2000?
  • Q. Why can't the Windows 2000 version of Windows Explorer display files or folders that have a path longer than 259 characters?
  • Q. How can I improve the video-viewing performance on my laptop?
  • Q. How can I create a TaskPad in a Microsoft Management Console (MMC) console?

3. ANNOUNCEMENTS

  • Time Is Running Out to Attend Our Free Security Summit!
  • Register for Our Latest Web Seminar and Get a Free Subscription to SQL Server Magazine!

4. CONTACT US

  • See this section for a list of ways to contact us.

1. COMMENTARY

(contributed by John Savill, FAQ Editor, [email protected])

This week, I explain how you can ensure that Microsoft Outlook overwrites information you've deleted from your personal folder store (PST) and offline folder store (OST), how to ascertain which machine a user is using, and how to recover a deleted dynamic NTFS or FAT32 volume. I also tell you how to work around a problem in the Windows 2000 version of Windows Explorer that prevents the OS from displaying files or folders that have a path longer than 259 characters; how to improve video-viewing performance on a laptop; and how to create a TaskPad in a Microsoft Management Console (MMC) console.


SPONSOR: NEW SYSTEM MANAGEMENT TOOLSET FROM TNT SOFTWARE

TNT Software's ELM Enterprise Manager(tm) 3.0 gives you the power to see the health and status of all your systems at a single glance. The MMC snap-in UI provides easy access to consolidated event, service, process, and performance data. After monitoring with either Service or Remote Agents, EEM 3.0 alerts you before avoidable downtime or intellectual property theft costs your company $$$$$$$. All this with a simple licensing model. For a free evaluation download visit:
http://www.tntsoftware.com/download/


2. FAQS

Q. How can I ensure that Microsoft Outlook 2002 or Outlook 2000 will overwrite information I've deleted from my personal folder store (PST) and offline folder store (OST) when I close my mailbox?

A. Outlook usually removes deleted data from the PST and OST when you close the application. To ensure that Outlook overwrites all deleted data when you close your mailbox, perform the following steps:

  1. Start a registry editor (e.g., regedit.exe).
  2. Navigate to the HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\PST subkey for Outlook 2002 or to the HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\PST subkey for Outlook 2000 (you might need to create the PST subkey if it doesn't exist).
  3. From the Edit menu, select New, DWORD Value.
  4. Enter a name of PSTNullFreeOnClose, then press Enter.
  5. Double-click the new entry, set the value to 1 (0 is the default setting) to instruct Outlook to remove the deleted data every time you close the application, then click OK.
  6. Close the registry editor.

Q. How can I ascertain which machine a user is using?

A. To identify which machine a particular user is using, you can run a series of commands (and even create a script to automate this process) by performing the following steps:

  1. Open a command prompt—go to Start, Run, and type
  2. cmd.exe
  3. Type
  4. nbtstat -R 

    to purge and reload the remote cache name table.

  5. Type
  6. net send <username> .

    to send the user a period (.) for a message.

  7. Type
  8. nbtstat -c 

    to list the cache of recently used names and IP addresses, so you can identify the entry for the user you're communicating with.

  9. Type
  10. nbtstat -A <IP address identified in step 4> 

    to equate the user's IP address to the machine name.

    For example, to locate a user named Kevin, I performed the following series of commands and received the indicated responses:

       
    C:\>nbtstat -R
    Successful purge and preload of the NBT Remote Cache Name Table.
    
    C:\>net send kevin .
    The message was successfully sent to KEVIN.
    
    C:\>nbtstat -c
    Local Area Connection:
    Node IpAddress: \[200.200.200.5\] Scope Id: \[\]
    
    NetBIOS Remote Cache Name Table
    
    Name Type Host Address Life \[sec\]
    
    ------------------------------------------------------------
    KEVIN <03> UNIQUE 200.200.200.3 597
    
    C:\>nbtstat -A 200.200.200.3
    Local Area Connection:
    Node IpAddress: \[200.200.200.5\] Scope Id: \[\]
    
    NetBIOS Remote Machine Name Table
    
    Name Type Status
    ---------------------------------------------
    WORKST2 <00> UNIQUE Registered
    SAVILLTECH <00> GROUP Registered
    WORKST2 <03> UNIQUE Registered
    WORKST2 <20> UNIQUE Registered
    SAVILLTECH <1E> GROUP Registered
    WORKST2 <6A> UNIQUE Registered
    WORKST2 <87> UNIQUE Registered
    KEVIN <03> UNIQUE Registered
    
    MAC Address = 00-08-C3-8F-0D-83

    From this information, I discovered that Kevin is using machine WORKST2 at IP address 200.200.200.3.

    Q. How can I recover a deleted dynamic NTFS or FAT32 volume in Windows XP or Windows 2000?

    A. When you delete a dynamic volume, the OS erases the volume's file-system boot sector (sector 0) and removes the volume entry from the Microsoft Management Console (MMC) Disk Management snap-in private region database. However, as part of this process, the OS leaves the rest of the drive intact, including the data. Both FAT32 and NTFS store a backup copy of the boot sector. You can copy this boot sector back to sector 0 and restore the volume as long as you know the original volume size.

    To recover an NTFS volume, perform the following steps:

    1. Open the Disk Management snap-in (go to Start, Programs, Administrative Tools, Computer Management, and select Storage).
    2. Recreate the original volume by right-clicking the unpartitioned space and selecting New Partition from the context menu; specify the exact size of the original volume in the process, but don't format the volume (you must know the original volume size to recreate the volume because the Disk Management snap-in rounds partition sizes).
    3. Use dskprobe.exe to recover the backup boot sector for the NTFS volume from the end of the deleted dynamic volume (because you're restoring a dynamic volume, you might need to use dmdiag.exe to find the backup boot sector). See the Microsoft article "Recovering NTFS boot sector on NTFS partitions" ( http://support.microsoft.com/directory/article.asp?id=kb;en-us;q153973 ) for an explanation of how to copy the boot sector.
    4. After you rewrite the NTFS boot sector, quit Dskprobe.
    5. Go to the MMC Computer Management console Action menu and click Rescan Disks to mount the volume for immediate use.

    To recover a FAT32 volume, perform the following steps:

    1. Open the Disk Management snap-in (go to Start, Programs, Administrative Tools, Computer Management, and select Storage).
    2. Recreate the original volume by right-clicking the unpartitioned space and selecting New Partition from the context menu; specify the exact size of the original volume in the process, but don't format the volume (you must know the original volume size to recreate the volume because the Disk Management snap-in rounds partition sizes).
    3. Use dskprobe.exe to recover the backup boot sector for the deleted dynamic FAT32 volume from sector 6 of the logical volume and write it to sector 0 of the logical volume. See the Microsoft article "Chkdsk Does Not Use Backup Boot Sector to Fix Corrupted FAT32 Boot Sector" for an explanation of how to copy the boot sector.
    4. After you rewrite the FAT32 boot sector, quit Dskprobe.
    5. Go to the Computer Management console Action menu and click Rescan Disks to mount the volume for immediate use.

    Q. Why can't the Windows 2000 version of Windows Explorer display files or folders that have a path longer than 259 characters?

    A. A bug in the Win2K version of Windows Explorer and the search feature prevent the OS from displaying files or folders in paths longer than 259 characters. This bug affects only searches you perform on your local system; it doesn't affect users who connect over a network. To work around this problem, you can take any of the following steps:

  • From a command prompt session, use the 8.3 file-naming convention to access files or folders.
  • Use the Net Use command to create a network path to your local drive.
  • Use the Subst command to create a new drive letter to a point in the path. For example,
subst g: d:\path\path2\path3

Q. How can I improve the video-viewing performance on my laptop?

A. Video playback performance is very CPU intensive. As a result, if you run other applications while attempting to view video on your laptop, you might significantly degrade the playback performance. Although this concern isn't specific to laptops, other components, such as power management, also affect laptop video playback performance. For example, some power-management technologies, such as Intel's Intel SpeedStep technology and AMD's AMD PowerNow! Technology, can affect the processor speed.

For Windows 2000, use the applet or configuration utility that the system vendor provided to select a setting that doesn't permit the processor speed to change during video playback. Likewise, if running the laptop CPU at a low speed compromises video playback performance, select a higher CPU speed.

For Windows XP, ensure that you've set the power scheme to Always On by performing the following steps:

  1. Start the Control Panel Power Options applet (go to Start, Settings, Control Panel, and click Power Options).
  2. Select the Power Schemes tab.
  3. Select Always On from the drop-down list.
  4. Click OK.

After you finish viewing your video, I suggest that you adjust the power mode or processor mode to a lower setting to preserve battery life.

Q. How can I create a TaskPad in a Windows XP Microsoft Management Console (MMC) console?

A. You can add snap-ins to an MMC console and even create a TaskPad to the console so that you can add commonly used actions and commands to a bar in the console. To create a TaskPad, perform the following steps:

  1. Start the MMC console (go to Start, Run, and type
  2. MMC

    to open a blank console).

  3. From the File menu, click Add/Remove Snap-in to add the snap-ins you want to use (if you've already created an .msc file, right-click the file and select Author from the context menu to open the file in Author mode).
  4. From the Action menu, select New TaskPad View.
  5. Click Next to bypass the welcome wizard introduction screen.
  6. Select the style you want to use for the TaskPad display, then click Next to display a preview of the TaskPad.
  7. Decide whether the TaskPad will apply to just the tree structure or to all instances of the tree structure, then click Next.
  8. Name the TaskPad, then click Next. A Finished dialog box will appear at the end of the wizard. The dialog box gives you the option of running the new task wizard and adding tasks to your new blank TaskPad.
  9. Ensure that you've selected the "Run new task wizard" check box, then click Finish.
  10. When the new task wizard opens, click Next to bypass the introduction page.
  11. Select the type of task you want to add (you can add a link to a context menu option, a command execution, a Web site, or quick navigation to a Favorite), then click Next.
  12. Enter the options for your choice, then click Next.
  13. Click Finish (you can optionally select the "Another task" check box to add another task).
  14. Save your console.

The figure at http://www.windows2000faq.com/articles/index.cfm?articleid=25346 shows a completed TaskPad.

3. ANNOUNCEMENTS
(brought to you by Windows & .NET Magazine and its partners)

  • TIME IS RUNNING OUT TO ATTEND OUR FREE SECURITY SUMMIT!

  • If you're using Windows 2000 to run mission-critical applications, you know Win2K has security concerns. The Windows & .NET Magazine Security Solutions Summit, an online event being held this Tuesday, June 4, addresses where the vulnerabilities lie and how you can exploit the same tools that intruders use. Register now!
    http://www.winnetmag.com/seminars/security

  • REGISTER FOR OUR LATEST WEB SEMINAR AND GET A FREE SUBSCRIPTION TO SQL SERVER MAGAZINE!

  • SQL Server Magazine, the premier source of technical, how-to information for database professionals, has an unbeatable lineup of educational tools. Register today for our upcoming Web seminar "Identifying SQL Server Performance Problems," presented by Brian Moran (just $29.95!), and get a 1-year subscription to SQL Server Magazine—absolutely free!
    http://www.sqlmag.com/sub.cfm?code=bmae2esu

    4. CONTACT US
    Here's how to reach us with your comments and questions:

    (please mention the newsletter name in the subject line)

    This weekly email newsletter is brought to you by Windows & .NET Magazine, the leading publication for Windows professionals who want to learn more and perform better. Subscribe today.
    http://www.winnetmag.com/sub.cfm?code=wswi201x1z

    Receive the latest information about the Windows and .NET topics of your choice. Subscribe to our other FREE email newsletters.
    http://www.winnetmag.net/email

    Hide comments

    Comments

    • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

    Plain text

    • No HTML tags allowed.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Lines and paragraphs break automatically.
    Publish