Add-AppxVolume
Adds an appx volume to the Package Manager.
Syntax
Default (Default)
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 this 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
Add-AppxVolume -Path "E:\WindowsApps"
This command adds the volume E:\WindowsApps
to Package Manager.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Path
Specifies the path of the mount point of the volume that this cmdlet adds.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | PSPath |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
Microsoft.Appx.PackageManager.Commands.AppxVolume
This cmdlet returns the AppxVolume object that it adds.