Add-AppxVolume

Add-AppxVolume is accessible with the help of Appx module. To configure Appx, go through this link.

Synopsis

Adds an appx volume to the Package Manager.

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.

Parameters

-Confirm

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

-Path

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

Type:String[]
Aliases:PSPath
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

-WhatIf

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

Syntax

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

——————–Example 1——————–
Add a volume
PS C:> Add-AppxVolume -Path “D:\WindowsApps”
This command adds the volume D:\WindowsApps to Package Manager.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Add-AppxVolume

Get-Command Add-AppxVolume powershell script command cmdlet appx

You can also read about

  • Dismount-AppxVolume
  • Get-AppxVolume
  • Mount-AppxVolume
  • Remove-AppxVolume

To know more PowerShell cmdlets(Commands) on Appx click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *