在 PowerShell 中安装软件
在 PowerShell 中安装软件

在 PowerShell 中安装软件

下载腾讯会议并静默安装软件

Invoke-WebRequest -Uri 'https://updatecdn.meeting.qq.com/cos/390914479e76106f863d8089d0f11049/TencentMeeting_0300000000_3.15.6.407.publish.officialwebsite.exe' -OutFile 'D:\TencentMeeting_0300000000_3.15.6.407.publish.officialwebsite.exe'


Start-Process D:\TencentMeeting_0300000000_3.15.6.407.publish.officialwebsite.exe -ArgumentList '/S' -Wait

以下是在 PowerShell 中使用命令行安装 Microsoft Teams 的步骤:

1. 打开 PowerShell 终端。

2. 在 PowerShell 中输入以下命令并按 Enter 键运行:

Invoke-WebRequest "https://go.microsoft.com/fwlink/p/?LinkID=869428" -OutFile "$($env:TEMP)\Teams.msi"

这将下载 Teams 安装文件到您的计算机中的临时目录。

3. 等待下载完成后,在 PowerShell 中输入以下命令并按 Enter 键运行:

Start-Process msiexec.exe -Wait -ArgumentList '/I, "$($env:TEMP)\Teams.msi", /quiet'

这将在安静模式下安装 Teams 软件。等待安装完成即可。

请注意,此方法需要管理员权限才能执行,并且需要使用最新版本的 PowerShell。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

Title - Artist
0:00