Как удалить программу с помощью командной строки windows 10

Sign in to your How-To Geek account

Some apps installed on Windows 10.

If you’re using Windows 10 and need to free up some disk space, you can uninstall apps you no longer use straight from the Command Prompt. Here’s how it’s done.

First, you’ll have to run Command Prompt as an administrator to uninstall a program. In the Windows Search box, type «cmd» or «Command Prompt» then click «Run as Administrator» in the menu that appears.

Searching for "CMD" in the Start Menu search bar.

Command Prompt will now launch with administrator permissions. To uninstall a program using Command Prompt, you have to use the Windows Management Instrumentation Command-line (WMIC) software utility.

At the prompt, type the following command, and then press Enter:

wmic
WMIC command in Command Prompt.

You’ll see the wmic:root\cli> prompt in the console once you run the WMIC command. This means you can now use Windows Management Instrumentation (WMI) operations.

WMIC:root\cli> in the Command Prompt after the WMIC was entered. » src=»https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2023/08/root-cli.png»></p>
<div class= Картинка с сайта: www.howtogeek.com

Next, you’ll want a list of the programs installed on your computer. Getting this list is essential because you must provide an accurate product name to successfully execute the uninstall command.

Type the following command to get the list:

product get name

You can also run wmic commands directly from the standard command line, without running «wmic» and entering the WMIC prompt first. To do so, prepend them with «wmic.» For example, «wmic product get name» works the same as running «wmic,» and then «product get name.«

Some installed programs are listed in Command Prompt.

Find the name of the program you want to uninstall from the list. You can uninstall the program by running this command:

product where name="program name" call uninstall

Just replace program name with the name of the program you want to install. For example, if we want to uninstall the iTunes App, we would type this command:

product where name="iTunes" call uninstall
The uninstall command typed into the Command Prompt.

You’ll then be asked to confirm if you really want to execute the command. Type Y to confirm, and then press Enter. Type N to cancel the operation.

The Command Prompt requesting "Y" or "N" for user input.

After a few moments, you’ll receive a message telling you the method was successfully executed.

iTunes has successfully been uninstalled using WMIC.

The application has now been uninstalled from your computer.


This is just one of the many ways you can uninstall an application on Windows 10. You can also do so from the Control Panel, Start menu, or Settings window.

Last Updated :
17 Dec, 2024

Uninstalling programs through the Command Prompt (CMD) can be a powerful method, especially when you can’t access the standard Windows settings or need to automate the process. Whether you prefer using text-based commands or need a quick solution to remove software from your system, this guide will show you the steps to uninstall programs from Windows 10 and 11 using the Command Prompt.

Prerequisites:

Before proceeding with uninstalling software via CMD, ensure that you have:

  • Administrative privileges on your Windows PC.
  • Access to Command Prompt: You will need to run it as an administrator for successful uninstallation.

Method 1: Use winget Command Line Tool

If you installed the software using winget, it’s easy to uninstall it with the same tool.

Step 1: Open CMD as Administrator

Make a right-click on the Start button and choose Command Prompt (Admin).

cmd-as-admin

cmd as admin

Step 2: List Installed Applications

To view all installed applications, run:

winget list

For example: winget uninstall Google.Chrome

w11

winget list

Step 3: Run Command to uninstall the program

To uninstall an application, use the following command:

winget uninstall <software_name>
ww11

winget uninstall

For example: winget uninstall Google.Chrome

Method 2: Using Chocolatey

If you installed the software using Chocolatey, you can also use Chocolatey to uninstall it.

Step 1: Open CMD as Administrator

Right-click on Start and select Command Prompt (Admin).

cmd-as-admin

cmd as admin

Step 2: Uninstall the Software

Run the following command to uninstall the software:

choco uninstall <software_name>
q11

uninstall

For example: choco uninstall googlechrome (uninstall Google Chrome)

Method 3: Using WMIC

wmic (Windows Management Instrumentation Command-line) is a tool that allows you to manage various aspects of the Windows system, including software uninstallation.

