Scripts Thread, prevent powershell closing on error in Coding and Web Development; Hi,
I am trying to troubleshoot a powershell script. But it keeps closing when the error message is displayed so ...
12th June 2012, 09:36 AM #1
prevent powershell closing on error
I am trying to troubleshoot a powershell script. But it keeps closing when the error message is displayed so i cant see what the issue is.
Does anyone know how i can prevent this please?
12th June 2012, 09:48 AM #2
Open PowerShell (or the ISE) and then run the script from there. e.g.
Last edited by Arthur; 12th June 2012 at 09:50 AM.
12th June 2012, 09:53 AM #3
Or from Run you can try:
powershell -noexit C:\scripts\myscript.ps1
12th June 2012, 09:55 AM #4
why didnt i think of that!!
By AngryTechnician in forum General Chat
Last Post: 5th May 2011, 03:39 PM
By westy in forum Educational IT Jobs
Last Post: 18th March 2011, 11:20 AM
By srochford in forum *nix
Last Post: 14th March 2011, 03:08 PM
By cookie_monster in forum Thin Client and Virtual Machines
Last Post: 26th June 2009, 10:38 AM
By tarquel in forum Windows
Last Post: 13th March 2008, 05:39 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)