Installation of KB3000850 on Win8.1 or WS2012R2 Causes PowerShell Script to Freeze with High CPU Utilization
Votes from Connect: 66
Original Date Submitted: 5/27/2015 8:46:16 AM
Description:
Contact Information
Handle: Frank E Lesniak
Site Name: PowerShell
Feedback ID: 1371736
Frequency: PowerShell
Regression: 1. Visit: https://gist.github.com/anonymous/572f42ba0ea7eec4f721#file-psclassreproreduced11-ps1
2. Click the "Raw" button. Copy the code to the clipboard
3. Open Notepad and paste the code from the clipboard. Save the file somewhere with file name: animal.ps1
(don't forget to change the file type to "All Files")
4. Execute the script using PowerShell.
Problem Description:
I have a stock PowerShell template that I use as a starting point for many scripts; its code is used throughout my organization. After patching a number of systems, I discovered that this known-good code has stopped working. A script that would normally take a brief moment to execute now hangs / freezes the PowerShell window with high CPU utilization.
After doing extensive testing, I have determined that installing KB3000850 consistently causes this bug to appear in Windows 8.1 or Windows Server 2012 R2.
I have taken the time to reduce the thousands of lines of template code down to simple code to reproduce the problem. The code to reproduce is still ~50 lines, but cutting out any additional code seems to break the ability to reproduce the problem.
Repro code:
https://gist.github.com/anonymous/572f42ba0ea7eec4f721#file-psclassreproreduced11-ps1
Impact of this is high; our automation is essentially dead in the water.
FYI: this issue is also occurring on Windows 10. See privately submitted Connect bug with ID 1122637.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 1371736 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1371736).
Repro Steps:
1. Visit: https://gist.github.com/anonymous/572f42ba0ea7eec4f721#file-psclassreproreduced11-ps1
2. Click the "Raw" button. Copy the code to the clipboard
3. Open Notepad and paste the code from the clipboard. Save the file somewhere with file name: animal.ps1
(don't forget to change the file type to "All Files")
4. Execute the script using PowerShell.
Expected Results:
The script should complete instantly with no output
Internal BugId: 14516
