@macdsl The following will save the output of sysdiagnose to the current user's Desktop; will that meet your needs?
#!/bin/sh
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`
loggedInUserHome=`dscl . -read /Users/$loggedInUser | grep NFSHomeDirectory: | cut -c 19- | head -n 1`
timestamp=`date '+%Y-%m-%d-%H-%M-%S'`
/bin/echo "*** Gather Log Files to $loggedInUser's Desktop ***"
/bin/echo -ne '
' | /usr/bin/sysdiagnose -A $loggedInUser-system-wide-$timestamp -f $loggedInUserHome/Desktop
/bin/echo "Log Files saved to: $loggedInUserHome/Desktop/$loggedInUser-$timestamp.tar.gz"
message="Log Gathering Complete
Your computer logs have been saved
to your Desktop as:
$loggedInUser-system-wide-$timestamp.tar.gz
Please transfer the file to your support representative.
"
/usr/local/jamf/bin/jamf displayMessage -message "$message"
exit 0      ## Success
exit 1      ## Failure
                
     
                                    
            Apologies for not getting back sooner, for some reason when I changed jobs my JAMF Nation no longer sends me messages... My account looks correct, but my certification is gone, and it's not working right.. but that's another story......
There's not a way to turn on System Logging for an individual machine and have it display in the History Window for that machine? I see Policy logs, Application Usage logs, Computer Usage logs only tells me when it's started..
I'll try out your suggestion, which gets me the logs onto the users's desktop Maybe there's a way to use ARD to just copy it form the machine to mine?
PS. Thanks for your help on this, I do appreciate it!
                
     
                                    
            I did get it workable over ARD using:
sudo /Applications/Utilities/Console.app/Contents/MacOS/Console
And when I stop it in ARD, it closes on the remote computer. it would be AWESOME if I was able to get that to open in Console on my machine, but at least I can watch it, search it for info...
Thanks!
                
     
                                    
            I used a modified version of @CAJensen01 script in [https://www.jamf.com/jamf-nation/discussions/18971/stolen-mac-recovery-of-files](link URL)
 to create a Self Service button that uploads the logs to a share.
Now when I'm on a call or get an email for help I can ask them to provide the logs if needed.
                
     
                                    
            @dan-snelson I have trouble with the script implementation. The command doesn't work properly: 
/bin/echo -ne '
' | /usr/bin/sysdiagnose -A $loggedInUser-system-wide-$timestamp -f $loggedInUserHome/Desktop
The log file shows the next message:
Triggering sysdiagnose programmatically from CLI with incorrect arguments. Exiting.
I found some solution to it by using the Apple Script, but I am not so happy in this stuff.
A am using the script as an ongoing policy as a self-service item
                
     
                                    
            Here is my solution for it:
expect <<- DONE
  set timeout -1
  spawn sysdiagnose -f /Users/$currentUser/Desktop/
  # Look for  prompt
  expect "*?ontinue*"
  # send blank line (
) to make sure we get back to gui
  send -- "
"
  expect eof
DONE