title: Document.IHTMLDocument3_getElementsByTagName not working properly
body: <p>I'm having such a hard time making this work out. Here is my problem.</p>
  
  <p>I have created a script that several people should use and it doesnt work for any of them. Just in my machine.</p>
  
  <p>So I thought it should be a library or something and decided to install visual studio 2015, just to test if it worked. And it did!</p>
  
  <p>Sadly, I had to remove it as my company has a limited amount of serials for visual studio, and it stopped working.</p>
  
  <p>I then decided to try to install several programs that came along with VS but no success. I installed Visual c++ from 2005 to 2015, .net 3.5, 4.5 , 4.6 and 4.7, and still no luck.</p>
  
  <p>What I'm missing? Can anyone help me out with this?</p>
  
  <p>Part of the code im using:</p>
  
  <pre><code>$IE = New-Object -ComObject InternetExplorer.Application -ErrorAction 0
  $URL = 'www.site.com'
  $IE.Visible = $true
  $IE.Navigate($URL)
  
  $ShellWindows = (New-Object -ComObject Shell.Application).Windows()
  $Tabs = $ShellWindows | Where-Object {$_.Name -eq "Internet Explorer"}
  
  $web = $tabs.Document.IHTMLDocument3_getElementsByTagName('Span')
  </code></pre>
  
  <p>And the error I'm getting:</p>
  
  <pre><code>Method invocation failed because [System.__ComObject] doesn't contain a method named 'IHTMLDocument3_getElementsByTagName'.
  At line:103 char:2
  +     $web = $tabs.Document.IHTMLDocument3_getElementsByTagName('Span')
  +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (IHTMLDocument3_getElementsByTagName:String) [], RuntimeException
      + FullyQualifiedErrorId : MethodNotFound
  </code></pre>