Introduction to PowerShell Installation appx application commands in WIN8 systems _powershell

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.