On Windows 8 platforms, you can install the latest LOB (line-of-business) applications, which is the suffix. The APPX program. APPX programs typically require developers to submit them to the Windows App Store, which is approved for unified publishing and other users download and install them through the App Store. If we develop a appx program, I just want to give myself or a small number of people to use, it does not have to go through the complex process of the application store, you can install on their own devices.
This article describes how to use PowerShell to install the APPX program. Of course, note here, since it is the APPX program, it must be a Windows 8 system, since it is Windows 8, it must be PowerShell 3.0 version.
Look at the several Cmdlet PowerShell 3.0 for the APPX program.
1, Add-appxpackage
Purpose: Install a appx package.
Syntax: add-appxpackage [–dependencypath < dependent package path]
Example: Add-appxpackage D:\AppxSource\MyAppx.appx
2, Add-appxprovisionedpackage
Purpose: Set the application to the computer.
Example: Add-appxprovisionedpackage-online-folderpath D:\Appx
Description: Set the application to the computer, and all users will install this APPX package by default.
3, Get-appxpackage
Purpose: Get application manifest
Example:
Get-appxpackage-allusers #获取所有用户安装的APPX包
Get-appxpackage-name Package1-user DOMAIN\username #获取指定域下面的指定用户的指定包
4, Get-appxpackagemanifest
Purpose: Get the details of the application package
Example:
Get-appxpackagemanifest-package Package1
5, Remove-appxpackage
Purpose: Uninstall a appx package.
Syntax: Remove-appxpackage < package name >
Example: Remove-appxpackage myappx
6, Remove-appxprovisionedpackage
Purpose: Remove the settings for the package from the computer
Example: Remove-appxprovisionedpackage-online-packagename myappxpkg
Description: After removal, the new user no longer installs the package, but the user who has installed the package will not be deleted.
Use examples:
Copy Code code as follows:
#安装一个appx应用
Add-appxpackage C:\app1.appx–dependencypath C:\winjs.appx
#删除一个appx应用
Remove-appxpackage Package1
#删除包设置
Remove-appxprovisionedpackage-online-packagename myappxpkg
For more detailed methods of operation, small series refer to the following documents: Http://technet.microsoft.com/library/hh852635.aspx