Skip to content

You can easily create an instance (a template) from your SharePoint online site including lists,docs,settings,users,content types and export it to another SharePoint online site.

Notifications You must be signed in to change notification settings

Shmata/ImportAndExportSPSite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ConsoleApp

ImportAndExportSPSite

You can easily create an instance (a template) from your SharePoint online site including lists,document libraries,settings,users,content types and export it to another SharePoint online site.

First create a self signed certificate

in powershell run below command

$cert=New-SelfSignedCertificate -Subject "CN=CompName" -CertStoreLocation "Cert:\CurrentUser\My" -KeyExportPolicy Exportable -KeySpec Signature -NotAfter (Get-Date).AddMonths(24)

Second export your recently created certificate in addition to private key

in run -> mmc -> Certificates - Current User -> Personal -> Certificate Certificate

in certificate right click select All tasks then export

Third create an app registeration in Azure portal

In the Certificates and Sectrets -> select certificates -> upload your self signed certificate.

Fourth get client Id, Tenant Id

Go to overview section and get the client id and tenant id and replace it in console app. Aure

About

You can easily create an instance (a template) from your SharePoint online site including lists,docs,settings,users,content types and export it to another SharePoint online site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages