@ECHO OFF
REM =======================================================================================================
REM Copyright (C) 2023 Schneider Electric. All Rights Reserved.
REM V.1.0: New Release.
REM =======================================================================================================

REM Check whether this process has administrators right.
net session > NUL 2>&1
IF NOT %ERRORLEVEL% EQU 0 (
    ECHO Please run as adminiatrator.
    PAUSE
    EXIT
)

REM Set the security permissions on all files and folders inside the root folder and
REM subfolders by removing all inherited permissions and granting only admins full access
%systemroot%\System32\icacls.exe . /grant:r "Administrators":F /t
start %~dp0\I210\Winx64\nvmupdatew64e.exe -a %~dp0\I210\Winx64\
exit
