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>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StoragePool
You can pipe a StoragePool object to the StoragePool parameter.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
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