Please feel free to provide feedback or file bugs here.

Provide a true "pause" function in PowerShell that works both in PowerShell console and PowerShell ISE

Votes from Connect: 4

Original Date Submitted: 10/24/2015 12:51:25 AM

Description:
********Contact Information********
Handle: vs2015junkie
Site Name: PowerShell
Feedback ID: 1934336
***************************************

Problem Description:
The current method for pausing a PowerShell script requires the following code:

$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

The problem with this is that this functionality does not work when running PowerShell scripts from within PowerShell ISE.

However, as most PowerShell developers frequently work in the PowerShell ISE, this severely limits the usability of the PowerShell ISE since not all functionality is provided the same in the PowerShell ISE as in the normal PowerShell console.

Therefore, Microsoft should simply provide a true "pause" PowerShell function that works just as well in the PowerShell Console as in the PowerShell ISE.

Product Studio item created by Connect Synchronizer due to creation of feedback ID 1934336 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=1934336).

Repro Steps:

Internal BugId: 15915

5 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    AdminJoey Aiello [MSFT] (Program Manager, Windows Server) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base