用IE打开指定网址

虽然IE已经过时,微软已经不再支持IE,已经全面切换到了Edge,尽管edge人有ie兼容模式但是一些老的web应用仍然状况频出,但是IE 已经不能直接打开了。

于是只能周曲线了,可以通过powershell脚本来运行IE,具体如下。

 

$Url = "https://127.0.0.1/default.aspx" #更换为你要打开的web应用的网址

$IE = New-Object -com internetexplorer.application;
$IE.visible = $true;
$IE.navigate($url);

  

posted @ 2024-02-23 15:04  tec2019  阅读(38)  评论(0编辑  收藏  举报