Cloud 6.0 5.2.5 5.2.4 5.2.3 Cloud Server
Cloud 6.0 5.2.5 5.2.4 5.2.3 Cloud Server

SharePoint Online Connector Service Cmdlets

PowerShell CmdLets have been deprecated in 6.0. These articles are provided for informational purposes only.

SharePoint Online Connector Service supports configuration post-installation by using a PowerShell Module installed to the following location:

PowerShell
%Install Path%\PowerShell\RecordLion.RecordsManager.SPOnline.PowerShell.Service.dll

When the SharePoint Online Connector Service is installed, the following Cmdlets are pre-registered with PowerShell and should be immediately available. However, if the Cmdlets are not available, execute the following command from a PowerShell Script to make the Cmdlets available.

PowerShell
Import-Module “%Install Path%\PowerShell\RecordLion.RecordsManager.SPOnline.PowerShell.Service.dll"

%Install Path% should be replaced with the absolute path to where installation was specified.

Cmdlets

Get-SPOClientSecretEndDate

PowerShell
Get-SPOClientSecretEndDate
-ClientId <string>
-Credentials <pscredential>

Get-SPOJobSchedule

PowerShell
Get-SPOJobSchedule
-JobType <JobType> {Custom | FullClassification | IncrementalClassification | Retention}
[-CustomJobId <guid>]

Invoke-SPOJobSchedule

PowerShell
Invoke-SPOJobSchedule
-JobSchedule <JobScheduleModel>

New-SPOClientSecret

PowerShell
New-SPOClientSecret

Register-SPAppSetting

PowerShell
Register-SPAppSetting
-SPHostUrl <string> 
-SPSiteUrl <string>
-SPSiteId <guid>     
-SPWebId <guid>

Set-ServicePrincipalClientSecret

PowerShell
Set-ServicePrincipalClientSecret
-ClientSecret <string>
-ClientId <string>
-Credentials <pscredential>
[-Duration <timespan>]

Set-SPOConnectorService

PowerShell
Set-SPOConnectorService
[-ConnectionString <string>]
[-ClientId <string>]
[-ClientSecret <string>]
[-ServiceIdentity <pscredential>]
[-Stop]
[-Start]
[-ChangeLogon]
[-GrantPermissionToServiceIdentity]

Set-SPOJobSchedule

PowerShell
Set-SPOJobSchedule
-JobSchedule <JobScheduleModel>

Unblock-SPOListItem

PowerShell
Unblock-SPOListItem
-ItemUrl <string>
-SPOnlineCreds <pscredential>