Looking for "On Break" event This topic contains 2 replies, has 2 voices, and was last updated by Micah Battin 5 months, 1 week ago.Viewing 3 posts - 1 through 3 (of 3 total)Author PostsApril 13, 2016 at 11:06 am #37681 Micah BattinParticipantI dont know if this exists or not, but im looking for an event that tells me when script execution has halted.The intended functionality is based on cleaning up a script, should a user stop code exection (ctrl+c). If there is an event that serves this in any capacity, I havent found it yet.Has anyone have any information around this?April 19, 2016 at 6:02 am #37980 Don JonesKeymasterNope. PowerShell's not really that event-driven in that way. There's some intercepting a compiled cmdlet (not a function) can do in certain pipeline situations, but that's all.April 19, 2016 at 6:34 am #37983 Micah BattinParticipantThanks Don!I will go back and take a second look at my approach. Appreciate the info.Author PostsViewing 3 posts - 1 through 3 (of 3 total)You must be logged in to reply to this topic.