Dismount-AppxVolume
Dismount-AppxVolume is accessible with the help of Appx module. To configure Appx, go through this link.
Synopsis
Dismounts an appx volume.
Description
The Dismount-AppxVolume cmdlet dismounts an AppxVolume . After you dismount a volume, all apps that are deployed to that target become inaccessible.
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 AppxVolume object to dismount.
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
Dismount-AppxVolume [-Volume] <AppxVolume[]> [-WhatIf] [-Confirm] [<CommonParameters>]
——————–Example 1——————–
Dismount a volume by using a path
PS C:> Dismount-AppxVolume -Volume D:\
This command dismounts a volume at the path D:.
——————–Example 2——————–
Dismount a volume by using an ID
PS C:> Dismount-AppxVolume -Volume {Volume ID}
This command dismounts a volume that has the specified media ID.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Dismount-AppxVolume
You can also read about
- Add-AppxVolume
- Get-AppxVolume
- Mount-AppxVolume
- Remove-AppxVolume