Hello. I have a PS1 file that works locally without issue. It installs the Microsoft App Installer and prerequisite MSIXbundle, and APPX files, and then installs the MS Teams app MSIX file. The script and files are in the same directory and the PS1 is simply:
add-appxpackage -path Microsoft.UI.Xaml.2.8_8.2310.30001.0_x64__8wekyb3d8bbwe.Appx
add-appxpackage -path Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x64__8wekyb3d8bbwe.Appx
add-appxpackage -path Microsoft.DesktopAppInstaller_2024.307.343.0_neutral_~_8wekyb3d8bbwe.Msixbundle
add-appxpackage -path MSTeams-x64.msix
I have made a command step and tried many many variations (10+) to get it to work after combing the forums. I have tried copying the files to the local machine and running it from there, and running it from the repo but it made no difference. No matter the syntax I use, I either get a "Completed successfully" message but the app is not installed, a timeout (I have it set to 10 minutes), or a syntax error. I am getting frustrated, as I have made many packages before, but this one refuses to work. Does anyone have some insight as to what the issue might be?
FWIW, we also have a PDQ Deploy license, and I have used the same PS1 file with their deployment software, and it works without incident, but I would like to use LS for its reporting and deployment off that reporting.