Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Set-IscsiTargetServerSetting

Set-IscsiTargetServerSetting

microsoft.iscsi.target.commands.dll

Synopsis

Sets the global settings or common configurations for an iSCSI target virtual disk.

Syntax

Set-IscsiTargetServerSetting [-ComputerName] [-Credential] [-PassThru] [-DisableRemoteManagement] [<CommonParameters>]

Set-IscsiTargetServerSetting [-IP] [-ComputerName] [-Credential] [-Enable] [-PassThru] [-Port] [<CommonParameters>]

Detailed Description

The Set-IscsiTargetServerSetting cmdlet sets the global settings or common configurations for an iSCSI target.

Parameters

-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

-DisableRemoteManagement <Boolean>

Indicates whether the computer that runs Microsoft iSCSI Target Server accepts any network-based management requests. If you specify a value of $True, iSCSI Target Server does not accept requests issued by thread tokens that contain a SECURITY_NETWORK_RID.

You can specify this parameter only as a local user on the computer that runs iSCSI Target Server or on the cluster node that owns the iSCSI Target Server clustered role.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Enable <Boolean>

Specifies the portal state as set by the user.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-IP <String>

Specifies an IP address.

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Port <Int32>

Specifies the port number to which the iSCSI target should listen.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

None.

Return Type

Microsoft.Iscsi.Target.Commands.IscsiTargetServerSetting

Notes

None

Examples

EXAMPLE 1

This example sets the target portal with the IP address 1.1.1.1 to use port number3200 (where the default is port number 3260).

PS C:\> Set-IscsiTargetServerSetting -IP 1.1.1.1 -Port 3200

EXAMPLE 2

This example disables the target portal with the IP address 1.1.1.1.

PS C:\> Set-IscsiTargetServerSetting -IP 1.1.1.1 -Enable $false

EXAMPLE 3

This example enables the target portal with the IP address 1.1.1.1 and changes the port number to 3200.

PS C:\> Set-IscsiTargetServerSetting -IP 1.1.1.1 -Port 3200 -Enable $true

Online Version
Set-IscsiTargetServerSetting