Page 1 of 2

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

Published: April 9, 2024 - 3:48 PM
by gaelds
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?

Re: Error in the microsoft-teams-uwp package

Published: April 9, 2024 - 5:00 PM
by gaelds
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>

Re: Error in the microsoft-teams-uwp package

Published: April 10, 2024 - 10:26 AM
by dcardon
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

Re: Error in the microsoft-teams-uwp package

Published: April 10, 2024 - 11:02 AM
by gaelds
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 10324 times

Re: Error in the microsoft-teams-uwp package

Published: April 10, 2024 - 11:38 AM
by gaelds
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...?

Re: Error in the microsoft-teams-uwp package

Published: April 10, 2024 - 12:20 PM
by dcardon
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

Re: Error in the microsoft-teams-uwp package

Published: April 10, 2024 - 1:01 PM
by gaelds
> 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

Re: Error in the microsoft-teams-uwp package

Published: April 10, 2024 - 1:47 PM
by gaelds
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

Re: Error in the microsoft-teams-uwp package

Published: April 10, 2024 - 2:53 PM
by sfonteneau
On PCs experiencing this problem, you can try doing this:

https://learn.microsoft.com/en-us/micro ... e-computer

Re: Error in the microsoft-teams-uwp package

Published: June 10, 2024 - 11:57
by gaelds
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.