-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
64 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@echo off | ||
|
||
SET /P serverkey=Enter Server Key: | ||
SET /P gateway=Enter Gateway Address: | ||
|
||
goto check_Permissions | ||
|
||
:check_Permissions | ||
|
||
net session >nul 2>&1 | ||
if %ERRORLEVEL% == 0 ( | ||
|
||
|
||
echo Removing previous nMon Agent Service | ||
net stop "nMon Agent" | ||
%~dp0nodejs\node.exe %~dp0service.js --remove | ||
|
||
|
||
echo Configuring nMon Agent Service | ||
%~dp0nodejs\node.exe %~dp0service.js --add %serverkey% %gateway% | ||
|
||
echo Starting nMon Agent Service | ||
net start "nMon Agent" | ||
|
||
echo Done | ||
|
||
) else ( | ||
echo Failure: Administrative permissions required. | ||
echo Right click on this file and select "Run as administrator". | ||
) | ||
|
||
pause >nul |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@echo off | ||
|
||
goto check_Permissions | ||
|
||
:check_Permissions | ||
|
||
net session >nul 2>&1 | ||
if %ERRORLEVEL% == 0 ( | ||
|
||
echo Stopping nMon Agent Service | ||
net stop "nMon Agent" | ||
|
||
echo Removing nMon Agent Service | ||
%~dp0nodejs\node.exe %~dp0service.js --remove | ||
|
||
echo Done | ||
|
||
) else ( | ||
echo Failure: Administrative permissions required. | ||
echo Right click on this file and select "Run as administrator". | ||
) | ||
|
||
pause >nul |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters