Add-AppxVolume
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 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.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
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 |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet isn't run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Microsoft.Appx.PackageManager.Commands.AppxVolume
This cmdlet returns the AppxVolume object that it adds.
Related Links
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기