Скрипты AntiHPSoft

Moxito

Пользователь
Сообщения
423
Реакции
48
Баллы
43
Hi!

This script allows you to delete all Pre-Installed HP Soft.
The author is not responsible for anything.

Author: Moxito


Здравствуй!
Этот скрипт позволит удалить предустановленные программы от HP.
Автор не несет ответственности ни за что.

Автор: Moxito

CMD/BATCH:
@echo off
chcp 866>nul
set "ver=1.0"
title AntiHPSoft %ver% by Moxito
echo AntiHPSoft %ver% by Moxito
echo.
echo WARNING! THE AUTHOR IS NOT RESPONSIBLE FOR ANYTHING!
echo This script allows you to delete all HP Pre-Installed Soft.
echo.
echo Starting deleting Pre-Installed Soft at 3 seconds...
timeout /t 3 /nobreak>nul
echo.
echo Deleting HP Audio Switch...
echo Stopping "MicTray.exe"...
taskkill /f /im "MicTray.exe">nul 2>&1
if %errorlevel% EQU 0 (
    echo "MicTray.exe" stopped
) else (
    echo "MicTray.exe" NOT stopped
)
echo Stopping "MicTray64.exe"...
taskkill /f /im "MicTray64.exe">nul 2>&1
if %errorlevel% EQU 0 (
    echo "MicTray64.exe" stopped
) else (
    echo "MicTray64.exe" NOT stopped
)
echo Deleting "MicTray.exe"...
del /q /s "%windir%\System32\MicTray.exe">nul 2>&1
if %errorlevel% EQU 0 (
    echo "MicTray.exe" deleted
) else (
    echo "MicTray.exe" NOT deleted
)
echo Deleting "MicTray64.exe"...
del /q /s "%windir%\System32\MicTray64.exe">nul 2>&1
if %errorlevel% EQU 0 (
    echo "MicTray64.exe" deleted
) else (
    echo "MicTray64.exe" NOT deleted
)
echo Deleting log...
del /q /s "%systemdrive%\Users\Public\MicTray.log">nul 2>&1
if %errorlevel% EQU 0 (
    echo Log deleted
) else (
    echo Log NOT deleted
)
echo Deleting "HP Audio Switch"...
wmic product where name="HP Audio Switch" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP Audio Switch" deleted
) else (
    echo "HP Audio Switch" NOT deleted
)
echo Deleting "HP JumpStart"...
wmic product where name="HP JumpStart" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP JumpStart" deleted
) else (
    echo "HP JumpStart" NOT deleted
)
echo Deleting "HP JumpStart Bridge"...
wmic product where name="HP JumpStart Bridge" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP JumpStart Bridge" deleted
) else (
    echo "HP JumpStart Bridge" NOT deleted
)
echo Deleting "HP JumpStart Launch"...
wmic product where name="HP JumpStart Launch" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP JumpStart Launch" deleted
) else (
    echo "HP JumpStart Launch" NOT deleted
)
echo Deleting "HP Registration Service"...
wmic product where name="HP Registration Service" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP Registration Service Launch" deleted
) else (
    echo "HP Registration Service Launch" NOT deleted
)
echo Deleting "HP Registration Service"...
wmic product where name="HP Registration Service" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP Registration Service Launch" deleted
) else (
    echo "HP Registration Service Launch" NOT deleted
)
echo Deleting "HP Support Assistant"...
wmic product where name="HP Support Assistant" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP Support Assistant" deleted
) else (
    echo "HP Support Assistant" NOT deleted
)
echo Deleting "HP LOUNGE"...
wmic product where name="HP LOUNGE" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP LOUNGE" deleted
) else (
    echo "HP LOUNGE" NOT deleted
)
echo Deleting "HP Sure Connect"...
wmic product where name="HP Sure Connect" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP Sure Connect" deleted
) else (
    echo "HP Sure Connect" NOT deleted
)
echo Deleting "HP Connection Manager"...
wmic product where name="HP Connection Manager" call uninstall /nointeractive>nul
if %errorlevel% EQU 0 (
    echo "HP Connection Manager" deleted
) else (
    echo "HP Connection Manager" NOT deleted
)
echo.
echo All programs deleted. Other programs you can delete manually.
echo Press any key on keyboard to exit.
pause>nul
exit /b 0
 

Вложения

Последнее редактирование модератором:

Кирилл

Команда форума
Администратор
Сообщения
13,821
Реакции
6,166
Баллы
913
А исходный код?
 

akok

Команда форума
Администратор
Сообщения
17,698
Реакции
13,493
Баллы
2,203
Добавил в шапку.
 

Dragokas

Very kind Developer
Команда форума
Супер-Модератор
Разработчик
Клуб переводчиков
Сообщения
6,132
Реакции
5,907
Баллы
648
Гут. Хотя, код можно было сократить раз в 10 через call или for
 
Сверху Снизу