microsoft / SharePointDSC.Reverse

Extracts a Desired State Configuration Script from an existing SharePoint Farm
MIT License
40 stars 27 forks source link

Extraction fails on SharePoint Server 2013 with SharePointDSC Module Version 4.2.0 #103

Open fhelaine opened 4 years ago

fhelaine commented 4 years ago

SharePointDSC.Reverse VERSION 3.7.0.1 erreur_sharepoint_reverse_dsc

chanm003 commented 4 years ago

I also have this same exact issue but I am trying to extract from 2016 farm

andikrueger commented 1 year ago

This issue is caused by the Read-SPFarm function and can be rolved by adding

$params.Remove('ApplicationCredentialKey')

at this place:

https://github.com/microsoft/SharePointDSC.Reverse/blob/5de8a810285f6be40cc3f12bf20f21ced198459e/SharePointDSC.Reverse.ps1#L1109

To really fix this issue, there are some more modifications needed. This should only be done, if the Farm is not a SP2019 or SE one.