Im trying to deploy a sheduled task to defrag our users Win XP computers.
The task below runs manually, but on running through PDQDeploy it does not create the schedule as the logged on user.
I have tried entering the cld line below, and also putting it in a batch file and running it. Neither way allows me to create the task as the user.
schtasks /create /TN DEFRAG /SC Monthly /MO 1 /RU SYSTEM /TR "%windir%\system32\defrag.exe c:" >c:\defrag.txt
The log file tells me its created but I cannot see it as the user.
I guess its created as the admin user used to deploy the package.
Is there a way around this ?
Also, what is the best way to run batch files in PDQDeploy ? Convert to VBS ? Suggestions please.
Thanks a lot for your help.
Please sign in to leave a comment.