Windows PowerShell transcript start
Start time: 20250425180557
Username: WORKGROUP\SYSTEM
RunAs User: WORKGROUP\SYSTEM
Configuration Name:
Machine: DESKTOP-IDGO9NO (Microsoft Windows NT 10.0.26100.0)
Host Application: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -NoProfile -executionPolicy bypass -file C:\Program Files (x86)\Microsoft Intune Management Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1
Process ID: 21552
PSVersion: 5.1.26100.3624
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.26100.3624
BuildVersion: 10.0.26100.3624
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
Transcript started, output file is C:\ProgramData\MrTbone\logs\Intune-NewTeamsInstaller20250425180557.log
VERBOSE: 2025-04-25,18:05:57,info,Success to stop all Teams processes
VERBOSE: 2025-04-25,18:05:58,info,Success to uninstall Personal Teams appx packages for all users
VERBOSE: 2025-04-25,18:05:58,info,Success to uninstall all Classic Teams appx packages
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\Program Files (x86)\Teams Installer\teams.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\Program Files (x86)\Teams Installer\teams.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\Program Files (x86)\Microsoft\Teams\current\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\Program Files (x86)\Microsoft\Teams\current\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with Journal\appdata\local\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\ProgramData\Journal\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with RegBack\appdata\local\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\ProgramData\RegBack\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with systemprofile\appdata\local\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\ProgramData\systemprofile\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with TxR\appdata\local\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\ProgramData\TxR\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,Success to remove C:\ProgramData*\Microsoft\Teams
VERBOSE: 2025-04-25,18:05:58,info,Success to remove C:\WINDOWS\system32\config*\AppData\Local\Microsoft\Teams
VERBOSE: 2025-04-25,18:05:58,info,Success to remove C:\WINDOWS\system32\config*\AppData\Roaming\Microsoft\Teams
PS>TerminatingError(Start-Process): "This command cannot be run due to the error: The system cannot find the file specified."
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Program Files (x86)\Microsoft Intune Management
Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1:288 char:12
- $process = Start-Process -FilePath $NewTeamsInstaller -ArgumentList $ ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
- FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Program Files (x86)\Microsoft Intune Management
Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1:288 char:12
- $process = Start-Process -FilePath $NewTeamsInstaller -ArgumentList $ ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
- FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
The variable '$process' cannot be retrieved because it has not been set.
At C:\Program Files (x86)\Microsoft Intune Management
Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1:289 char:5
- if ($process.ExitCode -eq 0){write-verbose -verbose "$(Get-Date -Form ...
-
- CategoryInfo : InvalidOperation: (process:String) [], RuntimeException
- FullyQualifiedErrorId : VariableIsUndefined
The variable '$process' cannot be retrieved because it has not been set.
At C:\Program Files (x86)\Microsoft Intune Management
Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1:289 char:5
- if ($process.ExitCode -eq 0){write-verbose -verbose "$(Get-Date -Form ...
-
- CategoryInfo : InvalidOperation: (process:String) [], RuntimeException
- FullyQualifiedErrorId : VariableIsUndefined
Windows PowerShell transcript end
End time: 20250425180559
I have tried both x86 and x64, but no difference. Looks like the script is removed from the IME ?
Windows PowerShell transcript start
Start time: 20250425180557
Username: WORKGROUP\SYSTEM
RunAs User: WORKGROUP\SYSTEM
Configuration Name:
Machine: DESKTOP-IDGO9NO (Microsoft Windows NT 10.0.26100.0)
Host Application: C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -NoProfile -executionPolicy bypass -file C:\Program Files (x86)\Microsoft Intune Management Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1
Process ID: 21552
PSVersion: 5.1.26100.3624
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.26100.3624
BuildVersion: 10.0.26100.3624
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
Transcript started, output file is C:\ProgramData\MrTbone\logs\Intune-NewTeamsInstaller20250425180557.log
VERBOSE: 2025-04-25,18:05:57,info,Success to stop all Teams processes
VERBOSE: 2025-04-25,18:05:58,info,Success to uninstall Personal Teams appx packages for all users
VERBOSE: 2025-04-25,18:05:58,info,Success to uninstall all Classic Teams appx packages
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\Program Files (x86)\Teams Installer\teams.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\Program Files (x86)\Teams Installer\teams.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\Program Files (x86)\Microsoft\Teams\current\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\Program Files (x86)\Microsoft\Teams\current\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with Journal\appdata\local\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\ProgramData\Journal\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with RegBack\appdata\local\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\ProgramData\RegBack\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with systemprofile\appdata\local\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\ProgramData\systemprofile\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with TxR\appdata\local\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,No program found with C:\ProgramData\TxR\Microsoft\Teams\update.exe
VERBOSE: 2025-04-25,18:05:58,info,Success to remove C:\ProgramData*\Microsoft\Teams
VERBOSE: 2025-04-25,18:05:58,info,Success to remove C:\WINDOWS\system32\config*\AppData\Local\Microsoft\Teams
VERBOSE: 2025-04-25,18:05:58,info,Success to remove C:\WINDOWS\system32\config*\AppData\Roaming\Microsoft\Teams
PS>TerminatingError(Start-Process): "This command cannot be run due to the error: The system cannot find the file specified."
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Program Files (x86)\Microsoft Intune Management
Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1:288 char:12
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Program Files (x86)\Microsoft Intune Management
Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1:288 char:12
The variable '$process' cannot be retrieved because it has not been set.
At C:\Program Files (x86)\Microsoft Intune Management
Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1:289 char:5
The variable '$process' cannot be retrieved because it has not been set.
At C:\Program Files (x86)\Microsoft Intune Management
Extension\Policies\Scripts\866e889c-d44d-4f15-a2bb-eb5340316f9e_8c62f066-269e-4866-ae24-3dbd89bb750a.ps1:289 char:5
Windows PowerShell transcript end
End time: 20250425180559
I have tried both x86 and x64, but no difference. Looks like the script is removed from the IME ?