FN-GM Posted June 12, 2012 Posted June 12, 2012 Hi, 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? Thanks
Arthur Posted June 12, 2012 Posted June 12, 2012 (edited) Open PowerShell (or the ISE) and then run the script from there. e.g. http://i.imgur.com/D2wCI.png Edited June 12, 2012 by Arthur 1
ascott2 Posted June 12, 2012 Posted June 12, 2012 Or from Run you can try: powershell -noexit C:\scripts\myscript.ps1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now