Free Power Tools Brochure
Get Mark Minasi's
17-page guide today!



      

advertisement

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

May 16, 2001 08:16 PM

Making a Script Work as a Scheduled Task

Rating: (0)
Windows IT Pro
InstantDoc ID #20769

I've built a script that works great until I run it as a scheduled task—then it fails. What's wrong?

You can use Windows 2000's or Windows NT 4.0's Task Scheduler to run commands and scripts at a scheduled time. Scripts that work fine when you run them interactively but fail when you schedule them typically do so for one of three reasons. First, the script might be running in a user context that doesn't have permissions to the resources the script is accessing. The Task Scheduler lets you specify a user account for each script. The old At or WinAt scheduler doesn't provide an easy way to specify a user account.

The...

ARTICLE TOOLS

You must be a paid Professional Member to access this entire article.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Monthly or Annual

Professional Membership

VIP Membership

Compare Member Benefits

Add a Comment

Does anybody know how to make a scheduled task via a script, i mean i want to run a vbs or any kind of script to schedule 4 tasks every day

DANIEL4/27/2004 4:28:54 AM


Please send some logon script

Syed12/20/2003 10:15:28 PM


Have been unable to map Network drives useing task scheduler from a termainal server to a window 2000 file server. I always get the following error in the log files created.:
"System error 85 has occurred. The local device name is already in use. "

The command used is as follows:
net use j: \\\\afserver\\datadrv /yes /persistent:no 2>c:\\errordrive.txt 1>c:\\testdrive1.txt

Either deleting the mapping manually through exporer, a interative batch file, or through the schedule prior to running the command under the schedular produces the same out put.

Can anyone help me?

Timothy Butterfield 10/7/2003 3:01:38 AM


You can use explorer to copy the Tasks. Explore to c:\\winnt\\tasks and you can drag and drop it to another mapped machine. Alternatively can copy the jobs using the copy command at a dos prompt. The jobs have the suffix .job and exist in the c:\\winnt\\tasks directory.

Raj Upadhyaya 4/24/2003 3:28:47 PM


Does anyone know how to export scheduled task from a windows 2000 server to another?

Ray Garcia 11/28/2001 10:01:52 AM


You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

Change Domain admin password

I would like to change my Domain admin password, it was setup long before I took over this position and is a pretty simple password. My concern is eve...222-96222

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

Podcasts

To successfully implement virtual desktops, IT administrators must carefully match user requirements to specific desktop technologies. Listen to this podcast to learn what you need to keep in mind when formulating your approach to desktop virtualization.

Downloads

PacketTrap IT is a comprehensive and affordable network management and application monitoring solution that solves problems associated with bandwidth, network and application performance, and connectivity. Gain insight into your network - try PacketTrapIT free for 21 days!

Web Seminars

Aside from its employees, data is an organization’s most important resource. Join Windows technical specialist and 11-time MVP John Savill to learn the best practices for managing data using features in Windows Server.
View this web seminar on demand!

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.