Get-WssDriveInUse
Get-WssDriveInUse
Checks whether a drive is in use.
構文
Parameter Set: Default
Get-WssDriveInUse [-Drive] <Drive> [ <CommonParameters>]
詳細説明
The Get-WssDriveInUse cmdlet checks whether a drive is in use. To obtain a Drive object to check, use the Get-WssDrive cmdlet.
パラメーター
-Drive<Drive>
Specifies a Drive object. To obtain a Drive object, use the Get-WssDrive cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
Microsoft.WindowsServerSolutions.Storage.DriveInUseRequest
This cmdlet generates a drive in use indicator.
例
Example 1: Check whether a drive is in use
This example checks whether a specified drive is in use. The first command uses the Get-WssDrive cmdlet to get a Drive object that has the specified GUID, and stores it in the $Drive variable.
The second command checks whether the Drive object stored in the $Drive variable is in use.
PS C:\> $Drive = Get-WssDrive -ID b6b093a2-1860-4172-a4a5-07ce2aebfa13
PS C:\> Get-WssDriveInUse -Drive $Drive