Skip to content

Commit 6bb3c8c

Browse files
authored
Merge pull request MicrosoftDocs#2915 from huzaifa-d/main
AppSharedPackageContainer Documentation
2 parents 6fa94fe + 35d2c24 commit 6bb3c8c

8 files changed

+558
-425
lines changed
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
external help file: Microsoft.Windows.Appx.PackageManager.Commands.dll-Help.xml
3+
Module Name: appx
4+
online version: https://docs.microsoft.com/powershell/module/appx/add-appsharedpackagecontainer?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
5+
schema: 2.0.0
6+
---
7+
8+
# Add-AppSharedPackageContainer
9+
10+
## SYNOPSIS
11+
Deploys the shared package container definiton.
12+
13+
## SYNTAX
14+
15+
```
16+
Add-AppSharedPackageContainer [-Path] <String> [-ForceApplicationShutdown] [-Merge] [-Force]
17+
[<CommonParameters>]
18+
```
19+
20+
## DESCRIPTION
21+
The Add-AppSharedPackageContainer cmdlet deploys the shared package container definiton for the particular user.
22+
23+
## EXAMPLES
24+
25+
### Example 1
26+
```powershell
27+
PS C:\> Add-AppSharedPackageContainer -Path C:\MyFolder\ContosoTestContainer.xml
28+
```
29+
30+
This command deploys the definition described in the ContosoTestContainer file.
31+
32+
## PARAMETERS
33+
34+
### -Force
35+
Replaces an existing container of the same name with the newly created
36+
container's definition for the target user(s).
37+
38+
39+
```yaml
40+
Type: SwitchParameter
41+
Parameter Sets: (All)
42+
Aliases:
43+
44+
Required: False
45+
Position: Named
46+
Default value: None
47+
Accept pipeline input: False
48+
Accept wildcard characters: False
49+
```
50+
51+
### -ForceApplicationShutdown
52+
Closes all packages currently running in the Shared Package Container.
53+
54+
```yaml
55+
Type: SwitchParameter
56+
Parameter Sets: (All)
57+
Aliases:
58+
59+
Required: False
60+
Position: Named
61+
Default value: None
62+
Accept pipeline input: False
63+
Accept wildcard characters: False
64+
```
65+
66+
### -Merge
67+
Merges a new container's definition into an existing container
68+
definition of the same name for target user(s).
69+
70+
71+
```yaml
72+
Type: SwitchParameter
73+
Parameter Sets: (All)
74+
Aliases:
75+
76+
Required: False
77+
Position: Named
78+
Default value: None
79+
Accept pipeline input: False
80+
Accept wildcard characters: False
81+
```
82+
83+
### -Path
84+
Path to the XML definition file.
85+
86+
```yaml
87+
Type: String
88+
Parameter Sets: (All)
89+
Aliases: PSPath
90+
91+
Required: True
92+
Position: 0
93+
Default value: None
94+
Accept pipeline input: False
95+
Accept wildcard characters: False
96+
```
97+
98+
### CommonParameters
99+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
100+
101+
## INPUTS
102+
103+
### None
104+
105+
## OUTPUTS
106+
107+
### System.Object
108+
## NOTES
109+
110+
## RELATED LINKS

docset/winserver2022-ps/appx/Appx.md

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Help Version: 5.0.6.4
55
Locale: en-US
66
Module Guid: aeef2bef-eba9-4a1d-a3d2-d0b52df76deb
77
Module Name: Appx
8-
ms.date: 05/19/2017
8+
ms.date: 03/18/2022
99
title: Appx
1010
---
1111

@@ -14,6 +14,10 @@ title: Appx
1414
The Windows PowerShell cmdlets for AppX are designed to streamline the administration of MSIX or AppX package management.
1515

1616
## Appx Cmdlets
17+
18+
### [Add-AppSharedPackageContainer](Add-AppSharedPackageContainer.md)
19+
Deploys the shared package container definiton.
20+
1721
### [Add-AppxPackage](Add-AppxPackage.md)
1822
Adds a signed app package to a user account.
1923

@@ -23,6 +27,9 @@ Adds an appx volume to the Package Manager.
2327
### [Dismount-AppxVolume](Dismount-AppxVolume.md)
2428
Dismounts an appx volume.
2529

30+
### [Get-AppSharedPackageContainer](Get-AppSharedPackageContainer.md)
31+
Gets information about the shared package container.
32+
2633
### [Get-AppxDefaultVolume](Get-AppxDefaultVolume.md)
2734
Gets the default appx volume.
2835

@@ -35,31 +42,44 @@ Gets an app package installation log.
3542
### [Get-AppxPackage](Get-AppxPackage.md)
3643
Gets a list of the app packages that are installed in a user profile.
3744

45+
### [Get-AppxPackageAutoUpdateSettings](Get-AppxPackageAutoUpdateSettings.md)
46+
Provides visibility to the settings configured on a Windows 10 client device for a particular Windows App.
47+
3848
### [Get-AppxPackageManifest](Get-AppxPackageManifest.md)
3949
Gets the manifest of an app package.
4050

4151
### [Get-AppxVolume](Get-AppxVolume.md)
4252
Gets appx volumes for the computer.
4353

