Set-Appx
Default
Volume
Syntax
Set-AppxDefaultVolume
[-Volume] <AppxVolume>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
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.
Examples
Example 1: Set a default volume by using a path
PS C:\> Set-AppxDefaultVolume -Volume F:\
This command sets the default volume to be the volume F:.
Example 2: Set a default volume by using an ID
PS C:\> Set-AppxDefaultVolume -Volume {ef23c8d6-b13c-4c4c-ae3b-7d5a162de9b9}
This command sets the default volume to be the one that has the specified media ID.
Required Parameters
Specifies the path a volume. This cmdlet sets the volume that this parameter specifies to be the default deployment target for the computer.
Type: | AppxVolume |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName, ByValue) |
Accept wildcard characters: | False |
Optional Parameters
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |