diff --git a/Functions/Private/ConvertFrom-GraylogSession.ps1 b/Functions/Private/ConvertFrom-GraylogSession.ps1 index b3b373f..52b1413 100644 --- a/Functions/Private/ConvertFrom-GraylogSession.ps1 +++ b/Functions/Private/ConvertFrom-GraylogSession.ps1 @@ -35,7 +35,8 @@ function ConvertFrom-GraylogSession { # MaximumRetryCount = $InputObject.MaximumRetryCount # RetryIntervalInSeconds = $InputObject.RetryIntervalInSeconds # } - $Output = $InputObject + $Output = $InputObject | Select-Object -ExcludeProperty Cookies + $Output | Add-Member -MemberType NoteProperty -Name Cookies -Value ([Collections.Generic.List[PSCustomObject]]@()) if ($InputObject.Cookies.Count) { # GetAllCookies is only available in PowerShell Core :c $InputObject.Cookies.GetCookies($local:Graylog_BaseURI) | ForEach-Object {