Set-IscsiVirtualDisk

Set-IscsiVirtualDisk

Modifies the settings for the specified iSCSI virtual disk.

Sintaxis

Parameter Set: DevicePath
Set-IscsiVirtualDisk [-Path] <String> [-ComputerName <String> ] [-Credential <PSCredential> ] [-Description <String> ] [-Enable <Boolean> ] [-PassThru] [ <CommonParameters>]

Parameter Set: InputObject
Set-IscsiVirtualDisk -InputObject <IscsiVirtualDisk> [-ComputerName <String> ] [-Credential <PSCredential> ] [-Description <String> ] [-Enable <Boolean> ] [-PassThru] [ <CommonParameters>]

Descripción detallada

The Set-IscsiVirtualDisk cmdlet modifies the settings for a virtual disk and returns the corresponding iSCSI Virtual Disk object, if the PassThru parameter is specified.

Parámetros

-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.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Credential<PSCredential>

Specifies the credentials when connecting to a remote computer.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Description<String>

Specifies the description for the iSCSI virtual disk.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-Enable<Boolean>

Specifies that the specified iSCSI virtual disk is either enabled or disabled.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-InputObject<IscsiVirtualDisk>

Accepts an iSCSI virtual disk object from the input pipeline.

Alias

ninguno

¿Requerido?

true

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-PassThru

Devuelve un objeto que representa el elemento con el que está trabajando. De forma predeterminada, este cmdlet no genera ningún resultado.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-Path<String>

Specifies the path of the virtual hard disk (VHD) file that is associated with the iSCSI virtual disk.
Filter the iSCSI Virtual Disk object using this parameter.

Alias

DevicePath

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • Microsoft.Iscsi.Target.Commands.IscsiVirtualDisk

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.Iscsi.Target.Commands.IscsiVirtualDisk

Ejemplos

EXAMPLE 1

This example changes the VHD description to disk for data.

PS C:\> Set-IscsiVirtualDisk –Path "E:\Temp\vhd1.vhdx" -Description "disk for data"

EXAMPLE 2

This example disables the VHD with the path E:\Temp\vhd1.vhdx.

PS C:\> Set-IscsiVirtualDisk –Path "E:\Temp\vhd1.vhdx" -Enable $false

Temas relacionados

Checkpoint-IscsiVirtualDisk

Convert-IscsiVirtualDisk

Get-IscsiVirtualDisk

Import-IscsiVirtualDisk

New-IscsiVirtualDisk

Remove-IscsiVirtualDisk

Restore-IscsiVirtualDisk