Remove-AppxVolume
Remove-AppxVolume
Removes an appx volume.
Syntax
Parameter Set: SisPathSet
Remove-AppxVolume [-Volume] <AppxVolume[]> [ <CommonParameters>]
Detaillierte Beschreibung
The Remove-AppxVolume cmdlet removes an AppxVolume. You can only remove a volume after there are no apps staged to it for any user. After you remove a volume, apps can no longer be added to it.
Parameter
-Volume<AppxVolume[]>
Specifies the AppxVolume object to remove.
Aliase |
none |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue,ByPropertyName) |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Eingaben
Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
Beispiele
Example 1: Remove a volume by using an ID
This command removes a volume that has the specified media ID.
PS C:\> Remove-AppxVolume -Volume {984786d3-0cae-49de-a68f-8bedb0ca260b}
Example 2: Remove a volume by using a path
This command removes a volume at the path E:\.
PS C:\> Remove-AppxVolume -Volume E:\