Set-IscsiVirtualDisk
Set-IscsiVirtualDisk
Modifies the settings for the specified iSCSI virtual disk.
구문
Parameter Set: DevicePath
Set-IscsiVirtualDisk [-Path] <String> [-ComputerName <String> ] [-Credential <PSCredential> ] [-Description <String> ] [-Enable <Boolean> ] [-PassThru] [ <CommonParameters>]
Parameter Set: InputObject
Set-IscsiVirtualDisk -InputObject <IscsiVirtualDisk> [-ComputerName <String> ] [-Credential <PSCredential> ] [-Description <String> ] [-Enable <Boolean> ] [-PassThru] [ <CommonParameters>]
자세한 설명
The Set-IscsiVirtualDisk cmdlet modifies the settings for a virtual disk and returns the corresponding iSCSI Virtual Disk object, if the PassThru parameter is specified.
매개 변수
-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.
If you do not specify a value for this parameter, the cmdlet uses the local computer.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-Credential<PSCredential>
Specifies the credentials when connecting to a remote computer.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-Description<String>
Specifies the description for the iSCSI virtual disk.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-Enable<Boolean>
Specifies that the specified iSCSI virtual disk is either enabled or disabled.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
-InputObject<IscsiVirtualDisk>
Accepts an iSCSI virtual disk object from the input pipeline.
별칭 |
없음 |
필수 여부 |
true |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-PassThru
작업하고 있는 항목을 나타내는 개체를 반환합니다. 기본적으로 이 cmdlet은 출력을 생성하지 않습니다.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Path<String>
Specifies the path of the virtual hard disk (VHD) file that is associated with the iSCSI virtual disk.
Filter the iSCSI Virtual Disk object using this parameter.
별칭 |
DevicePath |
필수 여부 |
true |
위치 |
1 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
True (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
- Microsoft.Iscsi.Target.Commands.IscsiVirtualDisk
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
- Microsoft.Iscsi.Target.Commands.IscsiVirtualDisk
예제
EXAMPLE 1
This example changes the VHD description to disk for data.
PS C:\> Set-IscsiVirtualDisk –Path "E:\Temp\vhd1.vhdx" -Description "disk for data"
EXAMPLE 2
This example disables the VHD with the path E:\Temp\vhd1.vhdx.
PS C:\> Set-IscsiVirtualDisk –Path "E:\Temp\vhd1.vhdx" -Enable $false