Test-SpacesConfiguration

Test-SpacesConfiguration

Tests for unhealthy resources associated with a Storage Spaces storage pool.

구문

Parameter Set: ByName
Test-SpacesConfiguration [-StoragePoolFriendlyName] <String> [[-Passthru]] [ <CommonParameters>]

Parameter Set: ByPool
Test-SpacesConfiguration [-StoragePool] <CimInstance> [[-Passthru]] [ <CommonParameters>]

자세한 설명

The Test-SpacesConfiguration cmdlet tests for unhealthy Storage Spaces resources. It performs the following operations, and returns a True code if Storage Spaces is healthy:

Enumerate storage pools that unhealthy

Enumerate storage spaces that are unhealthy

Enumerate physical disks that are unhealthy

매개 변수

-Passthru

Specifies that if the storage pool is unhealthy, the cmdlet should output an object that represents the unhealthy pool.

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-StoragePool<CimInstance>

Specifies the StoragePool object to test.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-StoragePoolFriendlyName<String>

Specifies the friendly name of the storage pool to test.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

true

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StoragePool

    You can pipe a StoragePool object to the StoragePool parameter.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • System.Boolean

    This cmdlet outputs a Boolean object that represents whether Storage Spaces is healthy (True) or unhealthy (False).

  • System.Object

    If you specify the Passthru parameter and the storage pool is unhealthy, this cmdlet outputs an object that represents the unhealthy storage pool.

예제

Example 1 – Test a storage pool

This example tests a storage pool.

PS C:\> Test-SpacesConfiguration -StoragePoolFriendlyName Internal

Example 2 – Test a storage pool with verbose output

This example tests a storage pool and specifies for verbose output.

PS C:\> Test-SpacesConfiguration -StoragePoolFriendlyName Internal -Verbose