Anything for sysadmins!


Pausing PowerShell

Ever wondered how to use the pause function of DOS in PowerShell. Look no more. Here’s the script to do this:

[Powershell]Write-Host “Press any key to continue …”

$x = $host.UI.RawUI.ReadKey(“NoEcho,IncludeKeyDown”)[/PowerShell]

More info here:

Be Sociable, Share!

Posted by Mischa Oudhof

Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.