I have setup the script with the VPN trigger modification and installed through Intune. When I connect VPN the task is triggered but no drives are mapped and the log shows "Unable to access path '###########' verify permissions and authentication!". I can see in the log that it has the proper account for RunAs and I am using the $searchRoot variable. The very odd thing is if I run the task manually from Task Scheduler it maps the drives. Am I missing something obvious?
I have setup the script with the VPN trigger modification and installed through Intune. When I connect VPN the task is triggered but no drives are mapped and the log shows "Unable to access path '###########' verify permissions and authentication!". I can see in the log that it has the proper account for RunAs and I am using the $searchRoot variable. The very odd thing is if I run the task manually from Task Scheduler it maps the drives. Am I missing something obvious?