Set-AppxDefaultVolume
Set-AppxDefaultVolume
Specifies a default appx volume.
Syntax
Parameter Set: Default
Set-AppxDefaultVolume [-Volume] <AppxVolume> [ <CommonParameters>]
Detaillierte Beschreibung
The Set-AppxDefaultVolume cmdlet specifies a default AppxVolume. The default AppxVolume is the default target for all deployment operations on the computer. Deployment operations can specify a different non-default target volume.
Parameter
-Volume<AppxVolume>
Specifies the path a volume. This cmdlet sets the volume that this parameter specifies to be the default deployment target for the computer.
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: Set a default volume by using a path
This command sets the default volume to be the volume F:\.
PS C:\> Set-AppxDefaultVolume -Volume F:\
Example 2: Set a default volume by using an ID
This command sets the default volume to be the one that has the specified media ID.
PS C:\> Set-AppxDefaultVolume -Volume {ef23c8d6-b13c-4c4c-ae3b-7d5a162de9b9}