Add-AppSharedPackageContainer
Deploys the shared package container definition.
Syntax
Default (Default)
Add-AppSharedPackageContainer
[-Path] <String>
[-ForceApplicationShutdown]
[-Merge]
[-Force]
[<CommonParameters>]
Description
The Add-AppSharedPackageContainer cmdlet deploys the shared package container definition for the
particular user.
Examples
Example 1
Add-AppSharedPackageContainer -Path C:\MyFolder\ContosoTestContainer.xml
This command deploys the definition described in the ContosoTestContainer file.
Parameters
-Force
Replaces an existing container of the same name with the newly created container's definition for the target users.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ForceApplicationShutdown
Closes all packages currently running in the Shared Package Container.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Merge
Merges a new container's definition into an existing container definition of the same name for target users.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Path
Path to the XML definition file.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | PSPath |
Parameter sets
(All)
| Position: | 0 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.