Step 1: Open CMD as Administrator

Right-click on Start and select Command Prompt (Admin).

cmd-as-admin

admin

Step 2: Open the List of Installed Software

Run the following command to list installed software:

wmic product get name
q22

get name command

Step 3: Uninstall the desired program

To uninstall the software, run the following command:

wmic product where name="<software_name>" call uninstall
q33

wmic product

For example, to uninstall Google Chrome, run the following command:

wmic product where name="Google Chrome" call uninstall

Note: You can verify by checking if the software still appears in your list of installed programs.

Conclusion

Uninstalling software via CMD is a convenient and efficient way to remove unwanted programs, especially when traditional methods fail. By using WMIC, Winget or Chocolatey, you can take full control of the program removal process. Whether you’re managing your personal computer or administrating a network, mastering the use of CMD for uninstalling applications is a handy skill that can simplify your workflow.

Все способы:

  • Способ 1: «Командная строка»
  • Способ 2: Удаление вручную
  • Способ 3: Сторонние деинсталляторы
    • Вариант 1: IObit Uninstaller
    • Вариант 2: Geek Uninstaller
    • Вариант 3: Uninstall Tool
  • Вопросы и ответы: 0

Способ 1: «Командная строка»

Если программа не удаляется традиционным способом, то есть через приложение «Параметры» или классическую «Панель управления», можно попробовать воспользоваться «Командной строкой».

  1. Запустите «Командную строку» либо «Windows PowerShell» от имени администратора.
  2. Как принудительно удалять программы в Windows 10-1

  3. Выполните сначала команду wmic, а за ней команду product get name. Это выведет список установленных в системе программ и компонентов. Найдите в нем название программы, которую хотите удалить.
  4. Как принудительно удалять программы в Windows 10-2

  5. Сформируйте и выполните команду product where name="ProductName" call uninstall /nointeractive, где ProductName – полное имя удаляемого приложения или компонента.
  6. Как принудительно удалять программы в Windows 10-3

Удаление будет выполнено в тихом режиме. Если названия нужной вам программы в списке не окажется, что очень даже может быть, сделайте следующее.

  1. Откройте «Редактор реестра», для чего тут же в «PowerShell» выйдите из интерфейса wmic командой exit и выполните команду regedit.
  2. Как принудительно удалять программы в Windows 10-4

  3. В левой колонке редактора разверните ключ HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall — он содержит полный список установленных программ и компонентов. Отыщите подраздел с именем приложения, которое хотите удалить, и выделите его мышкой. При этом в правой колонке отобразится список параметров. Найдите параметр «UninstallString».
  4. Как принудительно удалять программы в Windows 10-5

  5. Кликните по нему дважды, чтобы открыть окошко редактирования, и скопируйте значение параметра.
  6. Как принудительно удалять программы в Windows 10-6

  7. Вернитесь в «PowerShell» и выполните команду cmd для перехода в интерфейс классической «Командной строки».
  8. Вставьте ранее скопированное в буфер значение параметра «UninstallString» и нажмите клавишу ввода. В результате должен запуститься процесс удаления программы.
  9. Как принудительно удалять программы в Windows 10-7

Способ 2: Удаление вручную

Если удалить приложение указанным выше способом не удалось, можно прибегнуть к радикальным мерам – удалению каталогов и записей реестра программы вручную. Делать это лучше в безопасном режиме или даже из-под LiveCD, чтобы исключить удержание файлов и каталогов системными процессами.

