Forum Discussion
PnP powershell > Howto create or edit a managed property?
- Nov 27, 2017
If I remember correctly, SharePoint will import only changes from the default schema. You can verify easily this behavior. I've used this technique several times with no issues so I suggest you to use the supported method rather than a custom script.
If I would like to add one managed property I prefer not to export and import all managed search settings but only the one that is changed. Or does the import some kind of check? If an item exist, than skip the import of the item?
Edit: I found this one: https://gallery.technet.microsoft.com/office/Powershell-script-to-250c5aa6
Haven't test it yet but I'll give it a try
If I remember correctly, SharePoint will import only changes from the default schema. You can verify easily this behavior. I've used this technique several times with no issues so I suggest you to use the supported method rather than a custom script.
- ravick4u @hotmail.comOct 05, 2018Copper Contributor
Before we run this command which site collection we need to connect. I would like to export all managed property which I have created in Admin Site.
Did not received managed property when I am running this command against SharePoint admin sites as well as other sites.
- Franck CornuOct 09, 2018Copper Contributor
ravick4u @hotmail.com I think there is no cmdlet at the tenant level. Anyway, you can export/import the schema directly using the UI (Manage search schema in the SharePoint central admin portal).