PowerShell DSC Resource to manage UWP App Packages
You can install Resource through PowerShell Gallery.
Install-Module -Name DSCR_AppxPackage
-
cAppxPackage For add / remove UWP Apps package to a user account. This is a wrapper resource of
Add-AppxPackage
andRemove-AppxPackage
cmdlets. -
cAppxPackageSet For remove multiple UWP Apps package to a user account at once.
-
cAppxProvisionedPackage For add / remove UWP Apps package to a computer. ( Provisioned apps will install for each new user to logon Windows. ) This is a wrapper resource of
Add-AppxProvisionedPackage
andRemove-AppxProvisionedPackage
cmdlets. -
cAppxProvisionedPackageSet For remove multiple UWP Apps package to a computer at once.
-
[string] Ensure (Write):
- Specifies whether or not the App should be installed or not.
- The default value is
Present
{Present
|Absent
}
-
[string] Name (Key):
- Specifies the Name of the App.
- The param is used to determine the App is installed or not.
- The Name is searched forward match.
-
[string] PackagePath (Write):
- Specifies the file path of the app package. An app package has an
.appx
or.appxbundle
extension.
- Specifies the file path of the app package. An app package has an
-
[string[]] DependencyPath (Write):
- Specifies an array of file paths of dependency packages that are required for the installation of the app package.
-
[Boolean] Register (Write):
- Indicates that this resource registers an existing app package installation that has been disabled, did not register, or has become corrupted.
- The default value is
$false
-
[PSCredential] PsDscRunAsCredential (Required):
- The credential for a user that will add /remove the App.
-
[string] Ensure (Write):
- You should specify
Absent
- You should specify
-
[string[]] Name (Key):
- Specifies Names of Apps.
- The param is used to determine Apps are installed or not.
-
[string] Ensure (Write):
- Specifies whether or not the App should be installed or not.
- The default value is
Present
{Present
|Absent
}
-
[string] PackageName (Key):
- Specifies the Name of the App.
- The param is used to determine the App is installed or not.
- The Name is searched forward match.
-
[string] PackagePath (Write):
- Specifies the file path of the app package. An app package has an
.appx
or.appxbundle
extension.
- Specifies the file path of the app package. An app package has an
-
[string[]] DependencyPackagePath (Write):
- Specifies an array of file paths of dependency packages that are required for the installation of the app package.
-
[string] LicensePath (Write):
- Specifies the location of the
.xml
file containing your application license.
- Specifies the location of the
-
[bool] AllUsers (Write):
- Execute the command to all users. This property only affects when the Ensure is
Absent
. The default value is$false
.
- Execute the command to all users. This property only affects when the Ensure is
-
[string] Ensure (Write):
- You should specify
Absent
- You should specify
-
[string[]] PackageName (Key):
- Specifies Names of Apps.
- The param is used to determine Apps are installed or not.
-
[bool] AllUsers (Write):
- Execute the command to all users. The default value is
$false
.
- Execute the command to all users. The default value is
Please look in the Sample directory.
- Add
AllUsers
property tocAppxProvisionedPackage
andcAppxProvisionedPackageSet
.
- Add
cAppxPackageSet
resource. - Add
cAppxProvisionedPackageSet
resource.
- Initial public release.