Disable Mysite Provisioning in SharePoint using Powershell Add-PSSnapIn Microsoft.SharePoint.PowerShell -EA 0 function DisableMySiteCreation([string]$UserProfileProxyName) { $upaproxy = Get-SPServiceApplicationProxy | Where-Object {$_.DisplayName -eq $UserProfileProxyName} $upasecurity = Get-SPProfileServiceApplicationSecurity -ProfileServiceApplicationProxy $upaproxy $authuser = New-SPClaimsPrincipal -Identity 'c:0(.s|true' -IdentityType EncodedClaim $ntauthusers = New-SPClaimsPrincipal -Identity 'c:0!.s|windows' -IdentityType EncodedClaim $localAuthUsers = New-SPClaimsPrincipal "NT AUTHORITY\Authenticated Users" - IdentityType WindowsSamAccountName Revoke-SPObjectSecurity -Identity $upasecurity -Principal $authuser -Rights "Create Personal Site" Revoke-SPObjectSecurity -Identity $upasecurity -Principal $authuser -Rights "Use Personal Features" Revoke-SPObjectSecurity -Identity $upasecurity -Principal $authuser -Rights ...
Your comprehensive resource for Microsoft 365 productivity solutions. Explore expert tutorials, best practices, and real-world implementations for SharePoint Online, Power Platform (Power Apps, Power Automate, Power BI), Microsoft Copilot and Python. Whether you're building automated workflows, creating custom apps, managing SharePoint sites, or leveraging AI with Copilot, find practical guides and insights to transform your digital workplace