Set-IscsiTargetServerSetting
Set-IscsiTargetServerSetting
Sets the global settings or common configurations for an iSCSI target virtual disk.
구문
Parameter Set: IpScoped
Set-IscsiTargetServerSetting [-IP] <String> [-ComputerName <String> ] [-Credential <PSCredential> ] [-Enable <Boolean> ] [-PassThru] [-Port <Int32> ] [ <CommonParameters>]
Parameter Set: ServerGlobal
Set-IscsiTargetServerSetting -DisableRemoteManagement <Boolean> [-ComputerName <String> ] [-Credential <PSCredential> ] [-PassThru] [ <CommonParameters>]
자세한 설명
The Set-IscsiTargetServerSetting cmdlet sets the global settings or common configurations for an iSCSI target.
매개 변수
-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.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-Credential<PSCredential>
Specifies the credentials when connecting to a remote computer.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
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.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Enable<Boolean>
Specifies the portal state as set by the user.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-IP<String>
Specifies an IP address.
별칭 |
없음 |
필수 여부 |
true |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-PassThru
작업하고 있는 항목을 나타내는 개체를 반환합니다. 기본적으로 이 cmdlet은 출력을 생성하지 않습니다.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Port<Int32>
Specifies the port number to which the iSCSI target should listen.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
- None.
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
- Microsoft.Iscsi.Target.Commands.IscsiTargetServerSetting
예제
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