Description
In this video, we walk through how to install and uninstall the Tenable Nessus Agent on Windows using PowerShell for Tenable Vulnerability Management. Whether you are deploying locally or building a script for your remote deployment tool, this step-by-step guide covers the exact command-line syntax you need to get the job done efficiently.
We start by navigating the official documentation to find the correct msiexec removal commands and extracting the direct download URL right from the console's Curl menu. From there, I will show you how to use Invoke-WebRequest to silently download the MSI file directly into your Windows Temp folder. You will also learn how to execute the installer synchronously using the Start-Process wait command, which is crucial for preventing script sequence errors during deployment.
We also cover how to properly pass argument lists to msiexec, including quiet and norestart parameters, and how to troubleshoot common PowerShell syntax issues by using backticks to escape double quotes. Finally, we dive into an advanced method for locating the agent's software identifier directly in the Windows Registry so you can uninstall the software without even needing the original MSI file. Don't forget to like, subscribe, and check out the other videos in our Tenable series!