Windows operating systems

Runasservice

The runasservice option forces the client command process to continue running, even if the account that started the client logs off.

Use this option with the AT command and the dsmc sched command when you schedule client command batch jobs. The runasservice option is not valid in any options file (dsm.opt or tsmasr.opt).

Important: Use the scheduler service when running Tivoli® Storage Manager services unattended. Set runasservice=yes only to schedule Tivoli Storage Manager commands using the Windows AT command. Setting runasservice=yes might interfere with other interactive uses of the Tivoli Storage Manager client.

Supported Clients

This option is valid for all Windows clients. The Tivoli Storage Manager client API does not support this option.

Syntax

Read syntax diagramSkip visual syntax diagram
                 .-No--.   
>>-RUNASSERVice--+-----+---------------------------------------><
                 '-Yes-'   

Parameters

No
Does not force the client command process to continue running, even if the account that started the client logs off. This is the default.
Yes
Forces the client command process to continue running, even if the account that started the client logs off.

Restrictions:

  1. When runasservice=yes, the setting for the REPLACE is always overridden to the behavior of replace=no.
  2. The option runasservice=yes cannot be used with passwordaccess=prompt.
  3. Backup, archive, restore and retrieve operations performed with runasservice=yes that encounter prompts always fail. To avoid this problem, either save the encryption key password with encryptkey=save, or turn off the runasservice option.

Examples

Command line:
-runasservice=yes

This option is valid only on the initial command line. It is not valid in interactive mode.