< Back

Get-TargetPortal

Wed Jan 30, 2019 6:02 pm

NAME Get-TargetPortal



SYNOPSIS

Returns a TargetPortal object.





SYNTAX

Get-TargetPortal [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-UniqueId <String[]>] [<CommonParameters>]



Get-TargetPortal [-CimSession <CimSession[]>] [-TargetPort <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Get-TargetPortal [-CimSession <CimSession[]>] [-IPv6Address <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Get-TargetPortal [-CimSession <CimSession[]>] [-StorageSubsystem <CimInstance>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Get-TargetPortal [-CimSession <CimSession[]>] [-IPv4Address <String[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]





DESCRIPTION

The Get-TargetPortal cmdlet returns a TargetPortal object.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or

Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-IPv4Address [<String[]>]

Represents a TCP/IP v4 address in xxx.xxx.xxx.xxx format.



Required? false

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-IPv6Address [<String[]>]

Represents a TCP/IP v6 address.



Required? false

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-StorageSubsystem [<CimInstance>]

Specifies a storage subsystem, as a CimInstance object. The cmdlet gets target portals exposed by the storage subsystem that you specify. To obtain

a storage subsystem object, use the Get-StorageSubSystem cmdlet.



Required? false

Position? named

Default value none

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-TargetPort [<CimInstance>]

Accepts a TargetPort object as input. The Target Port CIM object is exposed by the Get-TargetPort cmdlet.



Required? false

Position? named

Default value none

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is

entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the

computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-UniqueId [<String[]>]

Specifies an ID used to uniquely identify a Disk object in the system. The ID persists through restarts.



Required? false

Position? named

Default value none

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_TargetPort

http://msdn.microsoft.com/library/windo ... 30582.aspx





You can use the pipeline operator to pass a TargetPort object to the TargetPort parameter to get the TargetPortal object associated with the

specified target port.





OUTPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_TargetPortal

http://msdn.microsoft.com/library/windo ... 30583.aspx





This cmdlet returns an object that represents the target portal.





EXAMPLE 1



PS C:\\>Get-TargetPortal



This example gets all target portals.





EXAMPLE 2



PS C:\\>Get-TargetPortal -IPv4Address 192.168.0.1



This example gets the target portal with the IPv4 address of 192.168.0.1.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816420

Get-TargetPort