Skip navigation

Windows Tips & Tricks UPDATE--November 24, 2003

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


This Issue Sponsored By

Need a Fax Server? (Whitepaper/Fax Card Offer)
http://www.faxback.com/mcp

VeriSign - The Value of Trust
http://www.verisign.com/cgi-bin/go.cgi?a=n06120149020057000


1. Commentary

2. FAQs

  • Q. How can I stop Windows Server 2003 from automatically mounting new volumes?
  • Q. How can I resolve Device Manager errors in Windows 2000 and later?
  • Q. How can I display all drivers on a Windows XP or later system from the command line?
  • Q. How can I easily construct the command-line syntax for a backup job in Windows XP and later?
  • Q. How can I create an Automated System Recovery (ASR) set if my PC doesn't have a 3.5" disk drive?

3. Announcements

  • Are You Ready to Buy Hardware, Software, Networking Products, and Accessories?
  • Quick Answers for Microsoft Small Business Server

4. Event

  • New--Microsoft Security Road Show!

5. Contact Us

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

Sponsor: Need a Fax Server? (Whitepaper/Fax Card Offer)

Receive a complimentary whitepaper designed to help organizations make informed decisions on network fax technology. While supplies last, get a FREE FAX CARD ($499 value) when you purchase a network fax server!
http://www.faxback.com/mcp


1. Commentary
by John Savill, FAQ Editor, [email protected]

This week, I explain how to stop Windows Server 2003 from automatically mounting new volumes, how to resolve errors in Device Manager, and how to display all drivers on a Windows XP or later system from the command line. I also provide an easy way to construct the command-line syntax for a backup job and tell you how to create an Automated System Recovery (ASR) set for a machine that doesn't have a 3.5" disk drive.


Sponsor: VeriSign - The Value of Trust

Secure all your Web servers now - with a proven 5-part strategy.The FREE Server Security Guide shows you how:

  • DEPLOY THE LATEST ENCRYPTION and authentication techniques
  • DELIVER TRANSPARENT PROTECTION with the strongest security without disrupting users. And more. Get your FREE Guide now:

http://www.verisign.com/cgi-bin/go.cgi?a=n06120149020057000

2. FAQs

Q. How can I stop Windows Server 2003 from automatically mounting new volumes?

A. By default, Windows 2003 automatically mounts and assigns a drive letter to any new volume introduced to the OS. (If the new volume is a dynamic volume, the OS attempts to assign the current drive letter unless that letter is already in use.) You can prevent Windows 2003 from automatically mounting new volumes using either of two methods.

The first method is to use the Mountvol command with the /n switch; go to the command prompt and type

mountvol /n

The second method is to use the Diskpart command with the automount disable option; go to the command prompt and type

diskpart

When the utility starts, you'll see the DISKPART> command prompt. At the prompt, type

automount disable

Your computer will display the message "Automatic mounting of new volumes disabled." To exit the utility, type

exit

Q. How can I resolve Device Manager errors in Windows 2000 and later?

