So you have created and tested your brand new System Manager workflow and are thinking.. now what? I mean obviously running a workflow manually for testing purposes is fine but for production, you are probably expecting there to be a special System Manager scheduler where you can now schedule this workflow to run automatically. Right? Wrong.
System Manager is a great tool but unfortunately there is no built in scheduler. However, luckily we have our trusty Windows Task Scheduler to help us schedule our new workflow. The process is pretty straight forward. Let’s say we have created a System Manager workflow named “My_Workflow.smw” in the folder C:\Workflows. The steps to automate this workflow are as follows:
- First, we will create a batch file that will call the command to execute the workflow. On the same machine as the workflow, open a text editor like notepad and add the following text: MASysMgr.exe -w C:\Workflows\My_Workflow.smw “UserName=Administrator” “Password=”
- Be sure to replace the workflow path and username/password with your appropriate values. Save the file as “My_Workflow.bat” or another name of your choosing. The file should look similar to below.
- Go to Control Panel->Administrative Tools->Task Scheduler
- Click “Create Basic Task…” from the menu on the right.
- Give the task a name and click next.
- Choose the frequency. For this example I will choose Daily.
- Enter the task start time. I will enter 9:00AM.
- Choose the option “Start a program”.
- Browse to the batch file we created in the first step. Also, I will usually populate the optional “Start in” text box with the same directory that my batch file is located. See my example below. My batch file is in the G:\temp folder so I enter that in the “Start in (optional)” field.
- Click next and then Finish. You should now see your new schedule appear in the list of scheduled tasks.
That’s it! Your new workflow will now run every day at 9:00AM!
Please leave comments below!