diff --git a/CHANGELOG.md b/CHANGELOG.md index c43f4ca50..cefb04903 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- SharePointDsc + - Remove unnecessary Import-Module to fix an error when running resource SPFarm + on a server with SharePoint Subscription 23H1 that has never been joined to + a farm. + +### Fixed + - Export - Fixed issue where the export would not run on Subscription Edition - SPTrustedRootAuthority diff --git a/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1 b/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1 index 53d0d7508..d328e7374 100644 --- a/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1 +++ b/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1 @@ -668,10 +668,7 @@ function Invoke-SPDscCommand } else { - $baseScript = @" - Import-Module SharePointServer -Verbose:`$false -WarningAction SilentlyContinue - -"@ + $baseScript = "" } $invokeArgs = @{