I am using powershell on Windows 8. I am using this line of code...
start-process -filepath "C:\Program Files\Internet Explorer\iexplore.exe" -argumentlist "-k http://localhost/"
...to start IE. This works, however, when the event is triggered multiple times, multiple instances of kiosk IE are opened. How can I maintain a single instance of kiosk IE, and later close it programmatically?
Thank you! :)
Would this work?
To stop the running instance you can do this:
EDIT: You can also combine the two to ensure IE is not running before you start your process and if it is, it will be stopped: