Karol

My feedback

  1. 227 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    48 comments  ·  Public » Settings  ·  Flag idea as inappropriate…  ·  Admin →
    Karol supported this idea  · 
  2. 1,004 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  104 comments  ·  Public » Desktop  ·  Flag idea as inappropriate…  ·  Admin →
    Karol supported this idea  · 
    An error occurred while saving the comment
    Karol commented  · 

    It would be nice to have Teams Machine installer to handle Firewall rules internally.

    Here is a very simple script code similar to other ones already posted here. It will prevent firewall popup from happening, you need to create a scheduled task that will be ran using SYSTEM account and configure trigger to user logon. Below is a command to create scheduled task (replace !TEAMSDIR! with location of the script (I would recommend C:\ProgramData\... to avoid issues).

    schtasks /create /tn "Teams Firewall Rules" /sc ONLOGON /delay 0000:05 /tr "cmd /c \"!TEAMSDIR!\Firewall.cmd\"" /ru SYSTEM /rl HIGHEST /f

    And below is actual script code, save it to "Firewall.cmd" you may need to adjust firewall rules to be more restrictive if you need:

    @echo off

    set TITLE=Microsoft Teams
    TITLE %TITLE%

    netsh advfirewall firewall delete rule name="%TITLE%"

    for /f "tokens=*" %%A in ('dir /b /a:d "%SystemDrive%\Users" 2^>NUL') do (
    echo.User: %%~A

    netsh advfirewall firewall add rule name="%TITLE%" program="%SystemDrive%\Users\%%~A\AppData\Local\Microsoft\Teams\current\Teams.exe" protocol=any action=allow dir=in edge=yes
    netsh advfirewall firewall add rule name="%TITLE%" program="%SystemDrive%\Users\%%~A\AppData\Local\Microsoft\Teams\current\Teams.exe" protocol=any action=allow dir=out

    netsh advfirewall firewall add rule name="%TITLE%" program="%SystemDrive%\Users\%%~A\AppData\Local\Microsoft\Teams\Update.exe" protocol=any action=allow dir=in edge=yes
    netsh advfirewall firewall add rule name="%TITLE%" program="%SystemDrive%\Users\%%~A\AppData\Local\Microsoft\Teams\Update.exe" protocol=any action=allow dir=out
    )

  3. 491 votes

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    53 comments  ·  Public » Settings  ·  Flag idea as inappropriate…  ·  Admin →
    Karol supported this idea  · 

Feedback and Knowledge Base