iSCSI Target Cmdlets in Windows PowerShell
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.
iSCSI target service
This reference provides cmdlet descriptions and syntax for all iSCSI target service-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.
cmdlet | Description |
---|---|
Assigns a virtual disk to an iSCSI target. |
|
Creates a virtual disk snapshot. |
|
Converts an iSCSI virtual disk to a Generation one Advanced Format-aligned (4K sector technology) virtual disk. |
|
Dismounts the snapshot. |
|
Expands a virtual disk. |
|
Exports a snapshot. |
|
Obtains iSCSI targets and their associated properties. |
|
Gets the global settings or common configurations for iSCSI targets, virtual disks or snapshots. |
|
Obtains the iSCSI virtual disks and their associated properties. |
|
Gets properties of snapshots. |
|
Adds an iSCSI Virtual Disk object using an existing virtual hard disk (VHD) file. |
|
Mounts a snapshot locally. |
|
Creates a new iSCSI Target object with the specified name. |
|
Creates an iSCSI virtual disk with the specified file path and size. |
|
Deletes the specified iSCSI target. |
|
Deletes a Virtual Disk object, without deleting the virtual hard disk (VHD) file. |
|
Deletes the specified snapshot. |
|
Removes the assignment between the specified iSCSI virtual disk and the specified iSCSI target. |
|
Restores an iSCSI virtual disk from a snapshot. |
|
Modifies settings for the specified iSCSI target. |
|
Sets the global settings or common configurations for an iSCSI target virtual disk. |
|
Modifies the settings for the specified iSCSI virtual disk. |
|
Sets the description for a snapshot. |
Note
To list all the cmdlets that are available, use the Get-Command –Module IscsiTarget
cmdlet.
For more information about, or for the syntax of, any of the cmdlets, use the Get-Help
<cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets:
● Get-Help
<cmdlet name> -Detailed
● Get-Help
<cmdlet name> -Examples
● Get-Help
<cmdlet name> -Full
More Information
For more information about the cmdlets, see the following:
-