Set-AppxDefaultVolume

Set-AppxDefaultVolume

Specifies a default appx volume.

Syntaxe

Parameter Set: Default
Set-AppxDefaultVolume [-Volume] <AppxVolume> [ <CommonParameters>]

Description détaillée

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.

Paramètres

-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.

Alias

none

Requis ?

true

Position ?

1

Valeur par défaut

none

Accepter l'entrée de pipeline ?

true(ByValue,ByPropertyName)

Accepter les caractères génériques ?

false

<CommonParameters>

Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d'informations, consultez  . about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entrées

Le type d'entrée correspond au type des objets que vous pouvez adresser à l'applet de commande.

Sorties

Le type de sortie correspond au type des objets que l'applet de commande émet.

Exemples

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}

Rubriques connexes

Get-AppxDefaultVolume