How to run make scripts run successfully on a virtual machine that is locked?
Hi,
I am running couple of scripts virtual machine remotely connected from my desktop.
I have schedular set up on that virtual machine. I am disconnecting from the virtual machine by running the bat file with command,
for /f "skip=1 tokens=3" %%s in ('query user %sguda%') do (
%windir%\System32\tscon.exe %%s /dest:console
)
So when I am working on desktop, the schedular on Virtual machine kicks in and scripts are run fine.
But when I lock my desktop also, the scripts fail running on disconnected Virtual Machine after a while like 20 mins.
Looks like they run fine immedietly or within 10 minutes of locking the desktop.
Is my VM getting logged off after a while? I don't understand where is the screen on VM at the time of running from that is attached on the screen shot .
It triggers schedular but gives error IE is invisible and and please lookat the screen shot attached on VM.
Please see the screen shot of log when both VM and Desktop locked.
ok, I contacted our Admin and learnt to run Task schedular with Administartors group and now the scripts run fine.
On Task Schedular under Security options, Change User or Group to Administrators.
Thanks a lot.