|
Hello,
I am testing Remote Task Scheduler (jt.exe) to deploy application/patches. In this case I am trying to deploy the Mblast virus patch.
I use jt.exe to schedule a task on a user's computer which allows the script to run as a Admin. The script runs find and the patch gets installed.
However, when I use the MESSAGEBOX() function it does not display a message box for the current logged in user (if there is one). It will only display the message box if the current logged in user is the Admin account that scheduled the script. Does that make sense? I guess the when the Task Schedule run the script as admin_user, Windows NT creates a new shell for that admin_user and MessageBox get displayed in admin_user's shell and not the regular user that is logged in, shell.
Basically, I want to notify the user that is logged in to reboot there computer so the patch can take affect.
I tried to use the SENDMESSAGE() function however the Messenger Service is DISABLE on all the workstation. Is there a way to start a service by commandline if it is disabled? If this is possible I can enable the Messenger Service, Send a message, and disable it again.
Also, It would be nice to reboot the computer if no one is logged in. Does anyone know how to check if a user is logged in and reboot the computer if no one is logged in?
Any help would be great. Thanks.
|