Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

  • You can mount a drive when starting Job Scheduler using net.exe.
  • This requires that the JobScheduler starts with administrator privileges.

...

  • Therefore it is

...

  • required that the JobScheduler service

...

  • is assigned an administrator account.

...

Assign the JobScheduler service an administrator account

  • After the installation the JobScheduler service

...

  • is assigned the local system account.
  • The name of the JobScheduler service is sos_scheduler_[schedulerId].
  • We assume in the following that the JobScheduler has the Id scheduler.
  • You can use the sc.exe to change the JobScheduler service account.
Code Block
 sc config sos_scheduler_scheduler obj= domain\domain-admin password= admin-password
  • The user domain\domain-admin must have the "log on as a service"

...

  • permission.

...

  •  Otherwise you

...

  • will receive the error 1069.
  • To add the permission for log

...

  • in as a service

...

Configure the JobScheduler

Please add some lines of code to the script function in the file config/scheduler.xml.
The JobScheduler without administrator privileges doesn't start when after you have added these lines.

Here

is the xmlThe more complete xml structure of scheduler.xml looks like this:

Code Block
 <?xml version="1.0" encoding="ISO-8859-1"?>
 
 <?xml-stylesheet type="text/xsl" href="scheduler_documentation.xsl"	?>
 <config mail_xslt_stylesheet="config/scheduler_mail.xsl"
        tcp_port="4139">
    
    <security ignore_unknown_hosts="yes">
        <allowed_host host="localhost"   level="all"/>
    </security>
    <process_classes>
        <process_class max_processes="30"/>
        <process_class max_processes="10" name="single"/>
    </process_classes>
    <script language="VBScript">
        <![CDATA[
 Sub spooler_init
 Dim ws, return_code, command
 
 command = "net.exe use j: \\tuvix\j"
 Set ws = CreateObject("Wscript.shell")
 return_code = ws.run( command, 0, 1 )
 Set ws = Nothing
 End Sub
        ]]>
    </script>
    <http_server>
      <http_directory path="${SCHEDULER_HOME}/" url_path="/scheduler_home/"/>
      <http_directory path="${SCHEDULER_DATA}/" url_path="/scheduler_data/"/>
    </http_server>
 </config>