Solved

Prevent browser session from starting

Posted on 2014-04-02
2
284 Views
Last Modified: 2014-04-02
Hi Experts,

I've automated the installation of a workstation using SCCM. One of the applications that is installed during this process, automatically starts an IE browser session when it's done.

Is there a way to prevent the browser from starting? I tried to kill the process after it started using taskkill.exe in a script. It kills the proces, but when i start the browser after that, it generates the message that the browser hasn't been closed correctly the last time.

If i can't prevent it, is there a way to close the browser in a correct way?
0
Comment
Question by:SvenIA
2 Comments
 
LVL 19

Accepted Solution

by:
Raheman M. Abdul earned 500 total points
ID: 39971575
You can use this to close the browser

Get-Process iexplore | Foreach-Object { $_.CloseMainWindow() }

You can save it in a script and run after some time when that application is finished.
0
 
LVL 7

Author Closing Comment

by:SvenIA
ID: 39971752
Perfect!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question