Skip to main content
Skip table of contents

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>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.