PowerShell Logo Small

Restore-IscsiVirtualDisk



This is the built-in help made by Microsoft for the command 'Restore-IscsiVirtualDisk', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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

Restores a virtual disk from a snapshot.

SYNTAX


Restore-IscsiVirtualDisk [-SnapshotId] <String> [-ComputerName <String>] [<CommonParameters>]
Restore-IscsiVirtualDisk [-ComputerName <String>] -InputObject <IscsiVirtualDiskSnapshot> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Restore-IscsiVirtualDisk cmdlet restores an iSCSI virtual disk using its snapshot.



<

RELATED LINKS

Get-IscsiVirtualDiskSnapshot

REMARKS

<

Examples


EXAMPLE 1

PS C:\> Restore-IscsiVirtualDisk -SnapshotId "{E9A5BA03-85B9-40CA-85DF-DC1695690B40}"



This example restores a snapshot with the ID {E9A5BA03-85B9-40CA-85DF-DC1695690B40}.




EXAMPLE 2

PS C:\> Restore-IscsiVirtualDisk -SnapshotId "{E9A5BA03-85B9-40CA-85DF-DC1695690B40}" -ComputerName "fs1.contoso.com"



This example restores a snapshot with the ID {E9A5BA03-85B9-40CA-85DF-DC1695690B40} hosted on a computer named fs1.contoso.com.




EXAMPLE 3

PS C:\> Restore-IscsiVirtualDisk -InputObject $vhd1snapshot



This example uses the Get-IscsiVirtualDiskSnapshot cmdlet to retrieve a snapshot, then assigns the snapshot object to a variable named
$vhd1snapshot, and finally passes it to this cmdlet to restore the virtual disk.