dsccommunity / SharePointDsc

The SharePointDsc PowerShell module provides DSC resources that can be used to deploy and manage a SharePoint farm
MIT License
247 stars 107 forks source link

[Export] Export doesn't work in SPSE #1422

Closed ykuijs closed 1 year ago

ykuijs commented 1 year ago

Problem description

When you try to create an export in SPSE, you are getting the following error: We couldn't detect a SharePoint installation on this machine. Please execute the SharePoint ReverseDSC script on an existing SharePoint server.

This is caused by the fact that the code is specifically checking for the snapin, which is no longer used/available in SPSE.

Verbose logs

N/A

DSC configuration

N/A

Suggested solution

Update the code to also check for the module.

SharePoint version and build

SPSE

Operating system the target node is running

Windows 2022

PowerShell version and build the target node is running

v5.1

SharePointDsc version

v5.3