Читайте также: Инструкция по записи LiveCD на флешку

  1. Загрузите компьютер в безопасном режиме. Для этого командой msconfig в окошке «Выполнить» (оно открывается клавишами Win + R) откройте утилиту «Конфигурация системы».
  2. Как принудительно удалять программы в Windows 10-8

  3. Переключитесь на вкладку «Загрузка», отметьте флажком опцию «Безопасный режим» и нажмите «OK».
  4. Как принудительно удалять программы в Windows 10-9

  5. Зайдите в параметры папок и поиска, открыв «Проводник», переключившись на вкладку «Вид» и на панели выбрав «Параметры». При отсутствии таковой панели разверните ее, кликнув по иконке маленькой стрелочки вверх в правом верхнем углу.
  6. Как принудительно удалять программы в Windows 10-19

  7. Включите на вкладке «Вид» пункт «Показывать скрытые файлы, папки и диски» и снимите галочку с пункта «Скрывать защищенные системные файлы».
  8. Как принудительно удалять программы в Windows 10-10

  9. Перейдите в расположение C:\Program Files или C:\Program Files (x86), отыщите там папку с названием ненужной программы и удалите ее со всем ее содержимым.
  10. Как принудительно удалять программы в Windows 10-11

  11. Проверьте также следующие расположения:
    • C:\Users\USERNAME\AppData\Local\
    • C:\Users\USERNAME\AppData\Roaming
    • C:\ProgramData\Piriform
    • C:\ProgramData\Microsoft\Windows\Start Menu\Programs

    Удалите папки с именем программы, если таковые будут найдены. Не забудьте заменить USERNAME в путях вашим именем пользователя.

  12. Откройте штатный «Редактор реестра» командой regedit в окошке «Выполнить».
  13. Как принудительно удалять программы в Windows 10-12

  14. Выделите слово «Компьютер», чтобы поиск был по всему реестру. В меню «Правка» выберите опцию «Найти далее» или просто нажмите F3.
  15. Как принудительно удалять программы в Windows 10-13

  16. В открывшемся диалоговом окошке поиска введите название принудительно удаленной программы, снимите флажки со всех пунктов кроме «имена разделов» и нажмите «Найти далее».
  17. Как принудительно удалять программы в Windows 10-14

  18. Удалите все найденные ключи с именем приложения.
  19. Как принудительно удалять программы в Windows 10-15

Способ 3: Сторонние деинсталляторы

Более простым, удобным и эффективным способом принудительного удаления программ является использование специализированных приложений-деинсталляторов. С наиболее популярными решениями из этой категории вы можете познакомиться, перейдя по ссылке ниже, мы же выбрали несколько наиболее удобных.

Читайте также: Приложения для принудительного удаления программ

Вариант 1: IObit Uninstaller

IObit Uninstaller – простое и интуитивно понятное приложение, с помощью которого можно принудительно удалить любую стороннюю программу на компьютере вместе с остаточными файлами. Оно поставляется в двух версиях: бесплатная и PRO. Первой вполне достаточно для нашей задачи, а платная версия программы предусматривает встроенные функции антивируса. Также она пригодится, если нужно оптимизировать обновления инсталлированного ПО.

Скачать IObit Uninstaller

  1. Скачайте по ссылке выше приложение, затем запустите его. В разделе «Программы», выбранном на панели слева, отображается список всех установленных программ. Нажмите на «Все программы».
  2. как удалить неудаляемую программу в windows 10-01

  3. В центральной части окна найдите софт, который нужно удалить, затем кликните по иконке в виде мусорной корзины справа.
  4. как удалить неудаляемую программу в windows 10-02

  5. Может появиться уведомление с информацией о том, что с удаляемым приложений связаны и другие компоненты. Выберите вариант деинсталляции: только выбранной программы или удалить все.
  6. как удалить неудаляемую программу в windows 10-03

  7. Чтобы пакетно стереть софт, отметьте нужные пункты галочкой, затем нажмите на кнопку «Деинсталлировать» в верхнем правом углу.
  8. как удалить неудаляемую программу в windows 10-04

Особенность софта заключается в том, что, помимо сторонних программ, он способен очистить систему от предустановленных приложений без прав администратора. Кроме того, он полностью очищает ПК от реестровых записей, остаточных файлов и папок, а также создает точку восстановления Windows 10 и позволяет установить обновления для программ.

Вариант 2: Geek Uninstaller

