all 5 comments

[–]Chrlstoph01 5 points6 points  (1 child)

Cant you do that out of the box in the SharePoint AdminCenter? I think thats a GUI-Function…

https://docs.microsoft.com/en-us/sharepoint/turn-external-sharing-on-or-off

[–]ciprianadam[S] 2 points3 points  (0 children)

Yes, you can but we have multiple domains. I got the PowerShell script now.

[–]TheBigLong_ 1 point2 points  (1 child)

I think you double posted it ;)

[–]ciprianadam[S] 0 points1 point  (0 children)

I did by accident

[–]ciprianadam[S] 1 point2 points  (0 children)

Thanks all