AnsweredAssumed Answered

System.IO.Pipes.PipeDirection Error when running Snow Inventory Agent for Windows (5.3) scan

Question asked by timp Advocate on Apr 18, 2019
Latest reply on Apr 18, 2019 by timp

Getting the following error when running Snow Inventory Agent for Windows (5.3) scan on some computers, is this an issue? any suggestions on resolution if it is?

 

Unable to find type [System.IO.Pipes.PipeDirection]: make sure that the assembly containing this type is loaded.
At line:1 char:178
+ & {function Run-Server() { param([string]$h); $b = New-Object byte[] 8; $p =
New-Object System.IO.Pipes.AnonymousPipeClientStream -ArgumentList @([System.IO
.Pipes.PipeDirection] <<<< ::In, $h); if ($p) { $l = $p.Read($b, 0, 8); while (
$l -gt 7) { $c = [System.BitConverter]::ToInt32($b, 0); $l = [System.BitConvert
er]::ToInt32($b, 4); $t = $null; if ($l -gt 0) { $t1 = New-Object byte[] $l; $l
= $p.Read($t1, 0, $t1.Length); $t = [System.Text.Encoding]::UTF8.GetString($t1
, 0, $l) } if ($c -eq 1) { Invoke-Expression $t } elseif ($c -eq 9) { break } $
l = $p.Read($b, 0, 8) } $p.Dispose() } } Run-Server -h 972}
+ CategoryInfo : InvalidOperation: (System.IO.Pipes.PipeDirection
:String) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound

New-Object : Cannot find type [System.IO.Pipes.AnonymousPipeClientStream]: make
sure the assembly containing this type is loaded.
At line:1 char:88
+ & {function Run-Server() { param([string]$h); $b = New-Object byte[] 8; $p =
New-Object <<<< System.IO.Pipes.AnonymousPipeClientStream -ArgumentList @([Sys
tem.IO.Pipes.PipeDirection]::In, $h); if ($p) { $l = $p.Read($b, 0, 8); while (
$l -gt 7) { $c = [System.BitConverter]::ToInt32($b, 0); $l = [System.BitConvert
er]::ToInt32($b, 4); $t = $null; if ($l -gt 0) { $t1 = New-Object byte[] $l; $l
= $p.Read($t1, 0, $t1.Length); $t = [System.Text.Encoding]::UTF8.GetString($t1
, 0, $l) } if ($c -eq 1) { Invoke-Expression $t } elseif ($c -eq 9) { break } $
l = $p.Read($b, 0, 8) } $p.Dispose() } } Run-Server -h 972}
+ CategoryInfo : InvalidType: (:) [New-Object], PSArgumentExcepti
on
+ FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewOb
jectCommand

Outcomes