troubleshooting Question

How do I prevent a user closing the command window while a script is running?

Avatar of bigbaboon
bigbaboonFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Legacy OSMicrosoft Development
2 Comments1 Solution951 ViewsLast Modified:
I have a powershell script that runs as part of an unattended Vista build. It has a pretty long execution time. Getting build engineers to understand that the powershell window should not be closed halfway through script execution as the build has not "hung" can be tiresome. I am currently rectifying this problem by outputting progress to an IE window, displaying progress updates etc. but am wondering if there is a simple way when executing a script of preventing a user from closing the window? (Like turn the 'x' button of the window title bar grey color?)
Thanks.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros