PowerShell Logo Small

Get-TargetPort



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

Returns a TargetPort object associated with a specific port address and connection type.

SYNTAX


Get-TargetPort [[-FriendlyName] <String[]>] [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-ConnectionType <ConnectionType[]>]
[-ThrottleLimit <Int32>] [<CommonParameters>]
Get-TargetPort [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-TargetPortal <CimInstance>] [-ThrottleLimit <Int32>]
[<CommonParameters>]
Get-TargetPort [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-StorageSubSystem <CimInstance>] [-ThrottleLimit <Int32>]
[<CommonParameters>]
Get-TargetPort [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-VirtualDisk <CimInstance>]
[<CommonParameters>]
Get-TargetPort [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-MaskingSet <CimInstance>] [-ThrottleLimit <Int32>]
[<CommonParameters>]
Get-TargetPort [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-UniqueId <String[]>] [<CommonParameters>]
Get-TargetPort [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-ConnectionType <ConnectionType[]>] [-PortAddress <String[]>]
[-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-TargetPort cmdlet returns a TargetPort object associated with a specific port address and connection type.



<

RELATED LINKS

Get-StorageSubsystem

REMARKS

<

Examples


EXAMPLE 1

PS C:\> $StorageSubsystem = Get-StorageSubsystem


PS C:\> Get-Targetport -StorageSubsystem $StorageSubsystem



This example returns a list of target ports on the specified storage subsystem.