Replace @NET session with @SFC 2>&1 | FIND /i "/SCANNOW" >NUL

Fixes #336
This commit is contained in:
Frank Denis 2018-04-09 15:38:00 +02:00
parent fbfa8f9aab
commit 37ebc1db0e
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
@NET session
@SFC 2>&1 | FIND /i "/SCANNOW" >NUL
@IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS

View File

@ -1,4 +1,4 @@
@NET session
@SFC 2>&1 | FIND /i "/SCANNOW" >NUL
@IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS

View File

@ -1,4 +1,4 @@
@NET session
@SFC 2>&1 | FIND /i "/SCANNOW" >NUL
@IF %ERRORLEVEL% NEQ 0 GOTO ELEVATE
@GOTO ADMINTASKS