2

Let's say I run this cmdelt :

C:\> Get-EventLog Application

This cmdlet takes forever showing events and never stops, is there a certain command or something I can type to stop it and return to my C:\> ?

4

2 回答 2

5

This depends on the environment you are working in.

Ctrl + C works in the PowerShell console and ISE. I use the PowerGUI script editor and to achieve the same I use Shift + F5.

于 2014-07-23T05:06:56.570 回答
2

Hit Ctrl + C to break the cmdlet in process, returning you to the C: prompt.

Ctrl + C
于 2014-07-23T04:21:56.157 回答