Skip to content

Commit

Permalink
Merge branch 'master' into add-xRDCertificate-resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danielboth authored Mar 25, 2020
2 parents e746158 + ececb38 commit 4473528
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed resouce key from Server alone to Role + Server.
This allows the resource to be used multiple times for different roles on
the same server. (Issue #62)
- Changes to xRemoteApp
- Fix xRDRemoteApp Test-TargetResource to not test PowerShell common parameters

## 1.9.0.0

Expand Down
4 changes: 4 additions & 0 deletions source/DSCResources/MSFT_xRDRemoteApp/MSFT_xRDRemoteApp.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ function Test-TargetResource
$testTargetResourceResult = $true

$getTargetResourceResult = Get-TargetResource @PSBoundParameters
[System.Management.Automation.PSCmdlet]::CommonParameters | Foreach-Object -Process {
$null = $PSBoundParameters.Remove($_)
}

$PSBoundParameters.Keys | ForEach-Object -Process {
if ($PSBoundParameters[$_] -ne $getTargetResourceResult[$_])
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Import-Module -Name "$PSScriptRoot\..\..\Modules\xRemoteDesktopSessionHostCommon.psm1"
if (!(Test-xRemoteDesktopSessionHostOsRequirement)) { throw "The minimum OS requirement was not met."}
if (!(Test-xRemoteDesktopSessionHostOsRequirement))
{
throw "The minimum OS requirement was not met."
}
Import-Module RemoteDesktop

#######################################################################
Expand Down

0 comments on commit 4473528

Please sign in to comment.