Set-AppxDefaultVolume

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

Synopsis

Specifies a default appx volume.

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.

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

-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
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

Set-AppxDefaultVolume [-Volume] <AppxVolume> [-WhatIf] [-Confirm] [<CommonParameters>]

——————Example 1——————
Set a default volume by using a path
PS C:> Set-AppxDefaultVolume -Volume D:\
This command sets the default volume to be the volume D:.

——————Example 2——————
Set a default volume by using an ID
PS C:> Set-AppxDefaultVolume -Volume {VolumeID}
This command sets the default volume to be the one that has the specified media ID.

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

Get-Command Set-AppxDefaultVolume

Get-Command Set-AppxDefaultVolume powershell script command cmdlet appx

You can also read about

  • Get-AppxDefaultVolume

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 *