diff --git a/ePOwerShell/Private/Initialize-ePOConfig.ps1 b/ePOwerShell/Private/Initialize-ePOConfig.ps1 index b4a3e88..8c0e1b0 100644 --- a/ePOwerShell/Private/Initialize-ePOConfig.ps1 +++ b/ePOwerShell/Private/Initialize-ePOConfig.ps1 @@ -51,10 +51,10 @@ function Initialize-ePOConfig { } $Script:ePOwerShell = @{ - Port = $Port - Server = $Server - Credentials = $Credentials - AllowSelfSigned = $AllowSelfSignedCerts + Port = $Port + Server = $Server + Credentials = $Credentials + AllowSelfSignedCerts = $AllowSelfSignedCerts } try { diff --git a/ePOwerShell/Public/Set-ePOConfig.ps1 b/ePOwerShell/Public/Set-ePOConfig.ps1 index 019e4ba..cfb04c2 100644 --- a/ePOwerShell/Public/Set-ePOConfig.ps1 +++ b/ePOwerShell/Public/Set-ePOConfig.ps1 @@ -99,8 +99,9 @@ function Set-ePOConfig { $Credentials = New-Object @GetCredentials $ePOwerShellVariables = @{ - Server = $Settings.Server - Credentials = $Credentials + Server = $Settings.Server + Credentials = $Credentials + AllowSelfSignedCerts = $Settings.AllowSelfSignedCerts.IsPresent } if ($settings.Port) {