PowerShell Logo Small

Get-IscsiServerTarget



This is the built-in help made by Microsoft for the command 'Get-IscsiServerTarget', 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

Obtains iSCSI targets and their associated properties.

SYNTAX


Get-IscsiServerTarget [[-TargetName] <String>] [-ClusterGroupName <String>] [-ComputerName <String>] [<CommonParameters>]
Get-IscsiServerTarget [-ClusterGroupName <String>] [-ComputerName <String>] [-InitiatorId <InitiatorId>] [<CommonParameters>]
Get-IscsiServerTarget [-ClusterGroupName <String>] [-ComputerName <String>] [-Path <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-IscsiServerTarget cmdlet obtains iSCSI targets and their associated properties from the local server or specified computer.



<

RELATED LINKS


REMARKS

<

Examples


EXAMPLE 1

PS C:\> Get-IscsiServerTarget



This example gets the iSCSI targets on the local server.




EXAMPLE 2

PS C:\> Get-IscsiServerTarget -ComputerName "fs1.contoso.com"



This example gets all of the iSCSI targets on the remote server named fs1.contoso.com.




EXAMPLE 3

PS C:\> Get-IscsiServerTarget -ComputerName "fscluster.contoso.com" -ClusterGroupName "target1group"



This example gets all of the iSCSI targets in the resource group named target1group on the cluster named fscluster.contoso.com.




EXAMPLE 4

PS C:\> Get-IscsiServerTarget -Path "E:\temp\test.vhd"



This example gets the iSCSI target associated with the VHD with the path "E:\temp\test.vhd"




EXAMPLE 5

PS C:\> Get-IscsiServerTarget -InitiatorId "DNSName:TargetSvr.Contoso.com"



This example gets all of the iSCSI targets that have been assigned to the initiator with type DNSName, and value TargetSvr.contoso.com.