Start-KFSharePointModule
Syntax
Start-KFSharePointModule
[-SharePointVersion] <platform-indicator>
[-ThrowErrors[:$true]]
Support
>= kenaflow 1.0.0
Return
Nothing.
Description
kenaflow does not allow parallel installation of the SharePoint PnP PowerShell module.
This is because kenaflow itself contains these modules for the SharePoint versions 2013, 2016, 2019 and Online.
To enable you to use SharePoint PnP modules for you own PowerShell scrips on the kenaflow server outside of kenaflow we created this cmdlet to load the module for appropriate SharePoint version from kenaflow storage.
Bear this in mind: Because the SharEPoint PnP PowerShell modules are part of kenaflow and because you can run multiple instances of kenaflow on the same computer it is possible, that each kenaflow instance can contain its own version of the PnP PowerShell modules.
Parameters
[-SharePointVersion] <platform-indicator>
Specifies the SharePoint platform for which you want to load the appropriate SharePoint PnP PowerShell module. Valid values are:
SP2013
SP2016
SP2019
SPO
[-ThrowErrors[:$true]]
This is a default parameter for all kenaflow cmdlets. If set to
$true
(default!) the engine will pass exception within the cmdlet to the script for further handling.
Example
Import-Module "C:\Program Files\kenaflow\kenaflow.runtime.dll"
Start-KFSharePointModule -SharePointVersion sp2013