Skip to content

Instantly share code, notes, and snippets.

View jishua9's full-sized avatar
๐Ÿ‘

Josh jishua9

๐Ÿ‘
  • Melbourne, Australia
View GitHub Profile
@win2000b
win2000b / GetLibraryID.ps1
Last active April 8, 2024 03:40
Get Library ID from SharePoint Document Library for Sync
# Optional, To get your tenant ID via PowerShell
Connect-msolservice
Get-MSOLCompanyInformation | select objectID
# Install SharePoint PowerShell If needed
Install-Module SharePointPnPPowerShellOnline
# Example https://$tenant.sharepoint.com/sites/$siteName
$tenant = 'Enter your Tenant Name in Here' # xxxx.onmicrosoft.com
$tenantId = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' #Tenant ID, can be retrieved from Azure AD or PowerShell under optional.