From e3a322fb31b9d793faa08899ae100ec5f9076a10 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Peters Date: Wed, 14 Nov 2018 16:18:13 +0100 Subject: [PATCH 1/2] changed -notin to -notcontains for compat with Win7 --- AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 b/AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 index f672778..7bca652 100644 --- a/AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 +++ b/AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 @@ -207,7 +207,7 @@ function Install-SoftwarePackage if ($result.Process.ExitCode -ne 0 ` -and $result.Process.ExitCode -ne 3010 ` -and $result.Process.ExitCode -ne $null ` - -and $result.Process.ExitCode -notin $ExpectedReturnCodes) + -and $ExpectedReturnCodes -notcontains $result.Process.ExitCode ) { throw (New-Object System.ComponentModel.Win32Exception($result.Process.ExitCode)) } From 2d9c833b7c88c0a38e9c7efb13dc553081659318 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Peters Date: Wed, 14 Nov 2018 16:22:17 +0100 Subject: [PATCH 2/2] No type accelerator in PowerShell 2 --- AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 b/AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 index 7bca652..bbefda6 100644 --- a/AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 +++ b/AutomatedLab.Common/Common/Public/Install-SoftwarePackage.ps1 @@ -13,7 +13,7 @@ function Install-SoftwarePackage [int[]]$ExpectedReturnCodes, - [pscredential]$Credential + [system.management.automation.pscredential]$Credential ) #region New-InstallProcess