Run Edge and Hide the browser

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Post Reply
re1313ixk
Posts: 4
Last visit: Tue Sep 14, 2021 2:07 am
Has voted: 1 time

Run Edge and Hide the browser

Post by re1313ixk »

Hello,
To let user access to a specific web site in the background, we use IE11 as below. I'd like do same thing with Edge as IE11 will reach end of support, however, Edge seems not support ComObject.
How should I change them ?

$InternetExplorer = New-Object -comobject 'InternetExplorer.Application'
$InternetExplorer.navigate("<URL>")
$InternetExplorer.Visible = $true

jvierra
Posts: 14932
Last visit: Fri Sep 24, 2021 2:50 pm
Answers: 14
Has voted: 3 times
Been upvoted: 11 times

Re: Run Edge and Hide the browser

Post by jvierra »

You will need to post in an Edge forum as it is not doable using any of IE methods. Edge has a sort of API but I think Microsoft dropped hiding for security reasons.

Post in teh Edge Developer Forum as they should know.

User avatar
Alexander Riedel
Posts: 7767
Last visit: Fri Sep 24, 2021 2:30 pm
Answers: 6
Been upvoted: 11 times

Re: Run Edge and Hide the browser

Post by Alexander Riedel »

start microsoft-edge:http://www.cnn.com

You say you want to hide it, but you set visible to true...
Alexander Riedel
SAPIEN Technologies, Inc.

re1313ixk
Posts: 4
Last visit: Tue Sep 14, 2021 2:07 am
Has voted: 1 time

Re: Run Edge and Hide the browser

Post by re1313ixk »

Alexander Riedel wrote:
Wed Sep 08, 2021 12:56 pm
You say you want to hide it, but you set visible to true...

sorry, I copied wrong one. $false is correct one.

re1313ixk
Posts: 4
Last visit: Tue Sep 14, 2021 2:07 am
Has voted: 1 time

Re: Run Edge and Hide the browser

Post by re1313ixk »

jvierra wrote:
Wed Sep 08, 2021 12:29 pm
You will need to post in an Edge forum as it is not doable using any of IE methods. Edge has a sort of API but I think Microsoft dropped hiding for security reasons.

Post in teh Edge Developer Forum as they should know.
Thank you. I will post in an Edge forum.

Post Reply