Solved

Prevent browser session from starting

Posted on 2014-04-02
2
282 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 18

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

Wish Marketing would stop bothering you?

Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

Join & Write a Comment

Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
This article will help you understand what HashTables are and how to use them in PowerShell.
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

707 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now