first commit
This commit is contained in:
24
local_Shutdown.bat
Normal file
24
local_Shutdown.bat
Normal file
@ -0,0 +1,24 @@
|
||||
@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
|
||||
)
|
||||
Reference in New Issue
Block a user