Personal tools
Namespaces
Variants
Actions
In other languages

Scheduled Tasks Troubleshooting

From MailStore Help
Jump to: navigation, search

Automatic Cleanup of Scheduled Task Log Files

The easiest way to clean up the log files is using the forfiles command which is included in the Windows 2003 Server Resource Kit. In recent versions of Microsoft Windows, the forfiles command is included as a standard feature.

To delete all task logs older than seven days, create a batch file (e.g. clean_mailstore_tasklog.bat) with the following content:

 forfiles /P "C:\Documents and Settings\All Users\Application Data\MailStore\TaskLog" '
 /S /M *.log /D -7 /C "cmd /c del @file : date >=7_Days"

Depending on the environment, the path to the task log directory has to be modified. Then, you can create a new scheduled task executing the new batch file clean_mailstore_tasklog.bat daily, for example.

Automatic Creation of New File Groups

Especially for the reason of better performance and improved scalability of MailStore Server, it is possible to automatically create new file-groups. To set up a scheduled task for automatic file-group creation open the MailStore Server Management Shell and execute the following command:

 schedule filegroup-create-auto --basedir="C:\FileGroups"

Hint: The schedule command can always be used in MailStore Server's Management Shell to execute recurring tasks.

Error: A new scheduled task may not execute because the account information could not be determined

Problem: The following error message occurs when creating a new scheduled task: "The new task has been created but may not run because the account information could not be set."

Solution: This is caused by an error in the Microsoft Windows operating system. To solve this problem, please refer to article 246183 in Microsoft's knowledge base.