override wait
RunAs=currentuser
wait {pathname of system folder & “\cmd.exe”} /C echo %username% > C:\Temp\Bigfix\output21.txt
wait {pathname of system folder & “\cmd.exe”} /C “C:\users%USERNAME%\appdata\Local\Microsoft\Teams\Update.exe” --uninstall
I have try those command on the bigfix console but it does not uninstalled MS team.
i was able to view this output21.txt into the temp folder with the right username but i do not understand why the other line {wait {pathname of system folder & “\cmd.exe”} /C “C:\users%USERNAME%\appdata\Local\Microsoft\Teams\Update.exe” --uninstall} does not uninstall team.
when i run this C:\users%USERNAME%\appdata\Local\Microsoft\Teams\Update.exe on a regular CMD i am able to uninstall team.
override wait
RunAs=currentuser
wait {pathname of system folder & “\cmd.exe”} /C "C:\users\" & name of logged on user & "\appdata\Local\Microsoft\Teams\Update.exe" --uninstall
The command has the wrong quotes in it, it has the “smart quotes” that come from copy/paste on an HTML formatted page like the Forum, replace them by deleting & re-typing the doublequotes.