< Back
Repair-PowerShellOutputRedirectionBug
Post
NAME Repair-PowerShellOutputRedirectionBug
SYNOPSIS
Fix for PS2/3
SYNTAX
Repair-PowerShellOutputRedirectionBug [<CommonParameters>]
DESCRIPTION
PowerShell v2/3 caches the output stream. Then it throws errors due
to the FileStream not being what is expected. Fixes "The OS handle's
position is not what FileStream expected. Do not use a handle
simultaneously in one FileStream and in Win32 code or another
FileStream."
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Repair-PowerShellOutputRedirectionBug #Only for PSVersion below PS4
RELATED LINKS
SYNOPSIS
Fix for PS2/3
SYNTAX
Repair-PowerShellOutputRedirectionBug [<CommonParameters>]
DESCRIPTION
PowerShell v2/3 caches the output stream. Then it throws errors due
to the FileStream not being what is expected. Fixes "The OS handle's
position is not what FileStream expected. Do not use a handle
simultaneously in one FileStream and in Win32 code or another
FileStream."
PARAMETERS
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Repair-PowerShellOutputRedirectionBug #Only for PSVersion below PS4
RELATED LINKS