Forum Discussion

mskrgulja's avatar
mskrgulja
Copper Contributor
Sep 15, 2020

Setting External access options via powershell

Hi.

I'm trying to set External access for Teams, but via powershell. Specifically the "Users can communicate with Skype users" option.

 

I can successfully set the  "Users can communicate with other Skype for Business and Teams users", but I can't find a solution for the other option ("Users can communicate with Skype users").

 

I have read numbers of blog postings, tutorials for the mentioned subject but it just doesn't work, the option won't switch.

 

Most mentioned powershell command for doing it, is the following:

 

 

 

 

    Set-CsExternalAccessPolicy -EnableOutsideAccess $False
    Set-CsExternalAccessPolicy -EnableFederationAccess $False
    Set-CsExternalAccessPolicy -EnablePublicCloudAccess $False
    Set-CsExternalAccessPolicy -EnablePublicCloudAudioVideoAccess $False

 

 

 

 

 

And while the script changes the targeted parameters successfully, the switch in the GUI still remains in "ON" position. 

 

I Have set the switch to the "OFF" position by hand, but underlying parameters quoted in code block above, haven't changed (their values retrieved with Get-CsExternalAccessPolicy powershell command. So, from that, it seems that those commands aren't for that option after all..

 

Any help is appreciated.

Br

  • Ken_M5's avatar
    Ken_M5
    Copper Contributor

    mskrgulja 

     

    I'm trying to do something similar. However, how did you manage to use the Set-CsExternalAccessPolicy command? 

     

    I keep getting a not found error: ObjectNotFound: (Set-CsExternalAccessPolicy:String)

     

    Thanks.

     

    • mskrgulja's avatar
      mskrgulja
      Copper Contributor

      Ken_M5 

      Hi ken.
      I couldn't find a solution. We concluded that the documentation was incomplete, and possibly not supported (since the option was still in the "preview" phase) so we didn't want to waste any more time on this.

      Also, the project (of which we had to change the Teams settings was part of) was abandoned so I never come back to this problem anymore.

       

      Br,
      Matija

    • mskrgulja's avatar
      mskrgulja
      Copper Contributor

      ChristianBergstrom 

      Hi. thank you for your response.

      I thought that it needed several days for settings to become effective, but I assumed that the GUI switch position would reflect the underlying (powershell changed) change immediately (just like is the case with the first setting).

       

      I will try to make the setting with powershell as I did before, but I will wait a few day to see if the changes will be reflected in the teams admin user interface.

       

      Br.

Resources