Add-AppxProvisionedPackage

Add-AppxProvisionedPackage

Adds an app package (.appx) that will install for each new user to a Windows image.

구문

Parameter Set: Offline
Add-AppxProvisionedPackage -Path <String> [-CustomDataPath <String> ] [-DependencyPackagePath <String[]> ] [-FolderPath <String> ] [-LicensePath <String> ] [-LogLevel <LogLevel> ] [-LogPath <String> ] [-PackagePath <String> ] [-ScratchDirectory <String> ] [-SkipLicense] [-SystemDrive <String> ] [-WindowsDirectory <String> ] [ <CommonParameters>]

Parameter Set: Online
Add-AppxProvisionedPackage -Online [-CustomDataPath <String> ] [-DependencyPackagePath <String[]> ] [-FolderPath <String> ] [-LicensePath <String> ] [-LogLevel <LogLevel> ] [-LogPath <String> ] [-PackagePath <String> ] [-ScratchDirectory <String> ] [-SkipLicense] [-SystemDrive <String> ] [-WindowsDirectory <String> ] [ <CommonParameters>]

자세한 설명

The Add-AppxProvisionedPackage cmdlet adds an app package (.appx) that will install for each new user to a Windows image. If the package has dependencies that are architecture-specific, you must install the applicable architectures for the dependency on the target image. For example, you must install the x86 dependency on the x86 image.

You cannot install an app package (.appx) on an operating system that does not support Windows® 8 apps. Apps are not supported on Server Core installations of Windows Server® 2012, Windows® 사전 설치 환경(Windows PE) 4.0, or on any versions of Windows older than Windows 8 and Windows Server 2012.

To install and run apps on Windows Server 2012, you must install the Desktop Experience.

Online 매개 변수를 사용하여 로컬 컴퓨터에서 실행 중인 운영 체제를 지정하거나 Path 매개 변수는 탑재된 Windows 이미지의 위치를 지정합니다.

Use the PackagePath, DependencyPackagePath, and LicensePath parameters to specify the location of all the files that are needed to add the provisioned app package (.appx). Use these parameters to provision line-of-business apps.

Use the FolderPath parameter to specify the location of a folder of unpacked app package (.appx) files that includes any dependency packages and a license file.

To add an app package (.appx) for a particular user, or to test a package while developing your app, use the Add-AppxPackage cmdlet instead.

For more information, including requirements for app package provisioning, see How to Add and Remove Apps and How to develop an OEM app that uses a custom file (Windows).

매개 변수

-CustomDataPath<String>

Specifies the location of a custom data file. The custom data file will be renamed custom.data and saved in the app data store.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-DependencyPackagePath<String[]>

Specifies the location of a dependency package.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-FolderPath<String>

Specifies a folder of unpacked app package files containing a main package and any dependency packages. This folder must also contain your application license.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-LicensePath<String>

Specifies the location of the .xml file containing your application license.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-LogLevel<LogLevel>

로그에 표시된 최대 출력 수준을 지정합니다. 기본 로그 수준은 3입니다. 허용된 값은 다름과 같습니다. 1 = 오류만2 = 오류 및 경고3 = 오류, 경고 및 정보4 = 이전에 나열된 모든 정보와 함께 디버그 출력

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-LogPath<String>

전체 경로와 파일 이름을 지정하여 기록합니다. 설정되지 않은 경우 기본값은 %WINDIR%\Logs\Dism\dism.log입니다.Windows PE의 경우 기본 디렉터리는 32MB까지 낮출 수 있는 RAMDISK 스크래치 공간입니다. 로그 파일은 자동으로 보관됩니다. 보관된 로그 파일은 파일 이름 뒤에 .bak가 추가되어 저장되고 새 로그 파일이 생성됩니다. 로그 파일이 보관될 때마다 .bak 파일을 덮어 씁니다. 도메인에 가입되지 않은 네트워크 공유를 사용할 때, DISM 로그에 대한 로그 경로를 설정하기 전에 도메인 자격 증명과 함께 net use 명령을 사용하여 액세스 권한을 설정합니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-Online

작업이 현재 로컬 컴퓨터에서 실행 중인 운영 체제에서 수행되도록 지정합니다.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-PackagePath<String>

Specifies the location of the app package (.appx) to add to the Windows image. This package will be added for every new user account. To add an app package (.appx) for a particular user or to test a package while developing your app, use the Add-AppxPackage cmdlet instead.

The PackagePath option is only supported for offline servicing when the technician computer is running a version of Windows that supports Windows 8 apps.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-Path<String>

서비스할 오프라인 Windows 이미지의 루트 디렉터리에 대한 전체 경로를 지정합니다. 디렉터리 이름이 지정된 Windows가 루트 디렉터리의 하위 디렉터리가 아닌 경우, -WindowsDirectory를 지정해야 합니다.

별칭

없음

필수 여부

true

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-ScratchDirectory<String>

서비스 시 필요한 파일을 추출할 때 사용되는 임시 디렉터리를 지정합니다. 디렉터리는 로컬에 존재해야 합니다. 지정하지 않으면 DISM을 실행할 때마다 임의로 생성된 16진수 값의 하위 디렉터리 이름이 있는 \Windows\%Temp% 디렉터리가 사용됩니다. 스크래치 디렉터리의 항목은 작업 후 삭제됩니다. 네트워크 공유 위치는 설치 시 패키지 파일(.cab 또는 .msu 파일)을 풀 스크래치 디렉터리로 사용해서는 안 됩니다. 서비스 중 임시로 사용하기 위해 파일을 추출하는 디렉터리는 로컬 디렉터리이어야 합니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-SkipLicense

Adds an app package without a license file.

Only use SkipLicense with apps that do not require a license on Enterprise or Server versions of the operating system. Using SkipLicense in other scenarios can compromise an image.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-SystemDrive<String>

BootMgr 파일의 위치에 대한 경로를 지정합니다. 이는 BootMgr 파일이 명령을 실행하는 파티션 이외의 파티션에 위치한 경우에만 필요합니다. -SystemDrive를 사용하여 Windows PE 환경에서 설치된 Windows 이미지를 서비스합니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-WindowsDirectory<String>

이미지 경로와 관련된 Windows 디렉터리 경로를 지정합니다. 이는 Windows 디렉터리 전체 경로가 될 수 없습니다. 관련 경로가 되어야 합니다. 지정되지 않으면 기본값은 오프라인 이미지 디렉터리의 루트에 있는 Windows 디렉터리입니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • System.String[]
  • Microsoft.Dism.Commands.ImageObject
  • Microsoft.Dism.Commands.AppxPackageObject

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.Dism.Commands.ImageObject

예제

Example 1

This command adds the app package, dependency packages, and license file from the c:\Appx folder to the running Windows operating system. The package will be installed for the current user and any new user account created on the computer.

PS C:\> Add-AppxProvisionedPackage -Online –FolderPath c:\Appx

Example 2

This command adds the app package, myPackage.appx, to the Windows image mounted to c:\offline.

PS C:\> Add-AppxProvisionedPackage –Path c:\offline –PackagePath c:\Appx\myPackage.appx –DependencyPath c:\Appx\dependency1\dependencyPackage.appx –LicensePath c:\Appx\myLicense.xml

관련 항목

Get-AppxProvisionedPackage

Remove-AppxProvisionedPackage

Set-AppXProvisionedDataFile

Add-AppxPackage