This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.DESCRIPTION | |
Downloads the latest SharePoint Online Client Libraries (CSOM) from your SharePoint tenant. | |
Inspired by : http://modery.net/script-to-download-the-sharepoint-online-dlls/ | |
.NOTES | |
Version : 1.0 | |
Author : Sébastien Levert | |
Date : 2014/11/29 | |
.PARAMETER OutputDirectory | |
The directory where to save all the files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-SPOnline -Url https://tenant.sharepoint.com -Credentials (Get-Credential) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Purge the content of a SharePoint list or library | |
.PARAMETER List | |
The List Object to purge the content from | |
.PARAMETER BatchSize | |
The BatchSize of the Query to the list | |
.PARAMETER Recycle | |
If this switch is On, the Purge recycles the items instead of deleting them | |
.EXAMPLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------------------- | |
# Loads the Purge-SPOList Cmdlets | |
#----------------------------------------------------------------------- | |
. .\Purge-SPOList.ps1 | |
#----------------------------------------------------------------------- | |
# Connects to your Office 365 SharePoint Online tenant | |
#----------------------------------------------------------------------- | |
Connect-SPOnline -Url https://<tenant>.sharepoint.com -Credentials <credentialslabel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------------------- | |
# Loads the Purge-SPOList Cmdlets | |
#----------------------------------------------------------------------- | |
. .\Purge-SPOList.ps1 | |
#----------------------------------------------------------------------- | |
# Connects to your Office 365 SharePoint Online tenant | |
#----------------------------------------------------------------------- | |
Connect-SPOnline -Url https://<tenant>.sharepoint.com -Credentials <credentialslabel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------------------- | |
# Loads the Purge-SPOList Cmdlets | |
#----------------------------------------------------------------------- | |
. .\Purge-SPOList.ps1 | |
#----------------------------------------------------------------------- | |
# Connects to your Office 365 SharePoint Online tenant | |
#----------------------------------------------------------------------- | |
Connect-SPOnline -Url https://<tenant>.sharepoint.com -Credentials <credentialslabel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.DESCRIPTION | |
Sets a field visibility (Display Form, New Form, Edit Form, Hidden) | |
.PARAMETER Field | |
The Field to modifiy its visibility settings | |
.PARAMETER ShowInDisplayForm | |
If we want the field to be visible in the DisplayForm | |
.PARAMETER ShowInNewForm | |
If we want the field to be visible in the NewForm | |
.PARAMETER ShowInEditForm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#----------------------------------------------------------------------- | |
# Loads the Set-Visibility Cmdlets | |
#----------------------------------------------------------------------- | |
. .\Set-FieldVisibility.ps1 | |
#----------------------------------------------------------------------- | |
# Connects to your Office 365 SharePoint Online tenant | |
#----------------------------------------------------------------------- | |
Connect-SPOnline -Url https://<tenant>.sharepoint.com -Credentials <credentialslabel> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.DESCRIPTION | |
Gets an access token for an App-Only Azure AD Application | |
.PARAMETER TenantId | |
The TenantId of the Azure AD Application | |
Can be set globally with $global:AzureADApplicationTenantId | |
.PARAMETER ClientId | |
The ClientId of the Azure AD Application | |
Can be set globally with $global:AzureADApplicationClientId | |
.PARAMETER CertificatePath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$global:AzureADApplicationTenantId = "00000000-0000-0000-0000-000000000000" | |
$global:AzureADApplicationClientId = "00000000-0000-0000-0000-000000000000" | |
$global:AzureADApplicationCertificatePath = "C:\Certificate.pfx" | |
$global:AzureADApplicationCertificatePassword = "Password" | |
$exchangeResourceUri = "https://outlook.office365.com/"; | |
. .\Get-AccessToken.ps1 | |
. .\Is-Guid.ps1 | |
$accessToken = Get-AccessToken -ResourceUri $exchangeResourceUri |
OlderNewer