PowerShell: How to Set Anonymous Access on Specific SharePoint Sites

In this article, I’ll show you how to set Anonymous Access settings on site with PowerShell script. We have the following requirements for the script:

1.       Allow users to input Site URL

2.       Check to see if the site has Unique permissions or not

  • If not, we will reset broken inheritance first and then set anonymous access on it
  • If yes, we only set anonymous access on it

3.       When setting anonymous access, we need to identify the following statuses:

  • Enabled -lists and libraries
  • On – Entire web site
  • Disabled – Self-explanatory

How does it work?

Download AnonymousSite.ps1 file to your server

Input the URL site as pictured below and press Enter.

Go back to your site and check out the result.


SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365

SharePoint

Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.


Calendar Plus


Chart Plus


Knowledge Base


Project Management Central


Simple List Search

 

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2013, 2016, 2019 – Classic Pages Only

SharePoint

Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.


Calendar Plus


Data Viewer


Password Change


Password Expiration


Password Reset

 

Our team of Microsoft 365 experts help you get the most out of your Microsoft technology, we have the best Microsoft 365 talent to streamline your organization.

Streamline Your Department

We Have What You Need

Bamboo Solutions

About


Blogs


Webinar & Events


Twitch


Culture & Diversity

 

 

Bamboo Solutions

Tools


Resources


Bamboo Installer