K
Kaizen90
Guest
Hi community.
I have a script that runs faster with the task scheduler than manually. I need to create a task that runs each 10 minutes and shows a notification about the computer will log off...
The script is working properly, but I do not what I should do to solve this trouble... I changed the priority in the task XML file and made another script to execute that script however the speed is around 20 times faster... I've created this task with the group policy and directly on the computer no one works...
this is the script:
@ ECHO OFF
SET TIME=120
:loop
cls
SET /A TIME=%TIME% -1
IF %TIME%==0 GOTO cierre
ECHO ********************************************
ECHO * *
ECHO * Computer will Logoff... *
ECHO * *
ECHO * Close the window to keep working *
ECHO * *
ECHO ********************************************
ECHO.
ECHO.
ECHO.
ECHO REMAINING TIME: %TIME%
ping localhost -n 2 > null
GOTO loop
:cerrar
ECHO The computer is logging off
GOTO cierre
:cierre
shutdown -l
:end
exit
More...
I have a script that runs faster with the task scheduler than manually. I need to create a task that runs each 10 minutes and shows a notification about the computer will log off...
The script is working properly, but I do not what I should do to solve this trouble... I changed the priority in the task XML file and made another script to execute that script however the speed is around 20 times faster... I've created this task with the group policy and directly on the computer no one works...
this is the script:
@ ECHO OFF
SET TIME=120
:loop
cls
SET /A TIME=%TIME% -1
IF %TIME%==0 GOTO cierre
ECHO ********************************************
ECHO * *
ECHO * Computer will Logoff... *
ECHO * *
ECHO * Close the window to keep working *
ECHO * *
ECHO ********************************************
ECHO.
ECHO.
ECHO.
ECHO REMAINING TIME: %TIME%
ping localhost -n 2 > null
GOTO loop
:cerrar
ECHO The computer is logging off
GOTO cierre
:cierre
shutdown -l
:end
exit
More...