Deploy Updates on Multiple Computers at Once
In this article
Rolling out an update to a handful of machines by hand is tedious; doing it for dozens or hundreds is impractical. This guide walks you through the core strategies for deploying updates to multiple computers simultaneously, from small-office scripts to enterprise-grade tools. You'll learn the preparation steps, the actual deployment methods, and how to avoid the common pitfalls that turn a routine patch into a helpdesk nightmare.
What You'll Need
- Administrator access on the target computers (local admin or domain admin).
- A list of the computers (IP addresses or hostnames) and their current OS/software versions.
- Network access from your management machine to all targets (firewall rules allowing the relevant ports).
- A staging environment with a few test machines that mirror your production setup.
- A backup or restore point for critical systems before major updates.
- Credentials with permission to install software (often a service account with delegated permissions).
- For larger fleets: a deployment tool (e.g., Microsoft Configuration Manager, Intune, PDQ Deploy, or Ansible) and a central repository for update files.
Step-by-Step
- Inventory your environment. Create a spreadsheet or CSV with each computer's hostname, IP address, operating system, architecture (x86/x64), and current application version. This is your deployment manifest.
- Test the update on a small pilot group. Pick 2–3 machines that are representative of your environment (different OS versions, different hardware). Install the update manually and verify that the software still works, the system boots, and no critical services fail.
- Prepare the update package. If you're using a tool, import the installer (e.g., .msi, .exe) into its package library. For manual scripts, place the installer in a shared network folder that all target computers can read (e.g., \\server\updates\patch.msi).
- Decide on the deployment method. Choose one based on your scale:
- Small network (under 10 PCs): Use a PowerShell script that runs remotely via WinRM or PsExec.
- Medium network (10–100 PCs): Use a free tool like PDQ Deploy (free tier) or a simple group policy that runs a startup script.
- Large enterprise: Use a management suite like Microsoft Configuration Manager (SCCM), Intune, or Ansible with a rolling deployment.
- Create a deployment script (if not using a GUI tool). For Windows, a basic PowerShell script might look like:
Copy-Item -Path "\\server\updates\patch.msi" -Destination "C:\temp\patch.msi" -Force Start-Process msiexec.exe -ArgumentList '/i', 'C:\temp\patch.msi', '/quiet', '/norestart' -Wait Remove-Item "C:\temp\patch.msi"
For Linux/macOS, use SSH with a command like:ssh user@host 'sudo apt-get update && sudo apt-get upgrade -y'(adjust for your package manager). - Run the deployment. If using a script, execute it against your list of computers. For example, in PowerShell:
Get-Content computers.txt | ForEach-Object { Invoke-Command -ComputerName $_ -FilePath .\deploy.ps1 }. If using a tool, schedule the deployment for a maintenance window. - Monitor progress. Watch the deployment console or script output for errors. Most tools provide a real-time status per computer (success, failed, pending).
- Verify the update. After the deployment, run a verification script that checks the installed version on each machine. For example, query the registry or use
Get-WmiObject Win32_Product(though slow) or check a file version. - Handle failures. For any computer that failed, review the error log, fix the cause (e.g., disk space, permissions), and re-run the deployment only for those machines.
- Document the rollout. Record the date, time, version deployed, and any issues encountered. This helps with future updates and audits.
Common Mistakes
- Skipping the pilot test. Deploying directly to all machines without testing almost guarantees at least one machine will break.
- Not accounting for different architectures. A 32-bit installer won't work on a 64-bit system, and vice versa. Always match the package to the OS.
- Ignoring dependencies. Some updates require a previous update or a specific .NET version. Check prerequisites before deploying.
- Using a shared folder without proper permissions. If the target machines can't read the network share, the install will fail. Ensure the 'Everyone' or a specific group has read access, or use a dedicated service account.
- Forgetting to reboot. Many updates require a restart. If you suppress the reboot, the update may not fully apply. Plan for reboots during off-hours.
- Deploying during business hours. This can disrupt users and cause data loss if applications are open. Always schedule during a maintenance window.
Tips
- Use a phased rollout. Instead of updating all computers at once, deploy to a small group, wait a day, then expand. This limits the blast radius of an unexpected issue.
- Automate with a configuration management tool. Tools like Ansible, Puppet, or Chef can declare the desired state and enforce it across all machines, making updates repeatable and self-healing.
- Create a golden image. For virtual desktops or lab machines, update the base image once and then redeploy the image to all machines. This is faster than updating each one individually.
- Use a local update repository. For Windows, WSUS (Windows Server Update Services) can cache updates locally, saving bandwidth and allowing you to approve updates centrally.
- Log everything. Enable verbose logging in your installer (e.g.,
/l*vfor MSI) so you have detailed logs if something goes wrong. - Set a timeout. In your script, add a timeout to avoid hanging on a machine that is offline or unresponsive.
Troubleshooting
- Some computers didn't receive the update. Check if they are online and reachable (ping, test WinRM/SSH). Verify that the machine is not in sleep mode or behind a firewall that blocks the management port.
- Installation fails with error 1603 (Windows). This is a generic MSI error. Check the installation log (if you enabled logging) for the specific cause. Common reasons: insufficient disk space, missing prerequisites, or a previous version not fully uninstalled.
- Script runs but update doesn't apply. The script may be running in a different context (e.g., 32-bit vs 64-bit PowerShell). Ensure you're using the correct PowerShell version (64-bit) and that the installer path is accessible.
- Computers are offline during the deployment. Most tools have a 'retry' option. Schedule a retry for the next maintenance window, or use a wake-on-LAN feature if supported.
- Update causes application to break. Roll back the update on the affected machines (uninstall the update or restore from backup). Re-evaluate your pilot testing to catch such issues earlier.
- Permission denied when accessing the network share. Check the share and NTFS permissions. The account running the deployment must have read access to the share and write access to the target machine's temp folder.
Frequently Asked Questions
Can I deploy updates to computers that are not on the same network?
Yes, but you'll need a cloud-based management tool like Microsoft Intune or a VPN that connects the remote machines to your management network. The same principles apply, but you must ensure the machines can reach the management server.
Is it safe to deploy updates automatically without user interaction?
Yes, if you've tested the update and you're using silent install flags. However, always schedule a reboot after the update to ensure the system is fully updated. Inform users beforehand if the update might affect their work.
What's the difference between a push and a pull deployment?
Push deployment means the management server sends the update to the clients (e.g., via SCCM). Pull deployment means clients check a central repository and download the update themselves (e.g., via WSUS or a script that runs on login). Pull is more scalable for large fleets.
How long should I wait between deploying to test and production groups?
A common practice is 24–48 hours. This gives you time to monitor for issues without delaying the rollout too much. For critical updates, you might shorten this to a few hours.
Can I use Group Policy to deploy software?
Yes, Group Policy Software Installation (GPSI) can deploy MSI packages to computers in an OU. It's a simple method, but it only works for MSI files and doesn't provide detailed reporting. It's best for small to medium environments.
What if I need to deploy to a mixed environment (Windows, macOS, Linux)?
Use a cross-platform tool like Ansible or Chef. They can manage all three operating systems with the same playbook/recipe. Alternatively, use separate tools for each OS and coordinate the rollout manually.