Tips:禁用Windows Beep聲

來源:互聯網
上載者:User

工作需要,用虛擬機器比較多,我用的是MS Virtual Server,本來虛擬機器裝個音效卡就沒什麼意思,但是經常在虛擬機器裡Application出錯或者警告時候發出討厭的Beep聲,今天找到如何去掉beep聲,記一下

禁用用戶端發出噪音的裝置,該裝置在“裝置管理員”->“非隨插即用裝置”裡可以找到,不過還需要選擇“顯示隱藏裝置”)。

command下執行命令

net stop beep  

//停掉beep服務

sc config beep start= disabled

//把beep服務設定為禁用狀態

 

註:beep不是services.msc所列的一個服務,而是驅動類服務。
運行devmgmt.msc,查看/顯示隱藏的裝置,然後就可以找到非隨插即用裝置中有個beep,雙擊,即可調整屬性,停止,並設定為禁用

這下整個世界清淨多了...

 

ps:發現Virtual Server中一個有用的功能 vhdMount,我記得VMWare中也有這個咚咚的

就是有時候需要從虛機硬碟裡考點東西,一般的做法就是開機,然後連網考貝,

這個工具可以掛載虛機磁碟

 

1.載入

C:\Program Files\Microsoft Virtual Server\Vhdmount>vhdmount /p "E:\VPC\Windows 2000 Pro\Windows2000 Hard Disk.vhd"

2.卸載

C:\Program Files\Microsoft Virtual Server\Vhdmount>vhdmount /d /u "E:\VPC\Windows 2000 Pro\Windows2000 Hard Disk.vhd"

-----------------------------------------------------

The VHD Mount command-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.

Note   The /m option 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 /m does 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 /c and /d are only applicable if the .vhd file was mounted without using /f.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.