Copilot for Microsoft 365 Tech Accelerator
Feb 28 2024 07:00 AM - Feb 29 2024 10:30 AM (PST)
Microsoft Tech Community

PowerShell Script to prevent external non-domain users to access internal DMZ OOS

Copper Contributor

We have configured OOS on SharePoint 2016. Are there any powershell scripts to prevent external non-domain users from accessing internal DMZ Office Online Server (OOS)? 


Thanks In Advance

1 Reply


I'm not sure that a PowerShell script would be what we're looking for with this.

Let me make sure I understand correctly..

external non-domain users = users accessing the SP environment from OUTSIDE the company network and not on domain joined machine?

Can you detail more what is meant by "internal DMZ OOS"?

How are you providing external access to SP?  How are you providing external access to OOS?  Web Application Proxy?  Is ADFS involved?


Depending on the infrastructure, there may be multiple options for preventing non-domain machines from accessing office online server, but I'm also curious why it would be limited to OOS?


If ADFS with WAP is involved, I would think you could limit access based on a rule on ADFS that's propagated by the WAP.