Export (0) Print
Expand All

New-IscsiServerTarget

Updated: April 29, 2013

Applies To: Windows Server 2012

New-IscsiServerTarget

Creates a new iSCSI Target object with the specified name.

Syntax

Parameter Set: __AllParameterSets
New-IscsiServerTarget [-TargetName] <String> [-ClusterGroupName <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [-InitiatorIds <InitiatorId[]> ] [ <CommonParameters>]




Detailed Description

The New-IscsiServerTarget cmdlet creates a new iSCSI Target object with the specified name. After creating a new iSCSI Target object, the target can be assigned to an iSCSI initiator, and a virtual disk can be associated with the target.

Parameters

-ClusterGroupName<String>

Specifies the name of the resource group or network within the resource group on which this cmdlet should be run.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ComputerName<String>

Specifies the computer name, or IP address, of the remote computer, if this cmdlet is run on a remote computer.
Specifies the cluster resource group network name, or cluster node name, if this cmdlet is run on a cluster configuration.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Credential<PSCredential>

Specifies the credentials when connecting to a remote computer.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InitiatorIds<InitiatorId[]>

Specifies the iSCSI initiator identifiers (IDs) to which the iSCSI target is assigned.
Use this parameter to filter out the iSCSI Target object that are associated with the specified initiators.
The format of this parameter is IdType:Value.
The acceptable values for this parameter are:  DNSName, IPAddress, IPv6Address, IQN, or MACAddress.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-TargetName<String>

Specifies the name of the iSCSI target.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Iscsi.Target.Commands.iSCSIServerTarget

Examples

EXAMPLE 1

This example creates a target named T1 on the local server.


PS C:\> New-IscsiServerTarget -Targetname "T1"

EXAMPLE 2

This example creates a target with the name T1 and assigns it to two initiators, with IP addresses 10.10.1.1 and 10.10.1.2.


PS C:\> New-IscsiServerTarget -Targetname "T1" -InitiatorId IPAddress:10.10.1.1,IPAddress:10.10.1.2

EXAMPLE 3

This example creates a target with the name T1 in the cluster group named Group1 on the cluster named fscluster.contoso.com.


PS C:\> New-IscsiServerTarget -Targetname "T1" -ComputerName "fscluster.contoso.com" -ClusterGroupName "Group1"

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft