Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » Various Msiexec.exe Command Line Switches
  • images 1 3
    Failed to create a new scheduled task name RemoteException: Cannot create the file when that file already exists Windows Server
  • Slide1 1
    Create Multiple Users with Passwords in Ubuntu Linux Linux
  • Featured image RAM requirement for PC
    How much RAM does your Windows PC really need? Windows
  • Change BitLocker Password in Windows
    How to Change BitLocker Password in Windows Security | Vulnerability Scans and Assessment
  • SOBR   implementing 3 2 1 Rule
    Achieve 3-2-1 rule with SOBR on Synology or OOTBI and Wasabi Backup
  • Compacting VHD
    How to Compact Virtual Hard Disks on VMware Virtualization
  • hero windowsserver hyperv
    Why does the legacy PXE not does work on Generation 2 VM Virtualization
  • xxxxxx
    How to move the Taskbar to a second screen in Windows Windows

Various Msiexec.exe Command Line Switches

Posted on 31/07/201902/06/2023 Christian By Christian No Comments on Various Msiexec.exe Command Line Switches
Various Msiexec.exe Command Line Switches

Msiexec.exe command line install options install, uninstall, administrative install, advertise a product) display options (full, basic or no UI during the installation restart options (if the machine will be restarted after the installation) logging options. Kindly refer to these guides on how to install Windows Package Manager (Winget CLI), how to install, upgrade and uninstall Chocolatey, how to install, upgrade and uninstall software with Chocolatey, and how to install Winget CLI. In this guide, you will learn about the various Msiexec.exe Command Line Switches.

The Windows Installer technology uses Msiexec.exe for installing MSI and MSP packages. This tool gives you full control over the installation process, allowing you to set various options and parameters as shown below.

Msiexec.exe Switch Examples

Here are some Msiexec.exe switch examples below. Please refer to this link for more parameters.

/quiet, /q, qn       Fully silent mode
/passive             Unattended mode, shows progress bar only.
/norestart           Do not restart the system after the installation
/forcerestart        Restart the system after installation is complete
/log, /l             Enable Logging

Please see the following related articles: How to install the Microsoft PSWindowsUpdate module silently, How to install and Update Azure PowerShell on your Windows PC, Various methods to launch the Event Viewer, Various Ansible Authentication Options, and Various methods on how to launch Windows Task Manager.

Silent Install Methods

Example: Silently install the MSI package:

msiexec /i C:setup.msi /qn

Silently install the msi package, no reboot

msiexec /i C:setup.msi /qn /norestart

Silently install the msi package and write the installation log to the file

C:msilog.txt
msiexec /i C:setup.msi /l*v C:msilog.txt /qn

Silent Uninstall Methods

Silently uninstall the msi package:

msiexec /x C:setup.msi /qn

Silently uninstall the msi package by the product code:

msiexec /x {XXXXXXXX-xxxxxxC6-01Fxxxxxxx1} /qn

I hope you found this blog post helpful on the various Msiexec.exe Command Line Switches. Please let me know in the comment session if you have any questions.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server

Post navigation

Previous Post: This installation package could not be opened: Verify that the package exists and that you can access it
Next Post: How to configure a console port password on Cisco Router

Related Posts

  • Add a second domain to your domain
    How to add a new Domain Controller to an Existing Domain Windows Server
  • 1 WeXxkEX0JG3oB781HD8Hrg
    Error 0x204: Unable to Connect to Remote PC [Part 1] Windows Server
  • vtpm 1
    Enable vTPM and BitLocker HyperV VM: Fix the device that cannot use a TPM module Virtualization
  • Install Microsoft PKI   ADCS
    Set up Microsoft PKI (ADCS) for SystoLOCK via PowerShell Windows Server
  • dfg
    DISM failed with error 0x800f081f: Source file could not be found Windows Server
  • EC2
    How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift

More Related Articles

Add a second domain to your domain How to add a new Domain Controller to an Existing Domain Windows Server
1 WeXxkEX0JG3oB781HD8Hrg Error 0x204: Unable to Connect to Remote PC [Part 1] Windows Server
vtpm 1 Enable vTPM and BitLocker HyperV VM: Fix the device that cannot use a TPM module Virtualization
Install Microsoft PKI   ADCS Set up Microsoft PKI (ADCS) for SystoLOCK via PowerShell Windows Server
dfg DISM failed with error 0x800f081f: Source file could not be found Windows Server
EC2 How to Add and Format a New Virtual Disk to an EC2 Instance AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • images 1 3
    Failed to create a new scheduled task name RemoteException: Cannot create the file when that file already exists Windows Server
  • Slide1 1
    Create Multiple Users with Passwords in Ubuntu Linux Linux
  • Featured image RAM requirement for PC
    How much RAM does your Windows PC really need? Windows
  • Change BitLocker Password in Windows
    How to Change BitLocker Password in Windows Security | Vulnerability Scans and Assessment
  • SOBR   implementing 3 2 1 Rule
    Achieve 3-2-1 rule with SOBR on Synology or OOTBI and Wasabi Backup
  • Compacting VHD
    How to Compact Virtual Hard Disks on VMware Virtualization
  • hero windowsserver hyperv
    Why does the legacy PXE not does work on Generation 2 VM Virtualization
  • xxxxxx
    How to move the Taskbar to a second screen in Windows Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.