简体   繁体   中英

MS Edge: Powershell script to open three SEPARATE/independent MS Edge Windows (not tabs!)

I working on a network operations center type setup. On this particular PC, I have eight monitors. I have some software that will POSITION certain windows on certain monitors just after they launch. That's not my problem.

My problem is that each of the eight monitors needs to display a full screen instance of MS Edge. When I launch edge from a powershell script, each new launch of the application starts in a TAB of the FIRST instance of MS Edge instead of a completely independent window.

I'm using a powershell script like this as an example:

[system.Diagnostics.Process]::Start("msedge","https://something.com/somefile1.aspx")
[system.Diagnostics.Process]::Start("msedge","https://somethingelse.com/somefile2.aspx")

...however I'm open to using whatever powershell script syntax accomplishes my stated goal.

These open up in tabs instead of independent MS Edge application windows. Since this is in a NOC, I need to be able to script this independent of any windows user-specific settings - I need to be able to start the windows the same way regardless of which person is actually logging in.

Thanks in advance!

Use the --new-window switch

Start-Process -FilePath msedge -ArgumentList '--new-window www.google.com'
Start-Process -FilePath msedge -ArgumentList '--new-window www.bing.com'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM