How to Distribute Task Scheduler Tasks to Multiple Users (217006)



The information in this article applies to:

  • Microsoft Internet Explorer 5.0 for Windows NT 4.0
  • Microsoft Internet Explorer 4.01 for Windows NT 4.0 SP 1
  • Microsoft Internet Explorer 4.01 for Windows NT 4.0 SP 2
  • Microsoft Internet Explorer 4.0 for Windows NT 4.0
  • Microsoft Internet Explorer 5.0 for Windows 98
  • Microsoft Internet Explorer 4.01 for Windows 98 SP 2
  • Microsoft Internet Explorer 5.0 for Windows 95
  • Microsoft Internet Explorer 4.01 for Windows 95 SP 1
  • Microsoft Internet Explorer 4.01 for Windows 95 SP 2
  • Microsoft Internet Explorer 4.0 for Windows 95
  • the operating system: Microsoft Windows 98

This article was previously published under Q217006

SUMMARY

This article describes how to distribute a Microsoft Task Scheduler task to multiple users participating on a network.

MORE INFORMATION

To distribute a Task Scheduler task to multiple users, follow these steps:
  1. Create a task in Task Scheduler. For information about how to do so, please see the following article in the Microsoft Knowledge Base:

    178706 How to Schedule a Program Using Task Scheduler

  2. Create a new folder on a computer running Microsoft Windows NT Server or Microsoft Windows NT Workstation, and give the appropriate users access to the folder.
  3. Copy the task into the shared folder. The task is located in the Windows\Tasks folder with a .job extension, where Windows is the folder in which Windows is installed.
  4. Create a batch file in the shared folder that copies the task from the shared folder to each client computer's Tasks folder. For example, the following batch file copies a Task Scheduler task to a client computer

    net use drive: \\server\folder
    copy drive:task.job %windir%\tasks
    net use drive: /delete /yes

    where drive is the drive letter you are mapping to the shared folder, server is the computer on which the shared folder is located, and folder is the shared folder name.

    NOTE: Using the %windir% variable ensures that the task is copied to the Tasks folder on a Windows NT-based computer.
  5. Create a shortcut to the batch file. Ensure that the shortcut's command line uses a Universal Naming Convention (UNC) path to the batch file. You can set any properties you want for the shortcut.
  6. E-mail the shortcut to the users who should install it. When the shortcut is double-clicked, the batch file runs and the task is copied to the local computer's Tasks folder.
NOTE: You can also use this procedure to remove tasks from a user's computer. The program being run by the task must be located in the same place on each client computer. This article assumes this is the case.

For additional information about how to determine which folder Windows is installed in, click the article number below to view the article in the Microsoft Knowledge Base:

305792 How to Determine Which Folder Windows Is Installed In


Modification Type:MajorLast Reviewed:12/6/2003
Keywords:kbenv kbhowto kbnetwork KB217006