2nd chunk of `content/manuals/desktop/setup/install/enterprise-deployment/msi-install-and-configure.md`
b296b1c213837e60ed1d57ecabc8243bcad2ac75f116d0d30000000100000f8f
This section covers command line installations of Docker Desktop using PowerShell. It provides common installation commands that you can run. You can also add additional arguments which are outlined in [configuration options](#configuration-options).
When installing Docker Desktop, you can choose between interactive or non-interactive installations.
Interactive installations, without specifying `/quiet` or `/qn`, display the user interface and let you select your own properties.
When installing via the user interface it's possible to:
- Choose the destination folder
- Create a desktop shortcut
- Configure the Docker Desktop service startup type
- Disable Windows Containers
- Choose between the WSL or Hyper-V engine
Non-interactive installations are silent and any additional configuration must be passed as arguments.
### Common installation commands
> [!IMPORTANT]
>
> Admin rights are required to run any of the following commands.
#### Install interactively with verbose logging
```powershell
msiexec /i "DockerDesktop.msi" /L*V ".\msi.log"
```
#### Install interactively without verbose logging
```powershell
msiexec /i "DockerDesktop.msi"
```
#### Install non-interactively with verbose logging
```powershell
msiexec /i "DockerDesktop.msi" /L*V ".\msi.log" /quiet
```
#### Install non-interactively and suppressing reboots
```powershell
msiexec /i "DockerDesktop.msi" /L*V ".\msi.log" /quiet /norestart
```
#### Install non-interactively with admin settings
```powershell
msiexec /i "DockerDesktop.msi" /L*V ".\msi.log" /quiet /norestart ADMINSETTINGS="{"configurationFileVersion":2,"enhancedContainerIsolation":{"value":true,"locked":false}}" ALLOWEDORG="docker"
```
#### Install interactively and allow users to switch to Windows containers without admin rights
```powershell
msiexec /i "DockerDesktop.msi" /L*V ".\msi.log" /quiet /norestart ALLOWEDORG="docker" ALWAYSRUNSERVICE=1
```
#### Install with the passive display option
You can use the `/passive` display option instead of `/quiet` when you want to perform a non-interactive installation but show a progress dialog.
In passive mode the installer doesn't display any prompts or error messages to the user and the installation cannot be cancelled.
For example:
```powershell
msiexec /i "DockerDesktop.msi" /L*V ".\msi.log" /passive /norestart
```
> [!TIP]
>
> When creating a value that expects a JSON string:
>
> - The property expects a JSON formatted string
> - The string should be wrapped in double quotes
> - The string shouldn't contain any whitespace
> - Property names are expected to be in double quotes
### Common uninstall commands
When uninstalling Docker Desktop, you need to use the same `.msi` file that was originally used to install the application.
If you no longer have the original `.msi` file, you need to use the product code associated with the installation. To find the product code, run:
```powershell
Get-WmiObject Win32_Product | Select-Object IdentifyingNumber, Name | Where-Object {$_.Name -eq "Docker Desktop"}
```
It should return output similar to the following:
```text
IdentifyingNumber Name
----------------- ----
{10FC87E2-9145-4D7D-B493-2E99E8D8E103} Docker Desktop
```
> [!NOTE]
>
> This command may take some time, depending on the number of installed applications.
`IdentifyingNumber` is the applications product code and can be used to uninstall Docker Desktop. For example:
```powershell
msiexec /x {10FC87E2-9145-4D7D-B493-2E99E8D8E103} /L*V ".\msi.log" /quiet
```
#### Uninstall interactively with verbose logging
```powershell
msiexec /x "DockerDesktop.msi" /L*V ".\msi.log"
```
#### Uninstall interactively without verbose logging
```powershell
msiexec /x "DockerDesktop.msi"
```
#### Uninstall non-interactively with verbose logging
```powershell
msiexec /x "DockerDesktop.msi" /L*V ".\msi.log" /quiet
```
#### Uninstall non-interactively without verbose logging
```powershell