Get-IscsiVirtualDisk

Get-IscsiVirtualDisk

Obtains the iSCSI virtual disks and their associated properties.

구문

Parameter Set: Device
Get-IscsiVirtualDisk [[-Path] <String> ] [-ClusterGroupName <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [ <CommonParameters>]

Parameter Set: Initiator
Get-IscsiVirtualDisk [-ClusterGroupName <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [-InitiatorId <InitiatorId> ] [ <CommonParameters>]

Parameter Set: Target
Get-IscsiVirtualDisk [-ClusterGroupName <String> ] [-ComputerName <String> ] [-Credential <PSCredential> ] [-TargetName <String> ] [ <CommonParameters>]

자세한 설명

The Get-IscsiVirtualDisk cmdlet obtains the iSCSI virtual disks and their associated properties.

매개 변수

-ClusterGroupName<String>

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

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

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.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Credential<PSCredential>

Specifies the credentials when connecting to a remote computer.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-InitiatorId<InitiatorId>

Specifies the iSCSI initiator identifiers (IDs) to which the iSCSI target is assigned.
Use this parameter to filter out the iSCSI Virtual Disk object that can be accessed by the given iSCSI initiator.
The format for this parameter is IdType:Value.
이 매개 변수에 허용되는 값은 다음과 같습니다. DNSName, IPAddress, IPv6Address, IQN, or MACAddress.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

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

필수 여부

false

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-TargetName<String>

Specifies the name of the iSCSI target.
Use this parameter to filter out the iSCSI Virtual Disk object that are assigned to the specified iSCSI target.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

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.IscsiVirtualDisk

예제

EXAMPLE 1

This example gets all of the virtual disks on the local server.

PS C:\> Get-IscsiVirtualDisk

EXAMPLE 2

This example gets the virtual disk object with the path E:\temp\test.vhdx on the local server.

PS C:\> Get-IscsiVirtualDisk –Path "E:\temp\test.vhdx"

EXAMPLE 3

This example gets the Virtual Disk object with the path E:\temp\test.vhdx in the resource group named target1Group on cluster server named fscluster.contoso.com.

PS C:\> Get-IscsiVirtualDisk –Path "E:\temp\test.vhdx" -ComputerName "fscluster.contoso.com" -ClusterGroupName "target1Group"

EXAMPLE 4

This example gets all of the virtual disks that are associated with the target named TargetOne on the local server.

PS C:\> Get-IscsiVirtualDisk -TargetName "TargetOne"

EXAMPLE 5

This example gets all of the virtual disks on the local server that are used by the initiator with IP address 10.10.1.1.

PS C:\> Get-IscsiVirtualDisk -InitiatorId "IpAddress:10.10.1.1"

관련 항목

Checkpoint-IscsiVirtualDisk

Convert-IscsiVirtualDisk

Import-IscsiVirtualDisk

New-IscsiVirtualDisk

Remove-IscsiVirtualDisk

Restore-IscsiVirtualDisk

Set-IscsiVirtualDisk