mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 21:37:22 +00:00
1.5 KiB
1.5 KiB
title, description, author, ms.prod, ms.date, ms.reviewer, manager, ms.author, ms.topic, ms.technology
title | description | author | ms.prod | ms.date | ms.reviewer | manager | ms.author | ms.topic | ms.technology |
---|---|---|---|---|---|---|---|---|---|
How to apply the user configuration file by using Windows PowerShell (Windows 10/11) | How to apply the user configuration file by using Windows PowerShell (Windows 10/11). | aczechowski | windows-client | 06/15/2018 | dougeby | aaroncz | article | itpro-apps |
How to apply the user configuration file by using Windows PowerShell
[!INCLUDE Applies to Windows client versions]
When you publish a package to a specific user, you'll also need to specify a dynamic user configuration file to tell that package how to run.
Apply a user configuration file
Here's how to specify a user-specific configuration file:
Note
The following example cmdlets use this example file path for its package:
- C:\Packages\Contoso\MyApp.appv.
If your package file uses a different file path than the example, feel free to replace it as needed.
-
Enter the following cmdlet in Windows PowerShell to add the package to the computer:
Add-AppVClientPackage C:\Packages\Contoso\MyApp.appv
-
Enter the following cmdlet to publish the package to the user and specify the updated the dynamic user configuration file:
Publish-AppVClientPackage $pkg -DynamicUserConfigurationPath C:\Packages\Contoso\config.xml