Microsoft Download Center Archive
Set Guest Allow Block Domain Policy |
Provides way to set, update and remove the allow and deny list of domains for guests in the organization.
- Helps admin to update the AzureADPolicy for Allow/Block domain list for inviting external Users. Using this script IT Admin can set-up:
- Allow list, guest users of this domain list can only be invited to O365 Groups.
- Block list, guest users of this domain list cannot be invited to O365 Groups.
Files
Status: LiveThis download is still available on microsoft.com. The downloads below will come directly from the Microsoft Download Center. |
File | Size |
---|---|
Set-GuestAllowBlockDomainPolicy.ps1 SHA1: f6dc7a72ef39073f2cf63345db131306557427a8 | 10 KB |
File sizes and hashes are retrieved from the Wayback Machine’s indexes. They may not match the latest versions of files hosted on Microsoft servers.
System Requirements
Operating Systems: Windows 10, Windows Server 2012 R2 Datacenter, Windows Server 2012 R2 Essentials, Windows Server 2012 R2 Preview, Windows Server 2012 R2 Standard, Windows Server 2012 Release Candidate, Windows Server 2012 Standard, Windows Server 2016
Installation Instructions
- Perform the following steps:
- Download this script and place it in a folder of your choice.
- Start Windows PowerShell version 2.0 or later.
- Connect to AzureAD. More details here
- Connect to SharePoint Online. More details here. This step is necessary if you do plan to import existing allow/block list from SharePoint Online.
- Execute Set-GuestAllowBlockDomainPolicy.ps1 with parameters that set, update, import, or remove the allow/block domain list.