Solved

Prevent browser session from starting

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
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 …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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