{"id":309,"date":"2010-03-31T20:45:49","date_gmt":"2010-04-01T01:45:49","guid":{"rendered":"http:\/\/jamesdevine.info\/?p=309"},"modified":"2021-07-01T12:26:58","modified_gmt":"2021-07-01T17:26:58","slug":"automate-website-visits-with-powershell-and-internet-explorer","status":"publish","type":"post","link":"https:\/\/jamesdevine.info\/index.php\/2010\/03\/automate-website-visits-with-powershell-and-internet-explorer\/","title":{"rendered":"Automate Website Visits With Powershell and Internet Explorer"},"content":{"rendered":"<p>For my research I found the need to automatically visit a webpage to run a setup and a teardown script. Turns out that it is fairly easy to do. The script is included below.<\/p>\n<pre>#cd to Internet Explorer<\/pre>\n<pre>cd \"C:\\Program Files\\Internet Explorer\"<\/pre>\n<pre>#point ie to the teardown script<\/pre>\n<pre>.\/iexplore.exe 10.0.0.20\/teardown.php<\/pre>\n<pre>#sleep for one second - this is needed so IE has a chance to start before it is killed<\/pre>\n<pre>sleep 1<\/pre>\n<pre>#kill the internet explorer process<\/pre>\n<pre>get-process iexplore | stop-process<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>For my research I found the need to automatically visit a webpage to run a setup and a teardown script. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1,19,38],"tags":[],"class_list":["post-309","post","type-post","status-publish","format-standard","hentry","category-general-information","category-windows","category-powershell"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":313,"url":"https:\/\/jamesdevine.info\/index.php\/2010\/04\/prompt-a-user-for-input-in-powershell\/","url_meta":{"origin":309,"position":0},"title":"Prompt a User for Input In Powershell","author":"James Devine","date":"April 5, 2010","format":false,"excerpt":"Occasionally it is necessary to prompt a user for input in a Powershell script. In my case I just need to remind the user to do something, but the same command can get the user input and store it in a variable. $input=read-host \"Hey user, enter some text!\" The text\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/jamesdevine.info\/index.php\/category\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":362,"url":"https:\/\/jamesdevine.info\/index.php\/2010\/05\/run-internet-explorer-7-on-vista-and-windows-7\/","url_meta":{"origin":309,"position":1},"title":"Run Internet Explorer 7 On Vista and Windows 7","author":"James Devine","date":"May 13, 2010","format":false,"excerpt":"I do a lot of web development and constantly switch back and forth between browers to make sure that sites look the same. Since I run Windows 7 my choice of what version of Internet Explorer I can use is limited to IE8. However it turns out that there is\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/jamesdevine.info\/index.php\/category\/general-information\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2010\/05\/ie7.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2010\/05\/ie7.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2010\/05\/ie7.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2010\/05\/ie7.jpg?resize=700%2C400 2x"},"classes":[]},{"id":306,"url":"https:\/\/jamesdevine.info\/index.php\/2010\/03\/background-jobs-in-powershell\/","url_meta":{"origin":309,"position":2},"title":"Background Jobs In Powershell","author":"James Devine","date":"March 16, 2010","format":false,"excerpt":"I have been doing a lot of powershell scripting for my senior thesis. I had the need to run a\u00a0background\u00a0job and did not find helpful information through searching Google so I figured I would post this. Powershell 2 support running scripts in the background with a simple command. The only\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/jamesdevine.info\/index.php\/category\/general-information\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":330,"url":"https:\/\/jamesdevine.info\/index.php\/2010\/05\/getting-hadoop-mapreduce-0-20-2-running-on-ubuntu\/","url_meta":{"origin":309,"position":3},"title":"Getting Hadoop MapReduce 0.20.2 Running On Ubuntu","author":"James Devine","date":"May 9, 2010","format":false,"excerpt":"I decided to setup a Hadoop cluster and write a MapReduce job \u00a0for my distrbuted systems final project. I had done this before with an earlier release and it was fairly straight forward. It turns out it is still straight forward with Hadoop 0.20.2, but the process is not well\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/jamesdevine.info\/index.php\/category\/general-information\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2010\/05\/network.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":282,"url":"https:\/\/jamesdevine.info\/index.php\/2009\/12\/windows-7-wont-sleep\/","url_meta":{"origin":309,"position":4},"title":"Windows 7 Won&#8217;t Sleep","author":"James Devine","date":"December 13, 2009","format":false,"excerpt":"Recently I have been having a problem with Windows 7 not being able to sleep. After digging around in the power settings I found the culprit - media sharing. Here is how to turn it off. Go the power settings in the control panel. Click on \"Change plan settings\" next\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/jamesdevine.info\/index.php\/category\/general-information\/"},"img":{"alt_text":"power_plan","src":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2009\/12\/power_plan.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2009\/12\/power_plan.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2009\/12\/power_plan.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":147,"url":"https:\/\/jamesdevine.info\/index.php\/2009\/03\/6-tips-to-stay-safe-on-the-internet\/","url_meta":{"origin":309,"position":5},"title":"6 Tips to Stay Safe on the Internet","author":"James Devine","date":"March 31, 2009","format":false,"excerpt":"1.) If you receive a suspicious email don't open it! If you get an email from a website that you do not have an account at just delete it. A lot of viruses and attacks will try to look like a legitimate message from a bank or other website like\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/jamesdevine.info\/index.php\/category\/general-information\/"},"img":{"alt_text":"real_link_name1","src":"https:\/\/i0.wp.com\/jamesdevine.info\/wp-content\/uploads\/2009\/03\/real_link_name1-300x216.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/posts\/309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":7,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/posts\/309\/revisions\/507"}],"wp:attachment":[{"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jamesdevine.info\/index.php\/wp-json\/wp\/v2\/tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}