Is there a more up to date method to close in 1 of N tab in MS IE, or Edge?

Welcome Forums General PowerShell Q&A Is there a more up to date method to close in 1 of N tab in MS IE, or Edge?

Viewing 0 reply threads
  • Author
    Posts
    • #270661
      Participant
      Topics: 1
      Replies: 0
      Points: 13
      Rank: Member

      Powershell newbie here.  In the past I have been able to close 1 of N tabs in MS IE using the follow code.

      Now I need to do the same with Google’s Chrome.  Just changing the “-match” does not seem to work.  Some other forums seem to say the -ComObject method is deprecated without providing an example of what should replace it.

       

      Question 1) Is there a more up to date method to close in 1 of N tab in MS IE, or Edge?

      Question 2) Does the more up to date method work with Chrome too?

Viewing 0 reply threads
  • You must be logged in to reply to this topic.