Solved

Prevent browser session from starting

Posted on 2014-04-02
2
288 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
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…

691 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