Skip to content

Commit

Permalink
Merge pull request #1286 from ykuijs/master
Browse files Browse the repository at this point in the history
Fixing issue #1284
  • Loading branch information
ykuijs authored Feb 4, 2021
2 parents 68297c9 + 027068e commit f6fba5a
Show file tree
Hide file tree
Showing 137 changed files with 633 additions and 104 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- SharePointDsc
- Fixed regression in v4.5

## [4.5.0] - 2021-01-30

### Added
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
function Get-TargetResource()
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
[OutputType([System.Collections.HashTable])]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
3 changes: 3 additions & 0 deletions SharePointDsc/DSCResources/MSFT_SPDocIcon/MSFT_SPDocIcon.psm1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

$dociconPath = Join-Path -Path $env:CommonProgramFiles -ChildPath 'microsoft shared\Web Server Extensions\16\TEMPLATE\XML'
$iconPath = Join-Path -Path $env:CommonProgramFiles -ChildPath 'microsoft shared\Web Server Extensions\16\TEMPLATE\IMAGES'
$dociconFileName = 'DOCICON.XML'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

$Script:TrustLocationProperties = @(
"Address",
"LocationType",
Expand Down
3 changes: 3 additions & 0 deletions SharePointDsc/DSCResources/MSFT_SPFarm/MSFT_SPFarm.psm1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent
$script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
function Get-TargetResource()
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
[OutputType([System.Collections.HashTable])]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
3 changes: 3 additions & 0 deletions SharePointDsc/DSCResources/MSFT_SPFeature/MSFT_SPFeature.psm1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
3 changes: 3 additions & 0 deletions SharePointDsc/DSCResources/MSFT_SPInstall/MSFT_SPInstall.psm1
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down Expand Up @@ -124,7 +127,8 @@ function Get-TargetResource
switch -Regex ($parsedProduct)
{
"Dari"
{ $languageEN = "Dari"
{
$languageEN = "Dari"
}
"Serbian"
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

$Script:SP2013Features = @("Application-Server", "AS-NET-Framework",
"AS-TCP-Port-Sharing", "AS-Web-Support", "AS-WAS-Support",
"AS-HTTP-Activation", "AS-Named-Pipes", "AS-TCP-Activation", "Web-Server",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util'
Import-Module -Name $script:SPDscUtilModulePath

function Get-TargetResource
{
[CmdletBinding()]
Expand Down
Loading

0 comments on commit f6fba5a

Please sign in to comment.