次の方法で共有


offline volume

フォーカスのあるオンライン ボリュームをオフライン状態にします。

Note

A volume must be selected for the offline volume command to succeed. Use the select volume command to select a disk and shift the focus to it.

Syntax

offline volume [noerr]

Parameters

Parameter Description
noerr スクリプトの場合のみ。 エラーが発生した場合、DiskPart は、エラーが発生しなかったかのようにコマンドを処理し続けます。 このパラメーターを指定しないと、エラーにより DiskPart がエラー コードで終了します。

Examples

フォーカスのあるディスクをオフラインにするには、次のように入力します。

offline volume