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

Add-AppxVolume

Brian Lich|Last Updated: 5/19/2017

SYNOPSIS

Adds an appx volume to the Package Manager.

SYNTAX

Add-AppxVolume [-Path] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Add-AppxVolume cmdlet adds an AppxVolume for the Package Manager to advertise. After you add a volume, appx deployment operations can use that volume as a target. This cmdlet returns the volume that it adds. Note, the Path parameter must be specified as a drive letter followed by "WindowsApps" as the directory. Not using the aforementioned format could lead to inconsistent behavior in the application model subsystems or the volume itself; for more information see the examples section.

EXAMPLES

Example 1: Add a volume

PS C:\> Add-AppxVolume -Path "E:\WindowsApps"

This command adds the volume E:\WindowsApps to Package Manager.

PARAMETERS

-Path

Specifies the path of the mount point of the volume that this cmdlet adds.

Type: String[]
Parameter Sets: (All)
Aliases: PSPath

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

Microsoft.Appx.PackageManager.Commands.AppxVolume

This cmdlet returns the AppxVolume object that it adds.

NOTES

Dismount-AppxVolume

Get-AppxVolume

Mount-AppxVolume

Remove-AppxVolume

© 2017 Microsoft