• Home
  • Blog
  • Contact
  • About Us
     
No Result
View All Result
  • Home
  • Blog
  • Contact
  • About Us
No Result
View All Result
Tutorial
No Result
View All Result

How To Install Zoom Workplace Using PowerShell

Table of Contents

Purpose of the Script

  • Automatically download and install the latest version of Zoom Workplace.
  • Uses Microsoft’s Winget GitHub. repository to locate the official installer.
  • Performs a silent installation for all users.
# Define the GitHub API URL for the app manifests in winget-pkgs.
$apiUrl = "https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/z/Zoom/ZoomWorkplace"

# Fetch version folders then filter only version folders.
$header         = @{ "User-Agent" = "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" }
$versions       = Invoke-RestMethod -Uri $apiUrl -Headers $header
$versionFolders = $versions | Where-Object { $_.type -eq "dir" }

# Extract and sort version numbers to get the latest version.
$sortedVersions = $versionFolders | ForEach-Object { $_.name } | Sort-Object {[version]$_} -Descending -ErrorAction SilentlyContinue
$latestVersion  = $sortedVersions

Write-Host "Zoom Workplace version: $latestVersion."

# Get contents of the latest version folder to find the .installer.yaml file.
$latestApiUrl  = "$apiUrl/$latestVersion"
$latestFiles   = Invoke-RestMethod -Uri $latestApiUrl -Headers $header
$installerFile = $latestFiles | Where-Object { $_.Name -like "*.installer.yaml" }

# Download and parse YAML content to get the Url of the latest installer file.
$yamlUrl        = $installerFile.download_url
$yamlContent    = Invoke-RestMethod -Uri $yamlUrl -Headers @{ 'User-Agent' = 'PowerShell' }
$null           = ($yamlContent -join "`n") -match "InstallerUrl:\s+(http.*)"
$installerUrl   = $Matches[1]

Write-Host "Downloading installer from: $installerUrl"

# Download the latest installer to the temp folder.
$webClient = [System.Net.WebClient]::new()
$webClient.DownloadFile($installerUrl, "$env:TEMP\ZoomWorkplace-latest.exe")

# Start the install process.
& "$env:TEMP\ZoomWorkplace-latest.exe" /qn

# Delete the downloaded installer file.
Remove-Item -Path "$env:TEMP\ZoomWorkplace-latest.exe" -Force -ErrorAction SilentlyContinue

Write-Host "Zoom Workplace installation completed."

Step-by-Step Explanation

Below is a detailed explanation of what each part of the PowerShell script does. The script is designed to automatically install or update Zoom Workplace on Windows computers.

1. Define the API URL

$apiUrl = "https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/z/Zoom/ZoomWorkplace"
  • Points to the Zoom Workplace manifest folder in the winget-pkgs GitHub repository.
  • This folder contains subfolders for each version.

2. Get the list of available versions

$header         = @{ "User-Agent" = "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" }
$versions       = Invoke-RestMethod -Uri $apiUrl -Headers $header
$versionFolders = $versions | Where-Object { $_.type -eq "dir" }
  • Fetches all items in the folder (both files and folders).
  • Filters to only include directories, because each directory represents a Zoom Workplace version.
# Output
PS C:\> $versionFolders

name         : 6.4.12.64384
path         : manifests/z/Zoom/ZoomWorkplace/6.4.12.64384
sha          : 8a332171f8cff2c41f51a90be815181ca333e9a8
size         : 0
url          : https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/z/Zoom/ZoomWorkplace/6.4.12.64384?
               ref=master