A. The Microsoft Management Console (MMC) Device Manager snap-in contains information about the devices on your system. If a device isn't working correctly, you'll see a yellow icon with an exclamation point (!) next to the device. If you right-click the device and select Properties, Windows will display the actual error message with an error code. The most common error codes and a suggested approach for resolving each problem are as follows:

  • code 1--Select the Driver tab, click Update Driver, then install an updated driver for the device (you should obtain the new driver from the manufacturer's Web site and ensure that your version of Windows supports the hardware).
  • code 3--This error can result from a lack of system resources. Check Task Manager to ensure that the system isn't low on memory. If the system has adequate memory available, the device driver might be corrupt, which might cause the device to think it needs more memory than it actually requires. Follow the steps for code 1 to replace the driver.
  • code 10--Select the Driver tab, click Update Driver, then select "Install from a list or specific location (Advanced)" and manually select the correct driver.
  • code 12--This error occurs because the hardware conflicts with another device. From the device Properties dialog box, select the Resources tab to view the conflicting device in the "Conflicting device list" at the bottom of the screen. Remove the conflicting device, then re-add the device to see whether that device requests a different, nonconflicting resource. If these steps don't resolve the error, you'll need to manually assign resources for the two conflicting devices.
  • code 14--Restart the computer.
  • code 16--From the device Properties dialog box, select the Resources tab. If you see a question mark (?) next to one of the resources assigned to the device, select that resource to assign. If you can't change the resource, click Change Settings. If Change Settings is unavailable, try clearing the "Use automatic settings" check box to make Change Settings available. If the device isn't Plug and Play (PnP), check the hardware documentation for more information about installing and configuring the device.
  • code 22--The device is disabled; From the device Properties dialog box, click Enable Device.

For any code not listed, the best approach is to follow the steps for code 1 to update the driver.

Q. How can I display all drivers on a Windows XP or later system from the command line?

A. XP and later OSs come with a utility called Driverquery that lets you display information about all drivers on the system. From the command prompt, type

driverquery

To see a list of all applicable options, type

driverquery /? 

To have the utility return more information about the drivers, enable verbose mode by typing

driverquery /v

You can also display the information in various formats. For example, to output the driver details in comma-separated value (CSV) format to ease the process of importing the data into a spreadsheet, type

driverquery /fo csv

When I run this command, my system displays

"Module Name","Display Name","Driver Type","Link Date"
"ac97intc","Intel(r) 82801 Audio Driver Install Service (WDM)","Kernel ","19/07/2001 23:43:40"
"ACPI","Microsoft ACPI Driver","Kernel ","29/08/2002 09:09:03"
"ACPIEC","ACPIEC","Kernel ","17/08/2001 21:57:55"
"adpu160m","adpu160m","Kernel ","30/05/2001 10:18:22"
"aec","Microsoft Kernel Acoustic Echo Canceller","Kernel ","12/08/2002 18:54:24"

"AFD","AFD Networking Support Environment","Kernel ","29/08/2002 10:01:13"
"agp440","Intel AGP Bus Filter","Kernel ","17/08/2001 21:57:59"

Also, be aware that several of the switches (i.e., /s, /u, and /p) let you execute the command against a remote system.

Q. How can I easily construct the command-line syntax for a backup job in Windows XP and later?

A. Because several switches and commands are available when performing a backup from the command line, keeping track of your backup configuration can get complex. Fortunately, you can use the Backup Wizard to construct a dummy backup job that lets you see the equivalent command-line options. To do so, perform the following steps:

  1. Start Windows Backup.
  2. Select the Schedule Jobs tab.
  3. Select a day, then click Add Job, as this figure shows.
  4. Click Next on the first screen of the Backup Wizard page that appears.
  5. Select the files, folders, or drives that you want to back up, then click Next. (Depending on which options you select, you might have to navigate through additional screens to manually select the items you want to back up.)
  6. Select the destination for the backup, then click Next.
  7. Select the type of backup that you want to perform, then click Next.
  8. Select any options you want performed during the backup (e.g., "Verify data after backup"), then click Next.
  9. Select the backup overwrite options, then click Next.
  10. Select when to run the backup, as this figure shows, give it a job name, then click Next.
  11. Enter the user account information necessary to perform the backup, then click OK.
  12. Click Finish.
  13. Windows Backup will create a new backup job. Right-click the new job to display the Properties dialog box, then click the Properties button. Select the Task tab to view the Ntbackup command that will be used to run the backup job. For example, the Backup Wizard constructed the following Ntbackup command for my job:
    G:\WINDOWS\system32\ntbackup.exe backup "@G:\Documents and
    Settings\savijo\Local Settings\Application Data\Microsoft\Windows
    NT\NTBackup\data\Full system normal backup.bks" /n "backup.bkf created
    13/11/2003 at 13:50" /d "Set created 13/11/2003 at
    13:50" /v:no /r:no /rs:no /hc:off /m normal /j "Full system normal
    backup" /l:s /f "E:\backup.bkf" 
  14. Click Delete to remove the backup job. Easy! :-)

Q. How can I create an Automated System Recovery (ASR) set if my PC doesn't have a 3.5" disk drive?

A. An ASR set consists of a system backup and a 3.5" disk that lists the system files that are installed on the PC. If you don't have a 3.5" disk drive on your machine, you won't be able to create the ASR disk. However, you can still create an ASR disk by performing the following steps:

  1. Run the ASR wizard, which is part of Windows Backup.
  2. After you run the ASR Wizard, start Windows Explorer.
  3. Navigate to the \%windir%\repair folder (e.g., C:\windows\repair).
  4. Copy the asr.sif and asrpnp.sif files to a network location.
  5. On a different networked computer that has a 3.5" disk drive, copy these files to a 3.5" disk and label the disk as your ASR disk.

3. Announcements
(from Windows & .NET Magazine and its partners)

  • Are You Ready to Buy Hardware, Software, Networking Products, and Accessories?

  • Check out the latest offerings on the IT Buyer’s Network. Find clearance items and rebates, research products in the solutions library, check out reference guides, and learn about the latest technology seminar. Easily search the most up-to-date products by category and sign up to receive product information from the email newsletter.
    http://www.itbuynet.com

  • Quick Answers for Microsoft Small Business Server

  • Is Small Business Server right for you? Do you need answers about how to set up Small Business Server? Learn about Small Business Server’s key features, upgrade possibilities, and storage and find how-to guides, troubleshooting tips, forums, and more at Windows & .NET Magazine online.
    http://www.winnetmag.com/smallbusinessserver

    4. Event
    (brought to you by Windows & .NET Magazine)

  • New--Microsoft Security Road Show!

  • Join industry guru Mark Minasi on this exciting 20-city tour and learn more about tips to secure your Windows Server 2003 and Windows 2000 network. There is no charge for this event, but space is limited, so register today! Sign up now for our December events.
    http://www.winnetmag.com/roadshows/security2003dec

    Sponsored Links

  • Sybari Software

  • Free! "Admins Shortcut Guide to Email Protection" from Sybari
    http://ad.doubleclick.net/clk;6574227;8214395;q?http://www.sybari.com/ebook

  • VMware Inc.

  • FREE VMware Workstation for Microsoft Certified Trainers.
    http://ad.doubleclick.net/clk;6602582;8214395;m?http://www.vmware.com/wl/offer/486/0

    5. Contact Us
    Here's how to reach us with your comments and questions:

    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