You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
367 B

@echo off
cls
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )
:getPrivileges
echo You have no admin rights! You need to start your CMD in admin mode to uninstall the windows service
goto end
:gotPrivileges
net stop "AbpWindowsService"
taskkill /F /IM mmc.exe
sc delete "AbpWindowsService"
:end
pause