44-
### [Get-NonRemovableAppsPolicy](Get-NonRemovableAppsPolicy.md)
45-
Returns the a list of the app packages that are installed and configured as non-removable apps.
54+
### [Invoke-CommandInDesktopPackage](Invoke-CommandInDesktopPackage.md)
55+
Runs a command in the context of a specified app package.
4656

4757
### [Mount-AppxVolume](Mount-AppxVolume.md)
4858
Mounts an appx volume.
4959

5060
### [Move-AppxPackage](Move-AppxPackage.md)
5161
Moves a package from its current location to another appx volume.
5262

63+
### [Remove-AppSharedPackageContainer](Remove-AppSharedPackageContainer.md)
64+
Removes the shared package container.
65+
5366
### [Remove-AppxPackage](Remove-AppxPackage.md)
54-
Removes an app package from a user account.
67+
Removes an app package from one or more user accounts.
68+
69+
### [Remove-AppxPackageAutoUpdateSettings](Remove-AppxPackageAutoUpdateSettings.md)
70+
{{ Fill in the Synopsis }}
5571

5672
### [Remove-AppxVolume](Remove-AppxVolume.md)
5773
Removes an appx volume.
5874

59-
### [Set-AppxDefaultVolume](Set-AppxDefaultVolume.md)
60-
Specifies a default appx volume.
75+
### [Reset-AppSharedPackageContainer](Reset-AppSharedPackageContainer.md)
76+
Destroys all the application data of the container.
6177

62-
### [Set-NonRemovableAppsPolicy](Set-NonRemovableAppsPolicy.md)
63-
Sets an app packages as non-removable (can not be uninstalled).
78+
### [Reset-AppxPackage](Reset-AppxPackage.md)
79+
Use to reset your installed Windows Apps. Restores the Windows app to its initial configuration.
6480

81+
### [Set-AppxDefaultVolume](Set-AppxDefaultVolume.md)
82+
Specifies a default appx volume.
6583

84+
### [Set-AppxPackageAutoUpdateSettings](Set-AppxPackageAutoUpdateSettings.md)
85+
Provides access to configure a specific Windows App's Auto Update and Repair settings. Including pausing update checks.
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
external help file: Microsoft.Windows.Appx.PackageManager.Commands.dll-Help.xml
3+
Module Name: appx
4+
online version: https://docs.microsoft.com/powershell/module/appx/get-appsharedpackagecontainer?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
5+
schema: 2.0.0
6+
---
7+
8+
# Get-AppSharedPackageContainer
9+
10+
## SYNOPSIS
11+
Gets information about the shared package container.
12+
13+
## SYNTAX
14+
15+
```
16+
Get-AppSharedPackageContainer [[-Name] <String>] [[-Id] <String>] [-AllUsers] [<CommonParameters>]
17+
```
18+
19+
## DESCRIPTION
20+
The cmdlet shows information about any shared package container.
21+
In particular, it will show what packages are inside the shared package container.
22+
23+
## EXAMPLES
24+
25+
### Example 1
26+
```powershell
27+
PS C:\> Get-AppSharedPackageContainer -Name Contoso*
28+
29+
30+
Name : ContosoTestContainer
31+
Id : ContosoTestContainer_1
32+
PackageFamilyNames : {Contoso.SpellCheckPlugin.1.0.0.0_7pneu3d8sswe, Notepad++.2.0.0.1_ohjis898f1}
33+
34+
Name : ContosoTestContainer
35+
Id : ContosoTestContainer_2
36+
PackageFamilyNames : {Contoso.SpellCheckPlugin2.1.0.0.0_7pneu3d8sswe, Notepad++.2.0.0.1_ohjis898f1}
37+
```
38+
39+
This command shows the packages in any shared package container that has a prefix of Contoso.
40+
41+
## PARAMETERS
42+
43+
### -AllUsers
44+
Get matching packages that are either deployed to any user or are provisioned to the machine.
45+
46+
```yaml
47+
Type: SwitchParameter
48+
Parameter Sets: (All)
49+
Aliases:
50+
51+
Required: False
52+
Position: Named
53+
Default value: None
54+
Accept pipeline input: False
55+
Accept wildcard characters: False
56+
```
57+
58+
### -Id
59+
Id of the container. Can be acquired by running `Get-AppSharedPackageContainer`.
60+
61+
```yaml
62+
Type: String
63+
Parameter Sets: (All)
64+
Aliases:
65+
66+
Required: False
67+
Position: 1
68+
Default value: None
69+
Accept pipeline input: True (ByPropertyName)
70+
Accept wildcard characters: False
71+
```
72+
73+
### -Name
74+
The name of the container.
75+
76+
```yaml
77+
Type: String
78+
Parameter Sets: (All)
79+
Aliases:
80+
81+
Required: False
82+
Position: 0
83+
Default value: None
84+
Accept pipeline input: True (ByPropertyName)
85+
Accept wildcard characters: False
86+
```
87+
88+
### CommonParameters
89+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
90+
91+
## INPUTS
92+
93+
### System.String
94+
95+
## OUTPUTS
96+
97+
### System.Object
98+
## NOTES
99+
100+
## RELATED LINKS

0 commit comments

Comments
 (0)