[RESOLVED] Error with the microsoft-teams-uwp package

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

April 9, 2024 - 3:48 PM

Good morning,
I've deployed the microsoft-teams-uwp package across my network, but a few dozen machines are still experiencing errors. On these machines, I can manually install the MSteams-x64.msix file, but the package still won't install. The affected machines are running Windows 10 20H2/21H1/21H2 or Windows 11 21H2/22H2

Here is an example of an error in the console:

Code: Select all

Installing: MSTeams-x64.msix (24004.1309.2689.2246)
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1194, in run_powershell
    result = run(cmd,
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2174, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output+return_stderr))
waptutils.CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : Le package ne satisfait pas à la condition requise pour la mise en service de l'image _x000D__x000A_</S><S S="Error">cible. Pour plus d'informations, voir l'aide._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4234, in install_wapt
    exitstatus = setup.install()
  File "C:\Windows\TEMP\waptucvpk3rl\setup.py", line 24, in install
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1198, in run_powershell
    raise CalledProcessErrorOutput(e.returncode, cmd, e.output)
waptutils.CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : Le package ne satisfait pas à la condition requise pour la mise en service de l'image _x000D__x000A_</S><S S="Error">cible. Pour plus d'informations, voir l'aide._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>

CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : Le package ne satisfait pas à la condition requise pour la mise en service de l'image _x000D__x000A_</S><S S="Error">cible. Pour plus d'informations, voir l'aide._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
And secondly, before uninstalling the old teams, how do I automatically launch "new teams" at startup?
Last edited by gaelds on June 11, 2024 - 10:49, edited 3 times.
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

April 9, 2024 - 5:00 PM

Another PC displays a different error: "Installing this application requires a Windows developer license or a..."

Code: Select all

Installing: MSTeams-x64.msix (24033.813.2773.520)
Traceback (most recent call last):
  File "C:\wapt\setuphelpers_windows.py", line 1194, in run_powershell
    result = run(cmd,
  File "C:\wapt\waptutils.py", line 2174, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output+return_stderr))
waptutils.CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : L'installation de cette application requiert une licence de développeur Windows ou un _x000D__x000A_</S><S S="Error">système compatible avec le chargement indépendant._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\wapt\common.py", line 4234, in install_wapt
    exitstatus = setup.install()
  File "C:\Windows\TEMP\waptyd_xmrlk\setup.py", line 24, in install
  File "C:\wapt\setuphelpers_windows.py", line 1198, in run_powershell
    raise CalledProcessErrorOutput(e.returncode, cmd, e.output)
waptutils.CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : L'installation de cette application requiert une licence de développeur Windows ou un _x000D__x000A_</S><S S="Error">système compatible avec le chargement indépendant._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>

CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : L'installation de cette application requiert une licence de développeur Windows ou un _x000D__x000A_</S><S S="Error">système compatible avec le chargement indépendant._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 10, 2024 - 10:26

Hello Gaël,

When you manually test the installation, do you use the same command line?

Code: Select all

Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -SkipLicense
Have you tested it as a system account? (by launching a PowerShell command with psexec -i -s powershell.exe)

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

April 10, 2024 - 11:02 AM

Hello, here's what it looks like on one of the affected PCs.
2024-04-10 11_00_12-Window.jpg
2024-04-10 11_00_12-Window.jpg (38.35 KB) Viewed 10319 times
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

April 10, 2024 - 11:38

I don't quite understand, but it seems to be working better this morning. On the same PC as above, I manually reinstalled MSTeams-x64.msix as administrator (it had disappeared since yesterday). Then, I reinstalled the microsoft-teams-uwp_24033.813.2773.520 package, and this time it worked!
I just did the same thing on another locked desktop PC, and the package also worked after the manual installation of msix.
There are about forty PCs left to unlock. :cry: Of those that remain, there are only laptops; I don't know if that's a coincidence...?
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 10, 2024 - 12:20

Hello Gaël,

Could you please try the following command on the affected machine before rerunning add-appxprovisionedpackage?

Code: Select all

Remove-AppxProvisionedPackage -PackageName teamsmsix.appx  -Online -AllUsers


Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

