一台已联网但没有任何浏览器的Windows电脑如何装上浏览器

一台已联网但没有任何浏览器的Windows电脑如何装上浏览器

如果一台 Windows 电脑已经联网,但没有安装任何浏览器,可以通过以下几种方法安装浏览器:

通过 PowerShell 命令安装使用Windows自带的PowerShell命令行工具下载并安装浏览器。在Windows的开始菜单中搜索PowerShell,右键点击它并选择“以管理员身份运行”,然后在PowerShell中输入以下命令来下载和安装Google Chrome浏览器:

Invoke-WebRequest -Uri "https://dl.google.com/chrome/install/standalone/enterprise/GoogleChromeStandaloneEnterprise64.msi" -OutFile "C:\ChromeStandaloneEnterprise64.msi"

Start-Process -FilePath "C:\Windows\System32\msiexec.exe" -ArgumentList "/i C:\ChromeStandaloneEnterprise64.msi /qn /norestart" -Wait

这个命令首先使用Invoke-WebRequest cmdlet下载Chrome浏览器的安装程序(msi文件),然后使用Start-Process cmdlet运行Windows Installer(msiexec.exe),安装Chrome浏览器。/i参数告诉Windows Installer要安装指定的msi文件,/qn参数指定安装过程应该是静默的,/norestart参数告诉Windows Installer不要重新启动计算机,即使需要。

如果想安装其他浏览器,只需替换上述命令中的URI和OutFile参数即可。例如,我们要下载火狐浏览器,可以使用下面的命令:

Invoke-WebRequest -Uri "https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=en-US" -OutFile "C:\FirefoxSetup.exe"

Start-Process -FilePath "C:\FirefoxSetup.exe" -ArgumentList "/S" -Wait

这里提醒大家,各浏览器的下载地址可能会发生变化,如果您尝试上面的命令时无法下载,可尝试更换其他浏览器URL。

使用其他电脑下载可以通过其他可访问互联网的电脑下载安装包,并将其传输到没有浏览器的Windows电脑上。然后,使用USB驱动器、网络共享或文件传输服务(如FTP或SFTP)来传输安装程序。

通过命令行安装如果您有管理员访问权限,可以使用Windows的命令行工具来下载和安装浏览器。打开命令提示符并使用以下命令下载Google Chrome浏览器:

powershell -Command "& {Invoke-WebRequest -Uri 'https://dl.google.com/chrome/install/standalone/85.0.4183.121/chrome_installer.exe' -OutFile 'C:\ChromeSetup.exe'; Start-Process -FilePath 'C:\ChromeSetup.exe' -ArgumentList '/silent', '/install' -Wait}"

如果想安装其他浏览器,只需替换上述命令中的URI和OutFile参数即可。例如,我们想下载和安装Firefox浏览器:

powershell -Command "& {Invoke-WebRequest -Uri 'https://download.mozilla.org/?product=firefox-latest-ssl&os=win64&lang=en-US' -OutFile 'C:\FirefoxSetup.exe'; Start-Process -FilePath 'C:\FirefoxSetup.exe' -ArgumentList '/S' -Wait}"

如果在运行命令行工具时,没有选择以管理员身份运行,会返回如下错误:

Invoke-WebRequest : 对路径“C:\FirefoxSetup.exe”的访问被拒绝。

所在位置 行:1 字符: 4

+ & {Invoke-WebRequest -Uri 'https://download.mozilla.org/?product=fire ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], UnauthorizedAccessException

+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Start-Process : 由于出现以下错误,无法运行此命令: 系统找不到指定的文件。。

所在位置 行:1 字符: 138

+ ... Setup.exe'; Start-Process -FilePath 'C:\FirefoxSetup.exe' -ArgumentLi ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidOperation: (:) [Start-Process],InvalidOperationException

+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand这里提醒大家,如果Windows电脑受到安全策略或防火墙的限制,可能需要进一步配置以允许下载和安装浏览器。

作者:牛奇网,本站文章均为辛苦原创,在此严正声明,本站内容严禁采集转载,面斥不雅请好自为之,本文网址:https://www.niuqi360.com/chrome/how-to-install-browser-without-browser/

相关推荐

thinkpad笔记本选型
365bet在线体育

thinkpad笔记本选型

📅 07-28 👁️ 6844
喝咖啡多久才见效(咖啡喝多久后生效)
365bet新手开户指南

喝咖啡多久才见效(咖啡喝多久后生效)

📅 07-19 👁️ 7697
二战时,步枪的枪托为什么基本都是木头做的?
365被限制了让提款

二战时,步枪的枪托为什么基本都是木头做的?

📅 07-07 👁️ 9641
你从哪里来?科学家揭示生命力顽强的蟑螂进化史
365bet在线体育

你从哪里来?科学家揭示生命力顽强的蟑螂进化史

📅 07-20 👁️ 2471
在Windows 11上恢复丢失的桌面图标的8种方法
365bet新手开户指南

在Windows 11上恢复丢失的桌面图标的8种方法

📅 07-07 👁️ 8288
蹇字的行书怎么写、蹇的行书书法
365bet在线体育

蹇字的行书怎么写、蹇的行书书法

📅 07-24 👁️ 3180