Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Set-AppxDefaultVolume

Last Updated: 5/19/2017

SYNOPSIS

Specifies a default appx 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.

PARAMETERS

-Volume

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
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

Get-AppxDefaultVolume

© 2017 Microsoft