We will soon be rolling out full disk encryption software to all laptops and our supplier have advised us to ensure all machines that require a defrag, are defragged. So with that in mind, we created a custom LANDesk script to, initially, defrag analyse each machine and pipe the logfile to a server share as follows:-
remexec0=defrag c: -a -v >\\server\share\%computername%.log
The defrag analysis works fine but the logfile is not created on the server share. We've checked NTFS permissions and also changed the command line to created the logfile locally (for testing purposes) but still the custom script will not create the logfile:-
remexec0=defrag c: -a -v >C:\%computername%.log
We have also manually run the command line in a cmd prompt running as the LocalSystem account to emulate a LANDesk script/package and it does work. So why does it not work within our LANDesk custom script please?