Command Line / MSI / EXE
Deploy Windows MSI or EXE installers silently, collect installation logs, and verify results before a wider rollout.
Windows installers are available as MSI and EXE packages. Run an EXE directly; use msiexec.exe for an MSI. You can install from an elevated PowerShell session or a remote management tool with command-line access.
Prerequisites
The correct Standard or organization-specific Stealth installer from your portal. For a generic Stealth download, complete Stealth installer preparation first.
An elevated PowerShell session, or an administrator-controlled task running as SYSTEM.
Silent Install
EXE
$process = Start-Process -FilePath "C:\path\to\<installer-filename>.exe" -ArgumentList '--silent' -Wait -PassThru
$process.ExitCodeReplace C:\path\to\<installer-filename>.exe with the actual path and filename of your organization's EXE.
The current Standard and Stealth EXEs use --silent to suppress installer UI. They don't use the older /exenoui, /quiet, /qn, or /norestart EXE switches. Don't assume that silent installation eliminates any required restart. If you use the supplied Stealth helper, first correct the arguments in your reviewed local copy.
MSI
$process = Start-Process -FilePath "msiexec.exe" -ArgumentList '/i "C:\path\to\<installer-filename>.msi" /quiet /norestart' -Wait -PassThru
$process.ExitCodeReplace C:\path\to\<installer-filename>.msi with the actual path and filename of your organization's MSI.
These examples wait for the installer and display its result code. The current EXEs return 0 on success and nonzero on failure. For MSI, 0 is success and 3010 is success with a restart required; 1641 means a restart was initiated. Don't apply MSI return-code meanings to an EXE. Verify the installed version and reporting with Windows Installation Validation, rather than relying only on process completion.
Silent Uninstall (MSI only)
Silent Uninstall (All Apps and Config)
Download the Zen Cleanup utility from Deployment and Cleanup Utilities.
Run the EXE file via terminal with Administrator permissions.
Install with Logging (for Troubleshooting)
On an approved pilot computer, use one of these PowerShell commands to collect installation logs. Replace the installer path with the actual file:
EXE logging
The current EXEs use --log-file, not the MSI /l*v switch. Without an override, they normally write timestamped logs under %ProgramData%\zs-install\myzen-installer\logs for Standard or %ProgramData%\zs-install\zs-installer\logs for Stealth. If the log folder isn't writable, check the executing account's temporary folder.
MSI logging
The log is written to endpoint-install.log in the executing account's temporary folder. SYSTEM has a different temporary folder from the signed-in user. For centrally managed deployment, use an existing administrator-controlled log folder on the target computer and retain the full result code.
Installation logs can contain organization configuration and sensitive filenames. Remove license keys, credentials, and sensitive paths before sharing evidence with support. These commands perform installation; they aren't read-only validation.
For MSI switch details, see Microsoft's msiexec reference. The EXE examples above apply to the current installers; don't use legacy installer switches. Pilot the exact installer build and command before deployment; silent execution doesn't establish successful enrollment or reporting.
Use with remote tools
These commands work with any tool that provides remote command-line access:
Remote management tools with remote shell (for example,
ConnectWise,Datto, orNinjaRMM)PSExecfor remote execution across the networkSCCM task sequences
The command runs silently with no on-screen feedback. RMM tools may provide their own success/failure reporting.
Last updated
Was this helpful?