Get-WssDriveInUse
Get-WssDriveInUse
Checks whether a drive is in use.
Sintaxis
Parameter Set: Default
Get-WssDriveInUse [-Drive] <Drive> [ <CommonParameters>]
Descripción detallada
The Get-WssDriveInUse cmdlet checks whether a drive is in use. To obtain a Drive object to check, use the Get-WssDrive cmdlet.
Parámetros
-Drive<Drive>
Specifies a Drive object. To obtain a Drive object, use the Get-WssDrive cmdlet.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Microsoft.WindowsServerSolutions.Storage.DriveInUseRequest
This cmdlet generates a drive in use indicator.
Ejemplos
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