Cycle Domino Using Task Scheduler on Windows Server

Mindwatering Incorporated

Author: Tripp W Black

Created: 10/14 at 10:57 AM

 

Category:
Domino Upgrades / Installations
Software (Re)Configuration

Task:
Shutdown Domino server for backups or other maintenance, wait and then start back-up. For this example, we'll do it daily/nightly.

Prerequisite:
1. Open the Services list:
Start --> Windows Administrative Tools (start menu folder) --> Services (program)

2. Get the Service name:
a. Locate the HCL Domino Server service, right click, choose Properties.
b. Under the General tab, write down the service name. e.g. HCLDominoServer(HCLDominoData), for the tasks creation.


Create the Tasks:
1. Open Task Scheduler:
Start --> Windows Administrative Tools (start menu folder) --> Task Scheduler (program)
Task Scheduler (left menu twistie) --> Task Scheduler Library (folder twistie)

2. Create the new task to shutdown Domino:
Actions (right heading) --> Create Task ...

In the Create Task dialog:
- General (tab)
Name: Stop HCL Domino Server
Description: Stop Domino for maintenance tasks
Run whether user is logged on or not - radio button selected
Run with highest privileges - checkbox checked
Configure for: Windows Server 2019 (etc.)
- Triggers (tab)
Click New... (button)
Begin the task: On a schedule
Settings (heading): Daily
Start: Pick tomorrow Pick time (e.g. 05:00:01)
Recur every: 1 days
Enabled: checked (defaults to checked)
Click OK

- Actions (tab)
Click New... (button)
Action: Start a program
Settings (heading) -->
Program/script: NET
Add arguments: Stop "HCLDominoServer(HCLDominoData)"
Click OK

- Conditions (tab)
Check the following:
Under Power heading:
Start the task only if the computer is on AC Power: checked
- Stop if the computer switches to battery power: <doesn't matter - check or unchecked>

- Settings (tab)
Check/enable the following:
Allow task to be run on demand: checked
Stop the task if runs longer than: 1 hour
If the running task does not end when requested, force it to stop: checked

Click OK to save the new task.

3. Create the new task to start-up Domino:
Actions (right heading) --> Create Task ...

In the Create Task dialog:
- General (tab)
Name: Start HCL Domino Server
Description: Start-up Domino after maintenance tasks
Run whether user is logged on or not - radio button selected
Run with highest privileges - checkbox checked
Configure for: Windows Server 2019 (etc.)
- Triggers (tab)
Click New... (button)
Begin the task: On a schedule
Settings (heading): Daily
Start: Pick tomorrow Pick time (e.g. 06:00:01)
Recur every: 1 days
Enabled: checked (defaults to checked)
Click OK

- Actions (tab)
Click New... (button)
Action: Start a program
Settings (heading) -->
Program/script: NET
Add arguments: Start "HCLDominoServer(HCLDominoData)"
Click OK

- Conditions (tab)
Check the following:
Under Power heading:
Start the task only if the computer is on AC Power: checked
- Stop if the computer switches to battery power: <doesn't matter - check or unchecked>

- Settings (tab)
Check/enable the following:
Allow task to be run on demand: checked
Stop the task if runs longer than: 1 hour
If the running task does not end when requested, force it to stop: checked

Click OK to save the new task.

4. If desired, test both tasks:
- In the Task Scheduler program, locate the Stop HCL Domino Server, right-click, choose Run.
- - Check the HCL Domino console or the Services program and verify the service shuts-down.

- In the Task Scheduler program, Locate the Start HCL Domino Server, right-click, choose Run.
- - Check the HCL Domino console or the Services program and verify the service starts successfully.



previous page