Example script to defragment the c:, can this be run while the user is logged off?
We are starting to play around with scripting using KACE. We'd like to run a defrag script for our remaining XP machines and noticed there is a default one that comes with KACE. We want to schedule this to run once a week at night. We are able to execute it while we are logged in to the machine, but if we log off it doesn't look like it is running. We tried checking allow run while disconnected and allow run while logged off but it still fails. We checked the processes remotely on machines we ran this on via dameware and don't see defrag.exe running when logged off. We don't see any logs indicating defrag ran while logged off.
I'd like to know if this command simply can't execute while logged off, or if there is a setting in KACE preventing it. If it can't be run while logged off, does anyone know of another command that can?