Dimka, я открыл файл но при
$SZ = $file.Read($buffer, 0, 5) оно выдает ошибку:
Cannot convert argument "0", with value: "<httpd-win> ", for "Read" to type "System.Byte[]": "Cannot convert value "<httpd-win> " to type "System.Byte[]". Error: "Canno
t convert value "<httpd-win> " to type "System.Byte". Error: "Input string was not in a correct format."""
At line:1 char:17
+ $SZ = $file.Read <<<< ($buffer, 0, 5)
+ CategoryInfo : NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument