Get-AppxVolume
Get-AppxVolume
Gets appx volumes for the computer.
構文
Parameter Set: DefaultParameterSet
Get-AppxVolume [[-Path] <String> ] [ <CommonParameters>]
Parameter Set: OfflineParameterSet
Get-AppxVolume -Offline [-Path <String> ] [ <CommonParameters>]
Parameter Set: OnlineParameterSet
Get-AppxVolume -Online [-Path <String> ] [ <CommonParameters>]
詳細説明
The Get-AppxVolume cmdlet gets a list of AppxVolume objects known to the computer. Volumes can be added by the user or a device, for instance, by using Storage Sense.
パラメーター
-Offline
Indicates that this cmdlet returns only volumes that are currently dismounted.
Aliases |
none |
必須/オプション |
true |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-Online
Indicates that this cmdlet returns only volumes that are currently mounted.
Aliases |
none |
必須/オプション |
true |
位置 |
named |
既定値 |
none |
パイプライン入力の受け入れ |
false |
ワイルドカード文字の受け入れ |
false |
-Path<String>
Specifies the path of the mount point of a volume. This cmdlet gets a volume at the location that this parameter specifies.
Aliases |
none |
必須/オプション |
false |
位置 |
1 |
既定値 |
none |
パイプライン入力の受け入れ |
true (ByValue, ByPropertyName) |
ワイルドカード文字の受け入れ |
false |
<CommonParameters>
このコマンドレットは共通のパラメーターをサポートしています(-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、および -OutVariable)。詳細については、TechNet の「 「about_CommonParameters」 (https://go.microsoft.com/fwlink/p/?LinkID=113216) を参照してください。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットが出力するオブジェクトの型です。
- Microsoft.Appx.PackageManager.Commands.AppxVolume
使用例
Example 1: Get all the volumes
The command gets all the AppxVolume objects on the computer.
PS C:\> Get-AppxVolume
Example 2: Get the volume at a path
This command gets the AppxVolume at the path F:\.
PS C:\> Get-AppxVolume -Path F:\
Example 3: Get mounted volumes
This command gets only AppxVolume objects that are currently mounted on the computer.
PS C:\> Get-AppxVolume -Online
Example 4: Get volumes that are note mounted
This command gets the AppxVolume objects that not currently mounted on the computer.
PS C:\> Get-AppxVolume -Offline