From: http://www.cnblogs.com/upzone/archive/2007/05/23/757346.html
Work needs: There are a lot of virtual machines. I use MS virtual server. It is meaningless to have a sound card installed on a virtual machine, however, beep is often annoying when an application error or warning occurs in the Virtual Machine. Today, find out how to remove the beep, and remember
Disable a device that emits noise from the client. The device can be found in "Device Manager"> "plug-and-play device", but you also need to select "show hidden device ").
Command
Net stop beep
// Stop the beep Service
SC config beep start = disabled
// Set the beep service to Disabled
Note: beep is not a service listed in services. msc, but a driver service.
Run devmgmt. MSC to view/display hidden devices. Then, you can find a beep in a non-plug-and-play device. Double-click it to adjust the properties, stop it, and set it to disabled.
Now the whole world is much cleaner...
PS: I found a useful vhdmount feature in virtual server. I remember this feature also exists in VMware.
That is, sometimes you need to test something from the VM hard disk. The general practice is to start the instance and then test the online drive,
This tool can mount VM Disks
1. Load
C: \ Program Files \ Microsoft Virtual Server \ vhdmount> vhdmount/P "E: \ VPC \ Windows 2000 PRO \ Windows2000 hard disk. vhd"
2. Uninstall
C: \ Program Files \ Microsoft Virtual Server \ vhdmount> vhdmount/D/u "E: \ VPC \ Windows 2000 PRO \ Windows2000 hard disk. vhd"
-----------------------------------------------------
TheVhd MountCommand-line tool mounts a virtual hard disk file (. vhd file) as a virtual disk device. By default, vhdmount.exe is installed at \ Program Files \ Microsoft Virtual Server \ vhdmount.
Note
Vhd mount is case-sensitive and must be entered all lowercase.
Syntax
vhdmount {/p <VHDFileName> | /m <VHDFileName> [<DriveLetter>] | /f /u {<VHDFileName> [/c | /d] | All} | /q {<VHDFileName> | All}}
Parameters
Parameter
Description
/P
Plugs in the specified. vhd file as a virtual disk device without mounting the volume.
/M
Plugs in the specified. vhd file as a virtual disk device and mounts the volume. driveletter is optional. if drive letter is specified, the volumes are mounted starting at the specified drive letter. if drive letter is not specified, it is automatically assigned.
NoteThe/MOption uses Windows Virtual Disk Service (VDS) APIs to mount volumes on the disk. VDS APIs are only available in Windows Server 2003, Windows Server "Longhorn", and Windows Vista. This means that/MDoes not mount the volumes when the host operating system is Windows XP. However, you can mount volumes manually in Windows XP by using Disk Manager.
/U
Unplugs the virtual disk device for the specified vhdfilename or on all mounted virtual disk devices. vhdfilename is the fully qualified path of the. vhd file.
/Q
Returns the disk identifier of the mounted virtual disk device for the specified vhdfilename, or on all mounted virtual disk devices. vhdfilename is the fully qualified path of the. vhd file.
/F
Mounts the virtual hard disk without an undo disk. all changes are made to the original virtual hard disk. by default, vhdmount mounts the virtual hard disk by creating a temporary undo disk, and changes are made to the Undo disk.
/C
Updates the original. vhd file with all changes that were stored in the Undo disk file and deletes the Undo disk file before unplugging the disk.
/D
Discards all changes to the mounted disk and deletes the Undo disk file before unplugging the disk.
Note
Options/CAnd/DAre only applicable if the. vhd file was mounted without using/F.