April 10, 2024 - 1:01 PM

> Remove-AppxProvisionedPackage -PackageName teamsmsix.appx -Online -AllUsers
Remove-AppxProvisionedPackage: Incorrect parameter.
To character Line:1: 1
+ Remove-AppxProvisionedPackage -PackageName teamsmsix.appx -Online -A ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: NotSpecified: (:) [Remove-AppxProvisionedPackage], PSArgumentException
+ FullyQualifiedErrorId: Microsoft.Dism.Commands.RemoveAppxProvisionedPackageCommand
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

April 10, 2024 - 1:47 PM

I just unlocked the installation on 3 PCs by modifying this value in gpedit > Configuration > Computer > Administrative Templates > Components > Application Package Deployment, enabling: Allow installation of all trusted applications.

Source:https://learn.microsoft.com/fr-fr/micro ... stallation
Last edited by gaelds on Apr 12, 2024 - 3:09 PM, edited 2 times.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 10, 2024 - 2:53 PM

On PCs experiencing this problem, you can try doing this:

https://learn.microsoft.com/en-us/micro ... e-computer
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

June 10, 2024 - 11:57

Good morning,
I recently updated the microsoft-teams-uwp package (24102), and I am again getting errors on PCs where the previous package was installed (version 24033).

I get this error on some PCs (always laptops!, Windows 10 or 11):

Code: Select all

Installing: MSTeams-x64.msix (24102.2223.2870.9480)
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1194, in run_powershell
    result = run(cmd,
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2174, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output+return_stderr))
waptutils.CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : Le package ne satisfait pas à la condition requise pour la mise en service de l'image _x000D__x000A_</S><S S="Error">cible. Pour plus d'informations, voir l'aide._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4234, in install_wapt
    exitstatus = setup.install()
  File "C:\Windows\TEMP\wapthidyptta\setup.py", line 24, in install
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1198, in run_powershell
    raise CalledProcessErrorOutput(e.returncode, cmd, e.output)
waptutils.CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : Le package ne satisfait pas à la condition requise pour la mise en service de l'image _x000D__x000A_</S><S S="Error">cible. Pour plus d'informations, voir l'aide._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>

CalledProcessErrorOutput: Command 'powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -OutputFormat text -EncodedCommand "QQBkAGQALQBBAHAAcAB4AFAAcgBvAHYAaQBzAGkAbwBuAGUAZABQAGEAYwBrAGEAZwBlACAALQBPAG4AbABpAG4AZQAgAC0AUABhAGMAawBhAGcAZQBQAGEAdABoACAAIgBNAFMAVABlAGEAbQBzAC0AeAA2ADQALgBtAHMAaQB4ACIAIAAtAFMAawBpAHAATABpAGMAZQBuAHMAZQA=" ' returned non-zero exit status 1.
Output:#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">2</I64><PR N="Record"><AV>Préparation des modules à la première utilisation.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">Add-AppxProvisionedPackage : Le package ne satisfait pas à la condition requise pour la mise en service de l'image _x000D__x000A_</S><S S="Error">cible. Pour plus d'informations, voir l'aide._x000D__x000A_</S><S S="Error">Au caractère Ligne:1 : 1_x000D__x000A_</S><S S="Error">+ Add-AppxProvisionedPackage -Online -PackagePath "MSTeams-x64.msix" -S ..._x000D__x000A_</S><S S="Error">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : NotSpecified: (:) [Add-AppxProvisionedPackage], COMException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Microsoft.Dism.Commands.AddAppxProvisionedPackageCommand_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
I managed to manually install MSTeams-x64.msix (downloaded from the Microsoft website) on some PCs, and the package then installs normally. However, there are still a few where the package fails to install even though New Teams is already present and working.
Sometimes I can only launch MSTeams-x64.msix manually if I enable "Allow installation of trusted applications" in the local policy.


EDIT: After running sfc /scannow (in addition to the GPO that enables "Allow installation of trusted applications"), I only have 8 stubborn laptops left. But aside from recreating the disk image, I'm stuck... New Teams is correctly installed with the msix package, but the package is failing.
Locked