Hi, Currently there are several VMs installed with third-party software (7zip) which is not been upgraded, I am seeking help to build an automation pipeline to upgrade them all at once.
I need Powershell or bash script.
Appreciate your company.
Hi, Currently there are several VMs installed with third-party software (7zip) which is not been upgraded, I am seeking help to build an automation pipeline to upgrade them all at once.
I need Powershell or bash script.
Appreciate your company.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amira BedhiafiPosted Jan 14, 2025, 1:06 PM
If you are familiar with PowerShell you can use a script that connects to each VM, checks the installed version of 7zip, and upgrades it if necessary.
This is an example I didn't test it but you can check it :
If you're familiar with Ansible, you can automate the upgrade of 7zip across multiple VMs (Windows and Linux) using a simple playbook since it provides a consistent way to manage automation tasks across environments.
If you already use System Center Configuration Manager (SCCM) to manage your Windows environments, you can automate software upgrades like 7zip directly from SCCM.
Links to help you ;
Installing or updating 7-Zip using PowerShell - Perplexity
GitHub - msmak1990/auto-install-7Zip: PowerShell script to install silently 7-Zip binary (Windows 10 + PS ver5.1.x) by getting latest version from its site. All done by automated way.
Running PS Scripts Against Multiple Computers - Automation Admin
How to Automate KB5040434 Installation on Multiple VMs? | Microsoft Community Hub