I am using the JAMF Written "display message" script to display a security warning to my end Users. When I let the JAMF automated policy run, no matter what (I'd say 98.5% of the time) I seem to get the below:
/usr/sbin/jamf is version 8.62
Executing Policy Outlook Security Script Force...
Mounting smb://loujsslps01.humana.com/CasperShare to /Volumes/CasperShare...
Running script Microsoft Outlook alert Forced.sh...
Script exit code: 1
Script result: Displaying message to user...
36:758: execution error: An error of type -10810 has occurred. (-10810)
Unmounting file server...
As a work around I tried a variety of scenarios that all fail. I've copied the script to a JSS directory that I store certain local content on workstations for easier self service and have a policy that just calls that script file. I've also run the script directly from the policy both with a before and after execution. All fail.
If I run the script through Casper Remote or SSH into the box and run a JAMF Policy, it works. Has anyone else had something like this happen or can shed some light on that error code? It also works if I Casper Remote or SSH into the box and call the script that is stored locally.
As a note, the script is an acknowledgment message about clients private personal/financial detail and how send through a secure channel to others. I've tried to run the script forced in foreground to get the user to click the acceptance button (thinking it was some sort of timeout error). The only thing I did to the JAMF provided script other than adding my message was change the button from displaying "OK" to "I Understand" in the 'Don't modify below this section' but I don't see how that could be the cause.