Forum Discussion

AB21805's avatar
AB21805
Bronze Contributor
Jan 24, 2024
Solved

Issue with Intune Script: Successful Report, but Ineffective Removal of Personal Teams on Windows 11

Hello everyone, I've encountered an issue with a script that performs flawlessly when executed manually on the device. However, when running the same script via Intune, it reports success but doesn'...
  • AB21805's avatar
    Jan 24, 2024
    Found a fix : #Kill Teams Personal EXE if running
    TASKKILL /IM msteams.exe /f

    #Remove it
    Get-AppxPackage MicrosoftTeams -allusers | Remove-AppxPackage -allusers

    Exit 0

Resources