I'm trying to install Teams VDI on a Windows 11 multi-session host. My install script needs an absolute path, and I can't figure out the directory where the WIN32 files are extracted to by Intune. Can anyone help?
3 Answers
You can use `$PSScriptRootVDIinstaller.exe` in your script; that should work. Alternatively, consider copying `VDIinstaller.exe` to `C:temp` or a similar directory and run the installation from there instead of looking for the extraction path directly.
I tried it with `install.ps1.teamsbootstrapper.exe -p -o "$PSScriptRootMSTeams-x64.msix"` but it didn't work with the wrapping script.
If I'm remembering right, the extraction path is usually found at `C:WindowsIMECache_1`. Just keep in mind the number changes with updates (like `_2` for new versions).
Thanks for the tips! I also found that `$PWD` or `$PSScriptRoot` should be functional for getting the correct path.
Actually, it did work for me using `.teamsbootstrapper.exe -p -o "$PSScriptRootMSTeams-x64.msix"`. Just having issues with the detection rules now.