Skip to content

Commit dd66689

Browse files
committed
confirm winrm quickconfig during build
1 parent cd1f1c2 commit dd66689

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ param(
1414
[switch]$SkipLinkCheck
1515
)
1616

17+
winrm quickconfig -quiet
18+
1719
if ($GetPackageVersion) {
1820
$match = Select-String -Path $PSScriptRoot/dsc/Cargo.toml -Pattern '^version\s*=\s*"(?<ver>.*?)"$'
1921
if ($null -eq $match) {

powershell-adapter/psDscAdapter/psDscAdapter.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# PSDesiredStateConfiguration 2.0.7 module will be saved in the DSC build
77
# in Windows PowerShell, we should always use version 1.1 that ships in Windows
88
if ($PSVersionTable.PSVersion.Major -gt 5) {
9-
$PSDesiredStateConfiguration = Import-Module "$PSScriptRoot/../PSDesiredStateConfiguration/2.0.7/PSDesiredStateConfiguration.psd1" -Force -PassThru
9+
$parentFolder = (Get-Item (Resolve-Path $PSScriptRoot).Path).Parent
10+
$PSDesiredStateConfiguration = Import-Module "$parentFolder/PSDesiredStateConfiguration/2.0.7/PSDesiredStateConfiguration.psd1" -Force -PassThru
1011
}
1112
else {
1213
$env:PSModulePath += ";$env:windir\System32\WindowsPowerShell\v1.0\Modules"

0 commit comments

Comments
 (0)