html_url     : https://github.com/microsoft/winget-pkgs/tree/master/manifests/z/Zoom/ZoomWorkplace/6.4.12.64384
git_url      : https://api.github.com/repos/microsoft/winget-pkgs/git/trees/8a332171f8cff2c41f51a90be815181ca333e9a8
download_url :
type         : dir
_links       : @{self=https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/z/Zoom/ZoomWorkplace/6.4.12
               .64384?ref=master; git=https://api.github.com/repos/microsoft/winget-pkgs/git/trees/8a332171f8cff2c41f51
               a90be815181ca333e9a8;
               html=https://github.com/microsoft/winget-pkgs/tree/master/manifests/z/Zoom/ZoomWorkplace/6.4.12.64384}

3. Extract and sort versions

$sortedVersions = $versionFolders | ForEach-Object { $_.name } | Sort-Object {[version]$_} -Descending -ErrorAction SilentlyContinue
$latestVersion  = $sortedVersions
  • Extracts folder names (version numbers).
  • Sorts them as version objects (not strings) in descending order.
  • Picks the latest version (first in the sorted list).
# Output
PS C:\> $latestVersion
6.4.12.64384

4. Get the .installer.yaml file for the latest version

$latestApiUrl  = "$apiUrl/$latestVersion"
$latestFiles   = Invoke-RestMethod -Uri $latestApiUrl -Headers $header
$installerFile = $latestFiles | Where-Object { $_.Name -like "*.installer.yaml" }
  • Looks inside the latest version folder.
  • Finds the *.installer.yaml file, which contains metadata about the installer (URLs, architecture, etc.).
# Output
PS C:\> $installerFile

name         : Zoom.ZoomWorkplace.installer.yaml
path         : manifests/z/Zoom/ZoomWorkplace/6.4.12.64384/Zoom.ZoomWorkplace.installer.yaml
sha          : 2e95b8b7db68aceb8bb33075689999d035323bdb
size         : 588
url          : https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/z/Zoom/ZoomWorkplace/6.4.12.64384/
               Zoom.ZoomWorkplace.installer.yaml?ref=master
html_url     : https://github.com/microsoft/winget-pkgs/blob/master/manifests/z/Zoom/ZoomWorkplace/6.4.12.64384/Zoom.Zo
               omWorkplace.installer.yaml
git_url      : https://api.github.com/repos/microsoft/winget-pkgs/git/blobs/2e95b8b7db68aceb8bb33075689999d035323bdb
download_url : https://raw.githubusercontent.com/microsoft/winget-pkgs/master/manifests/z/Zoom/ZoomWorkplace/6.4.12.643
               84/Zoom.ZoomWorkplace.installer.yaml
type         : file
_links       : @{self=https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/z/Zoom/ZoomWorkplace/6.4.12
               .64384/Zoom.ZoomWorkplace.installer.yaml?ref=master; git=https://api.github.com/repos/microsoft/winget-p
               kgs/git/blobs/2e95b8b7db68aceb8bb33075689999d035323bdb; html=https://github.com/microsoft/winget-pkgs/bl
               ob/master/manifests/z/Zoom/ZoomWorkplace/6.4.12.64384/Zoom.ZoomWorkplace.installer.yaml}

5. Extract installer URLs from YAML to find the URL of the latest version

$yamlUrl        = $installerFile.download_url
$yamlContent    = Invoke-RestMethod -Uri $yamlUrl -Headers @{ 'User-Agent' = 'PowerShell' }
$null           = ($yamlContent -join "`n") -match "InstallerUrl:\s+(http.*)"
$installerUrl   = $Matches[1]
  • Downloads the YAML file as raw text.
  • Extracts all InstallerUrl entries using regular expressions.
  • Picks the URL using an index number.
# Output
PS C:\> $installerUrl
https://zoom.us/client/6.4.12.64384/ZoomInstallerFull.exe?archType=x64&ampDeviceId=114fae25-3982-45da-81de-cebe7e3b6e09&ampSessionId=1749314140765

6. Download the installer

$webClient = [System.Net.WebClient]::new()
$webClient.DownloadFile($installerUrl, "$env:TEMP\ZoomWorkplace-latest.exe")
  • Downloads the installer to the Windows temp folder ($Env:Temp)

7. Install Zoom Workplace silently

& "$env:TEMP\ZoomWorkplace-latest.exe" /qn
  • Runs the installer in silent mode, no user interaction.

8. Clean up the installer and notify to user

Remove-Item -Path "$env:TEMP\ZoomWorkplace-latest.exe" -Force -ErrorAction SilentlyContinue
Write-Host "Zoom Workplace installation completed."
  • Deletes the installer after installation to keep the system clean.
  • Outputs a message to confirm the installation status.

How to install using PowerShell

To install the app, simply open PowerShell as an administrator, copy the code snippets below, paste them into the PowerShell window, and press .

# Define the GitHub API URL for the app manifests in winget-pkgs.
$apiUrl = "https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/z/Zoom/ZoomWorkplace"

# Fetch version folders then filter only version folders.
$header         = @{ "User-Agent" = "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" }
$versions       = Invoke-RestMethod -Uri $apiUrl -Headers $header
$versionFolders = $versions | Where-Object { $_.type -eq "dir" }

# Extract and sort version numbers to get the latest version.
$sortedVersions = $versionFolders | ForEach-Object { $_.name } | Sort-Object {[version]$_} -Descending -ErrorAction SilentlyContinue
$latestVersion  = $sortedVersions

Write-Host "Zoom Workplace version: $latestVersion."

# Get contents of the latest version folder to find the .installer.yaml file.
$latestApiUrl  = "$apiUrl/$latestVersion"
$latestFiles   = Invoke-RestMethod -Uri $latestApiUrl -Headers $header
$installerFile = $latestFiles | Where-Object { $_.Name -like "*.installer.yaml" }

# Download and parse YAML content to get the Url of the latest installer file.
$yamlUrl        = $installerFile.download_url
$yamlContent    = Invoke-RestMethod -Uri $yamlUrl -Headers @{ 'User-Agent' = 'PowerShell' }
$null           = ($yamlContent -join "`n") -match "InstallerUrl:\s+(http.*)"
$installerUrl   = $Matches[1]

Write-Host "Downloading installer from: $installerUrl"

# Download the latest installer to the temp folder.
$webClient = [System.Net.WebClient]::new()
$webClient.DownloadFile($installerUrl, "$env:TEMP\ZoomWorkplace-latest.exe")

# Start the install process.
& "$env:TEMP\ZoomWorkplace-latest.exe" /qn

# Delete the downloaded installer file.
Remove-Item -Path "$env:TEMP\ZoomWorkplace-latest.exe" -Force -ErrorAction SilentlyContinue

Write-Host "Zoom Workplace installation completed."
E5mLT3UkiG2dYgWKavHEzyhE5

Installing using a PowerShell script

Alternatively, you can create a PowerShell script using the code snippet above. For instance, I’ve created and save a script at “C:\Scripts\install.ps1″.

TqBHojDIQrVvPhwE7pTTg5YGA

Next, open PowerShell (or Terminal) as an administrator and execute the PowerShell script using either the call operator or dot notation.

& "C:\Scripts\install.ps1"
# Output
PS C:\> & "C:\Scripts\install.ps1"
Zoom Workplace version: 6.4.12.64384.
Downloading installer from: https://zoom.us/client/6.4.12.64384/ZoomInstallerFull.exe?archType=x64&ampDeviceId=114fae25-3982-45da-81de-cebe7e3b6e09&ampSessionId=1749314140765
Zoom Workplace installation completed.

PowerShell execution policy

In some cases, when trying to run a PowerShell script from the PowerShell console, you received this error message: “File cannot be loaded because running scripts is disabled on this system” or “The file is not digitally signed. You cannot run this script on the current system“
YBgwuyfTm5aDhpkiPEWgPXj3u

Root cause: The Windows PowerShell execution policy is designed to block untrusted scripts from impacting your Windows client environment. These policies act as security settings that define the trust level for scripts executed in PowerShell. On client operating systems, the default execution policy is set to Restricted, which stops Windows PowerShell commands and scripts from running.

To fix the issue, adjust the execution policy by running the following command:

Set-ExecutionPolicy RemoteSigned

You’ll encounter a security risk warning. Enter “A” when prompted to continue.

PS C:\> Set-ExecutionPolicy RemoteSigned

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy 
might expose you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): A
PS C:\>
PS C:\> Get-ExecutionPolicy
RemoteSigned

Read more: Details about the PowerShell execution policy.

Use Cases

  • Automated software deployment
  • Scheduled automatic updates
  • Silent install for non-technical users
  • Alternative to winget or manual downloads
Previous Post

How To Install Zoom Using PowerShell

Next Post

How To Install Discord Using PowerShell

Related Posts

Komodo IDE

How To Install TeraCopy Using PowerShell

How To Silent Install kkkkk

How To Install Dropbox Using PowerShell

How To Install Opera Browser Using PowerShell

How To Install ScreenToGif Silently on Windows

Popular Apps

•  Google Chrome 

•  Mozilla Firefox

•  Zoom Workplace

•  VLC Media Player

•  Acrobat Reader

•  Foxit PDF Reader

• TeamViewer

  • Home
  • About Us
  • Contact
  • Disclaimers
  • Privacy Policy
  • Terms and Conditions
No Result
View All Result
  • Home
  • Blog
  • Contact
  • About Us