aboutsummaryrefslogtreecommitdiff
path: root/driver-stop.bat
blob: 32c9bb833a2df40f8fe3c8cced7cc2b042fb11f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
set SCNAME=PastDSE

net session >nul 2>&1
if %ERRORLEVEL% EQU 0 (
	echo You are running this script as admin. Fine!
) else (
	echo ERROR: This script requires admin privileges!
	pause
	exit /b 1
)

echo ***************************
echo Service Name: %SCNAME%
echo ***************************

sc stop %SCNAME%
echo ***************************
sc delete %SCNAME%

REM fsutil usn deleteJournal /D C:
REM pause
timeout /t 3