Skip to main content

Sharepoint Online Notes

Last Updated: June 1, 2021

Install PowerShell module

Install-Module -Name Microsoft.Online.SharePoint.PowerShell -Scope CurrentUser

Connecting

Connect-SPOService -Url https://<tenant>-admin.sharepoint.com

Limit Sync

OneDrive Sync to only Domain Joined computers. Or you can use Conditional Access.

Set-SPOTenantSyncClientRestriction -enable –DomainGuids <domainguid>

Restricted access for unmanaged

caution

This will create a default conditional access policy to limit access on unmanaged devices. Delete the default one and created your own based on your organization's needs.

Set-SPOTenant -ConditionalAccessPolicy AllowLimitedAccess

Disable this policy for SharePoint B2B guests.

Set-SPOTenant -ApplyAppEnforcedRestrictionsToAdHocRecipients $false

Read more here.