Geek Uninstaller – еще один простой инструмент, предусматривающий возможность удаления сторонних и встроенных приложений с Windows 10. Интерфейс представляет собой одно окно со списком софта, а все действия совершаются через соответствующую вкладку на верхней панели. Платная версия позволяет выполнить пакетное удаление, а также она глубоко сканирует систему на наличие следов, которые оставлены сттраемым ПО.

Скачать Geek Uninstaller с официального сайта

  1. После скачивания запустите утилиту и отыщите то приложение, которое нужно удалить. Выделите его и нажмите на вкладку «Действие», где выберите пункт «Принудительное удаление».
  2. как удалить неудаляемую программу в windows 10-08

  3. В появившемся окне подтвердите действие, нажав на кнопку «Yes».
  4. как удалить неудаляемую программу в windows 10-09

  5. Утилита произведет поиск в системе на наличие реестровых записей и отобразит в дополнительном окне. Щелкните по кнопке «Удалить».
  6. как удалить неудаляемую программу в windows 10-10

Бесплатная версия Geek Uninstaller не предусматривает пакетное удаление, но при этом позволяет деинсталлировать системные средства Windows 10. Как и в предыдущем случае, лучше создавать точки восстановления, чтобы вернуть состояние системы, если после деинсталляции штатного приложения и очистки реестра возникли проблемы.

Вариант 3: Uninstall Tool

Еще один простое средство для удаления программ – это приложение Uninstall Tool, которое оснащено простым русскоязычным интерфейсом. Оно не перегружено лишними функциями, при этом справляется с поиском реестровых записей и файлов, оставленных удаленной программой. Чтобы полностью стереть софт, потребуется активированная версия Uninstall Tool.

Скачать Uninstall Tool

  1. Для работы вам понадобится активированная (платная) версия программы. Установите и запустите деинсталлятор.
  2. Найдите в списке проблемное приложение, кликните по нему правой кнопкой мыши и выберите из контекстного меню опцию «Принудительное удаление».
  3. Как принудительно удалять программы в Windows 10-15

  4. Подтвердите действие в открывшемся диалоговом окне.
  5. Как принудительно удалять программы в Windows 10-17

  6. Uninstall Tool выполнит анализ удаляемого приложения, найдет связанные с ним файлы и ключи реестра и предложит их удалить, на что дайте согласие.
  7. Как принудительно удалять программы в Windows 10-18

К слову, Uninstall Tool умеет удалять не только десктопные программы от сторонних разработчиков, но и некоторые системные компоненты Windows, а также предустановленные универсальные приложения, которые нельзя деинсталлировать через приложение «Параметры» и классический апплет «Установка и удаление программ».

Наша группа в TelegramПолезные советы и помощь

Categories

  • Transfer Programs from C Drive to D Drive
  • Transfer Installed Software to New PC
  • Transfer Files from Old PC to New PC
  • Transfer Microsoft Office
  • Find Office Product Key
  • Move User Folder
  • Move Google Chrome Bookmarks

Typically, unwanted programs are uninstalled using the Add or Remove Programs utility or the Settings app in Windows. However, uninstalling a program via Command Prompt (CMD) provides a more direct and efficient approach than conventional methods. EaseUS delves into uninstalling programs via CMD, offering users a comprehensive understanding of how to harness this potent tool for software removal. 

Better Alternative: Free Uninstaller to Force Uninstall a Program

Uninstalling programs through CMD offers a more direct approach, but sometimes, even the power of CMD can cause stubborn programs to resist traditional methods. In these cases, a dedicated uninstaller tool like EaseUS Todo PCTrans Free can streamline the uninstallation process, offering a powerful «Force Uninstall» feature that tackles even the most resistant programs. This feature removes the main program files and eliminates any leftover registry entries or hidden files that can clutter your system.

Step 1.  Launch EaseUS Todo PCTrans, click «More Tools». Choose App Management, Click «Start» to securely uninstall your apps and repair your damaged apps. 

