PowerShell Logo Small

Set-IscsiVirtualDisk



This is the built-in help made by Microsoft for the command 'Set-IscsiVirtualDisk', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Modifies the settings for the specified iSCSI virtual disk.

SYNTAX


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



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=294088
Checkpoint-IscsiVirtualDisk
Convert-IscsiVirtualDisk
Get-IscsiVirtualDisk
Import-IscsiVirtualDisk
New-IscsiVirtualDisk
Remove-IscsiVirtualDisk
Restore-IscsiVirtualDisk

REMARKS

<

Examples


EXAMPLE 1

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



This example changes the VHD description to disk for data.




EXAMPLE 2

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



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