1 of 1 people found this helpful
Does the program need adminstrattive rights in order to run? Are your users administrators?
The problem here is that the batch file gets run as localsystem and therefore the variable you are using won't work since it is the wrong username.
If you don't need admin rights or your users are admins, then on 8.8 you can set a task to run as the current user. try that.
If it needs admin rights but your users aren't admins, then do two tasks, one to install, and then another run as current user to copy across the file.
Mark Star - MarXtar LANDesk Enhancements
Home of Power State Notifier & Wake-On-WAN for LANDesk
The program does need administrative rights to run. I am testing both under an Admin account and as a User account. Same results.
Ill give that a try
On the Distrubution Package in the Install / Uninstall Options put
Then in the batch file instead of using %USERNAME% use %1 - Landesk will put the last logged in Username into the variable %1
Hope that helps