open app management feature

Step 2. All of apps installed on your PC, choose the selected one you want to uninstall or repair. (If your uninstall process fails, you can click the small triangle icon and select «Delete».)

app management 2

Step 3. Click «Uninstall». (If you want to repair apps, click the icon right behind «Uninstall» and choose «Repair».)

app management 3

Key Features of EaseUS Todo PCTrans:

  • Uninstall Microsoft Edge from Windows 11
  • Backup and restore system and data
  • User state migration tool download
  • Relocate OS to SSD/HDD without reinstalling Windows
  • Uninstall Wuthering Waves on PC/Mobile devices

We highly recommend users try EaseUS Todo PCTrans for a hassle-free and efficient uninstallation experience.

How to Uninstall a Program Using CMD — Full Steps

To uninstall a program using CMD, we’ll utilize the Windows Management Instrumentation Command-line (WMIC) software utility. Follow the steps:

Step 1. Type «cmd»/»Command Prompt» in the Windows Search dialog, then select «Run as Administrator» from the menu that appears.

run-command-prompt

Step 2. In the Command Prompt windowstype «wmic» and press the Enter button.

wmic

Step 3. Now, getting a list of installed programs in Command Prompt is crucial. This ensures you have the accurate product name required for the uninstall command to work properly. Type «product get name» and press Enter button.

product-get-a-name

Step 4. Find the unwanted program you wish to uninstall in the list. Then, run the following command to uninstall it:

product where name=»program name» call uninstall

Change «program name» to the name of the program you want to remove. For example, to uninstall iTunes, use this command:

product where name=»iTunes» call uninstall

call-uninstall

Step 5. Confirm the command execution by typing when prompted, then press Enter.

y-to-confirm

Once the unwanted program is uninstalled, you’ll receive a confirmation message indicating «Method execution successful.» The application has been uninstalled from your computer.

Conclusion

It’s crucial to understand and learn the exact commands if you’re going to uninstall a program through Command Prompt, as it’s a command-line utility, so only one wrong command can lead to severe consequences. This guide simplifies the process, offering step-by-step instructions for a hassle-free experience.

However, a dedicated uninstaller tool like EaseUS Todo PCTrans can be invaluable for stubborn programs that resist traditional methods. We highly recommend users try this free tool for a seamless and efficient uninstallation experience, ultimately leading to a cleaner and more optimized system. Remember, a clean and uncluttered PC, free from unnecessary programs, is better. 

FAQs About How to Uninstall a Program Using CMD

Need more help uninstalling with CMD? Check out the FAQs below!

1. How do you force uninstalling a program through cmd?

While CMD doesn’t have a built-in «force uninstall» feature, some programs can resist traditional methods.  In these cases, software like EaseUS Todo PCTrans can force uninstall and tackle stubborn programs.

2. How do you uninstall a file using cmd?

While CMD is primarily for uninstalling programs, you can delete a single file using the following steps with caution (deleted files cannot be recovered):

  • Open Command Prompt as administrator (search for «cmd» and right-click «Run as administrator»).
  • Use the cd command to navigate to the directory containing the file (e.g., cd Documents to access your Documents folder).
  • Use the del «filename» command, replacing «filename» with the actual name of the file you want to delete (including quotation marks).

For example, to delete a file named «image.jpg» in your Documents folder, you would type:

del «image.jpg»

Remember, using CMD to delete files carries inherent risks. Make sure you’re confident about the file you’re deleting before proceeding.

3. How do you delete apps using the command line?

Follow the steps to delete apps using the command line:

  • Open Command Prompt as administrator (search «cmd» and right-click «Run as administrator»).
  • To get a list of installed programs in Command Prompt, type «product get name» and press the Enter key.
  • Run the command «product where name=»program name» call uninstall» to delete the unwanted app.
  • Change «program name» to the name of the program you want to uninstall or delete.
  • Confirm with «Y» and press Enter.

Introduction

