Hi,
I am trying to Schedule the NAV11 LiveUpdate and Virus scan through script. NAV11 stores the scheduler settings in different plist for each user in /Library/LaunchDameons. I have created the below script which configures the scheduler settings for current user. But when pushing it through Casper Policy, the scheduler settings are only created for root user since Policy runs all the scripts as root user.
*#!/bin/sh* ** *## Schedule the LiveUpdate for Virus Definitions daily at 12:00 AM* ** */usr/bin/symsched LiveUpdate DailyDefinitionsUpdate 1 1 Daily 12:00 "Virus Definitions" -quiet* ** *echo "Product Update Scheduled"* ** *## Schedule the VirusScan weekly on Tuesday at 08:00 PM* ** */usr/bin/symsched VirusScan WeeklyScan 1 1 Weekly 2 20:00 -niceness 20 "/"* ** *echo "Weekly Scan Scheduled"* ** *exit 0*
I have gone through the JAMF article for passing the script parameter for current user($3) but I am unable to implement the parameter in script(I am a new learner).
Article:- http://jamfsoftware.com/kb/article.php?id=040
Kindly help me in running the script as current logged user when pushing via Policy.
P.S:- Policy is configured to trigger By "Login" and Execution Frequency is set as "Once Per User".
Thanks & Regards,
Karthikeyan M
* *