PowerShell Logo Small

Set-AppXProvisionedDataFile



This is the built-in help made by Microsoft for the command 'Set-AppXProvisionedDataFile', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Adds custom data into the specified app (.appx) package that has been provisioned in a Windows image.

SYNTAX


Set-AppXProvisionedDataFile [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>] [-SystemDrive <String>] [-WindowsDirectory <String>] -CustomDataPath
<String> -Online -PackageName <String> [<CommonParameters>]
Set-AppXProvisionedDataFile [-LogLevel <LogLevel>] [-LogPath <String>] [-ScratchDirectory <String>] [-SystemDrive <String>] [-WindowsDirectory <String>] -CustomDataPath
<String> -PackageName <String> -Path <String> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-AppXProvisionedDataFile cmdlet adds custom data into the specified app (.appx) package that has been provisioned in a Windows image. The specified app (.appx)
package must already be added to the image prior to adding custom data.


You cannot install an app package (.appx) on an operating system that does not support apps for at least Windows® 8. Apps are not supported on Server Core installations of
Windows Server, Windows PE, or on any versions of Windows older than Windows 8 and Windows Server 2012.


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


Use the Online parameter to specify the running operating system on your local computer, or use the Path parameter to specify the location of a mounted Windows image.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=293633
Add-AppxProvisionedPackage
Get-AppxProvisionedPackage
Remove-AppxProvisionedPackage

REMARKS

<

Examples


Example 1

PS C:\>Set-AppXProvisionedDataFile -Online -PackageName MyAppxPkg -CustomDataPath c:\Appx\myCustomData.dat



This command adds the custom data file, c:\Appx\myCustomData.dat, into the app package, MyAppxPkg, that has been added to the running Windows operating system.






Example 2

PS C:\>Set-AppxProvisionedDataFile -Path c:\offline -PackageName MyAppxPkg -CustomDataPath c:\Appx\myCustomData.dat



This command adds the custom data file, c:\Appx\myCustomData.dat, into the app package, MyAppxPkg, that has been added to the Windows image mounted to c:\offline.