A quality feature in the Windows family is to uninstall the program using a command prompt. We can also use this feature in Windows 10 to uninstall a program or an application using the command prompt (cmd).

Sometimes, we need to use extra space for some purpose, and to do so, we can uninstall unused applications. There are many ways to uninstall programs or applications and I believe you also know them. And, here I am not going to discuss those common methods. Here, I am showing you the «Windows Management Instrumentation Command Line» tool through the command prompt to uninstall the application.

First, we need to know some basic terminologies, such as what MSI-based programs or software (.MSI files), are. EXE (Executable) files and how are they different from each other.

This tutorial will show you the various steps to uninstall a program or an application in Windows 10 using the command prompt. This detailed article will cover the following topics. Let’s see.

  1. Introduction
  2. What are MSI Based Programs?
  3. Difference between MSI and EXE Based Programs
  4. Detailed steps to uninstall a program using the command prompt
  5. Conclusion

What are MSI Based Programs?

«Windows Installer (previously known as Microsoft Installer, codename Darwin) is a software component and application programming interface (API) of Microsoft Windows used for the installation, maintenance, and removal of software», as per Wikipedia.

What are? EXE (Executable) Files?

«An Executable code or file, or a program, sometimes simply referred to as an executable or binary, causes a computer «to perform indicated tasks according to encoded instructions», as opposed to a data file that must be interpreted by a program to be meaningful», as per Wikipedia.

An executable file, or .exe file, such as the widely called «setup.exe» file, is a file that executes an operating system application like Windows without the requirement for extra applications to execute its functions. As it is compiled from source code, it can not be interpreted like a text file, and it typically includes graphical elements for the Interface.

Difference between MSI and EXE Files

MSI is a Windows Installer (Microsoft Installer) File Extension that is a Microsoft Windows software component used to install, maintain, and uninstall an application or program. Whereas, EXE is a file extension of an executable file that executes the specified tasks according to encoded instructions and usually includes graphical elements for the interface.

The key difference between a .msi file and a .exe file is that, msi files are software components and API of Microsoft Windows used for the installation, maintenance, and removal of programs, whereas exe files can be used for both installing and executing application programs. MSI is a compressed package of installer files, with all the details needed to install, modify, and uninstall a specific program. Exe is a file extension to an executable file that includes lines of instructions or code that can be directly executed by the Operating System.

Detailed steps to uninstall a program using Command Prompt

Step 1. Open Command Prompt as an Administrator.

Step 2. Type «wmic» command and press the enter button to proceed.

Now, you will see a prompt like «wmic:root\cli>».

Prompt

Step 3. Type the command «product get the name» and press the enter button to get the list of all «MSI Based Programs».

Note. This command will only work on applications or programs that are recognized as MSI-based programs (installed using Windows Installer). So, you will only get a list of all «MSI Based Programs» installed on your system.

Step 4. Type the following command to uninstall the program you want. And, press the enter button to proceed.

product where name=» program name» call uninstall

For example

Here, I want to uninstall «VirtualDj 2018» using the command prompt. To do this, type «product where name=»VirtualDj 2018″ call uninstall», and press the enter button to proceed.

Step 5. Type «Y» to confirm uninstalling the program and press the enter button.

Once uninstalled, you will be given a return value of 0 and a «Method Execution Successful» in the form of a message. Congratulations, you have successfully uninstalled the application using the command prompt.

Conclusion

By following the above steps, you can uninstall a program in Windows 10 using the Command prompt.

To know more about various different tips and tricks of Windows 10, visit Windows 10 Tips and Tricks.

I hope you have enjoyed this article. Follow C# Corner to learn more new and amazing things about Windows 10.

Thanks for reading.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Не отображается значок защитник windows в трее на панели задач win 10
  • Как зайти в безопасный режим на windows 10 на ноутбуке через биос
  • Установить принтер canon l11121e на windows 10
  • Как работает активация windows через командную строку
  • Как отключить пароль на windows 10 pro при входе в систему