---
title: How to Silently Install Cycle on a Test Agent Using PowerShell
description: Cycle can be silently installed on your test agents without the need to launch and interact with the Cycle installer application. This is very useful for installing on test agents or other machines when interacting with a desktop installer is not convenient.
---

[Skip to content](https://kb.cyclelabs.io/how-to-silently-install-cycle-on-a-test-agent-using-powershell#main-content)

English - United States

Show submenu for translations

![](https://kb.cyclelabs.io/hs-fs/hubfs/main-lockup-color-Aug-11-2026-06-33-05-0386-PM.png?width=500&height=93&name=main-lockup-color-Aug-11-2026-06-33-05-0386-PM.png)

Open main navigation

Close main navigation

- English - United States
  
  Show submenu for translations
- [Get Support & Track Tickets](https://help.cyclelabs.io/)

[Get Support & Track Tickets](https://help.cyclelabs.io/?hsLang=en-us)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Cycle Knowledge Base](https://kb.cyclelabs.io/?hsLang=en-us)
2. [Getting started](https://kb.cyclelabs.io/getting-started?hsLang=en-us)

# How to Silently Install Cycle on a Test Agent Using PowerShell

## Cycle can be silently installed on your test agents without the need to launch and interact with the Cycle installer application. This is very useful for installing on test agents or other machines when interacting with a desktop installer is not convenient.

The PowerShell script below can be used to download and install the latest version of Cycle on a Windows based device.

 

This PowerShell script must be run in a shell with administrative access to successfully install Cycle.

 

\## Install Cycle 2.\* - latest

\# Import the BITS module  
Import-Module BitsTransfer

\# Declaring variables for Cycle 2.\* download and install.  
$CycleInstallURL = "\<a href="https://cyclelabs.io/get-cycle" "="" target="\_blank" rel="noopener noreferrer"\>https://cyclelabs.io/get-cycle"  
$cycleExecutable = "install-cycle.exe"  
$BlobDestination = "C:\\Temp\\$cycleExecutable"

\# Prep staging folder  
New-Item 'C:\\Temp' -ItemType directory -Force

\# Download Cycle 2.\* with BITS Transfer  
Write-Host "Downloading $CycleInstallURL"  
Start-BitsTransfer -Source $CycleInstallURL -Destination $BlobDestination -DisplayName "Cycle Installation"

\# Check if the file is downloaded  
if (-not (Test-Path $BlobDestination)) {  
    Write-Host "Error: Cycle installer not downloaded successfully. Exiting script."  
    exit 1  # Exit script with error code 1  
}

\# Install Cycle Automation silently  
$Installer = "C:\\Temp\\$cycleExecutable"  
Write-Host "Installing Cycle Automation"  
Start-Process -FilePath $Installer -Args "/S" -Verb RunAs -Wait  
Start-Sleep -Seconds 15  
Write-Host "Cycle Automation has been installed"

\# Set Cycle into path.  
$cycleHome = "C:\\Program Files (x86)\\CycleLabs\\Cycle\\"  
\[System.Environment\]::SetEnvironmentVariable("PATH", $Env:Path + ";${cycleHome}", "Machine")  
$Env:Path += ";${cycleHome}\\"  
Write-Host "Cycle folder added into path"

\# Remove Cycle installer to free up disk space  
Get-ChildItem "C:\\Temp" -Include \*.exe -Recurse | Remove-Item  
Write-Host "Cycle installer has been removed from C:\\Temp"

- [Getting started](https://kb.cyclelabs.io/getting-started?hsLang=en-us)
- [Using Cycle with BYWMS](https://kb.cyclelabs.io/using-cycle-with-bywms?hsLang=en-us)
- [Cycle Appliance and CI/CD](https://kb.cyclelabs.io/cycle-appliance-and-ci-cd?hsLang=en-us)
- [Tips and Tricks](https://kb.cyclelabs.io/tips-and-tricks?hsLang=en-us)
- [Native App](https://kb.cyclelabs.io/native-app?hsLang=en-us)
- [Deprecated Steps](https://kb.cyclelabs.io/deprecated-steps?hsLang=en-us)
- [Common Issues](https://kb.cyclelabs.io/common-issues?hsLang=en-us)

[![](https://kb.cyclelabs.io/hs-fs/hubfs/main-lockup-color-Aug-11-2026-06-33-05-0386-PM.png?width=500&height=93&name=main-lockup-color-Aug-11-2026-06-33-05-0386-PM.png)](http://cyclelabs.io)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, Cycle Labs