Skip to content

Commit

Permalink
Merge pull request #1425 from Yvand/yvand/remove-importmodule-subscri…
Browse files Browse the repository at this point in the history
…ption

Remove unnecessary Import-Module in SharePoint Subscription to fix error in 23H1
  • Loading branch information
ykuijs authored Apr 3, 2023
2 parents 8dba53d + 19504ad commit 75dec1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,7 @@ function Invoke-SPDscCommand
}
else
{
$baseScript = @"
Import-Module SharePointServer -Verbose:`$false -WarningAction SilentlyContinue
"@
$baseScript = ""
}

$invokeArgs = @{
Expand Down

0 comments on commit 75dec1d

Please sign in to comment.