Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Sets the global settings or common configurations for an iSCSI target virtual disk.
Parameter Set: Default
Set-IscsiTargetServerSetting [-IP] <String> [-ComputerName <String> ] [-Enable <Boolean> ] [-PassThru] [-Port <Int32> ] [ <CommonParameters>]
The Set-IscsiTargetServerSetting cmdlet sets the global settings or common configurations for an iSCSI target.
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 |
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 |
Specifies one or more IP addresses.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Sends items from the interactive window down the pipeline as input to other cmdlets. By default, this cmdlet does not generate any output.
To send items from the interactive window down the pipeline, click to select the items and then click OK. Shift-click and Ctrl-click are supported.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
- Microsoft.Iscsi.Target.Commands.IscsiCommonSettings
The output type is the type of the objects that the cmdlet emits.
- Microsoft.Iscsi.Target.Commands.IscsiTargetServerSetting
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
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
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