25 lines
455 B
Batchfile
25 lines
455 B
Batchfile
@echo off
|
|
call C:\Scripts\wLocal\localENV.bat
|
|
@REM xxxxxxx
|
|
echo "%~n0: Start"
|
|
|
|
if "%check_computername%" EQU "RECEPTION1" (
|
|
set SHUTDOWN=0
|
|
)
|
|
|
|
if "%check_computername%" EQU "RECEPTION2" (
|
|
set SHUTDOWN=0
|
|
)
|
|
|
|
if "%check_computername%" EQU "LENNY" (
|
|
set SHUTDOWN=0
|
|
)
|
|
|
|
if [%SHUTDOWN%] == [0] (
|
|
echo "Not shutting down"
|
|
) else (
|
|
echo "shutting down"
|
|
call %TMESSAGE% '"%check_computername% shutting down"'
|
|
C:\Windows\System32\shutdown.exe /s /t 1
|
|
)
|