Start-Transcript does not capture user keyboard input when started from a script when ran under Powershell Version 5
I have found after upgrading Windows Powershell from Version 4 to Version 5 that the transcript log file created by the Start-Transcript commandlet does not capture the users keyboard input....where it does capture user input when running in Version 4.
Steps to replicate:
- Create a ps1 script with Start-Transcript and a Write-Host/Read-Host response. (Feel free to use the "script code" below)
Write-Host "Enter your name: " -NoNewline
$Name = Read-Host
Write-Host "You entered: $Name"
Run the script on a machine with Windows Powershell 4 installed, review the Transcript log.
Do the same on a machine with Windows Powershell Version 5 installed, and review the Transcript log.
You'll notice that when run on a machine with Powershell 4 installed the Transcript log will show the keystrokes that were entered by the user.....but when run under Powershell Version 5 it will not....it just shows blank space.
someone had any solution to this?