Forum Discussion

DarusDP's avatar
DarusDP
Copper Contributor
Aug 09, 2021
Solved

Using Powershell Microsoft Teams module in a GUI app will not shutdown the process when form closed

I have a GUI app written in Powershell that works correctly except when I connect to MicrosoftTeams (and even disconnect) then the GUI app process will not end. If I remove the connection to MSTeams ...
  • DarusDP's avatar
    DarusDP
    Aug 12, 2021

    DarusDP 

    Not ideal or elegant but

    Stop-Process -Id $PID 

    seems to work

     

    Hopefully Microsoft Teams module developers will discover the real problem and fix it.