Hi All,
I've created a short powershell script to check the following and send an email notification if any of these conditions are met:
- system rebooted in the last 'x' mins.
- zohoworkdrive background process is not running.
- Z: drive is not mapped or not accessible.
Here is the script with its extension changed to .txt for attachment compatibility: ZohoWorkDrive-Checks-NT-ps1.txt
This script runs perfectly fine from the command prompt, however, when I try to run it through the windows task scheduler, it seems to do something for exactly 2 minutes (which normally takes fraction of second from cmd), but doesn't end up sending any email notification.
Based on a similar issue (in title) brought up by another user in this forum and related answers, I even tried to use the following batch script in the task scheduler that calls PS script. No luck with this either.. ZohoWorkDrive-Checks-NT-bat.txt
I am using the admin login throughout, so permissions may not be the issue as well..
Any help is very much appreciated!
-NT