Stop-IscsiVirtualDiskOperation

Stop-IscsiVirtualDiskOperation

Stops a long-running operation in progress on an iSCSI virtual disk.

構文

Parameter Set: DevicePath
Stop-IscsiVirtualDiskOperation [-Path] <String> [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]

Parameter Set: InputObject
Stop-IscsiVirtualDiskOperation -InputObject <IscsiVirtualDisk> [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]

詳細説明

The Stop-IscsiVirtualDiskOperation cmdlet stops a long-running operation in progress on an iSCSI virtual disk. If you cancel an operation, it is possible that the operation completes before the cancelation takes effect. Always re-enumerate or recheck objects affected by an operation after this cmdlet finishes.

Stopping a create operation can remove a created file, or can leave the file intact but not completely zero it out.

After you stop an operation, the size of an existing file to be increased can appear larger until the next time you restart the iSCSI service, restart the disk, or disable and re-enable the disk. Some data can be lost.

If you stop an operation, the virtual disk may be in an inconsistent state, and require a new rollback.

This cmdlet accepts values for the ComputerName and Path parameters by using as pipeline input the InputObject parameter.

パラメーター

-ComputerName<String>

Specifies the computer name, or IP address, of the remote computer, if this cmdlet is run on a remote computer.

Specifies the cluster resource group network name, or cluster node name, if this cmdlet is run on a cluster configuration.

If you do not specify a value for this parameter, the cmdlet uses the local computer.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Credential<PSCredential>

Specifies the credentials when connecting to a remote computer.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-InputObject<IscsiVirtualDisk>

Specifies an IscsiVirtualDisk object. You can get an IscsiVirtualDisk object by using the Get-IscsiVirtualDisk cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Path<String>

Specifies the path of the virtual hard disk (VHDX) file that is associated with the iSCSI virtual disk. The cmdlet stops the long-running operation on the iSCSI virtual disk that you specify.

エイリアス

DevicePath

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • None

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None

Example 1: Stop a virtual disk operation

This command stops an operation in progress on the virtual disk at the specified location.

PS C:\> Stop-IscsiVirtualDiskOperation -Path "D:\VirtualDisk09"

関連トピック

Get-IscsiVirtualDisk