I would like to close all open windows. This will not minimize the windows but the script will close all windows even if it is minimized. Is there a way to do this in a batch program or powershell?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
use this in powershell:
-note: this close
powershell consoleorisetoo and can’t end his job!this way only powershell windows is still alive but the last command in your script can be
note: this no affect tray icon minimized process.
EDIT:
to close ‘control panel’ on xp try this:
to close all explorer.exe windows: