Scheduled task to map drive fails

Giganews Newsgroups
Subject: Scheduled task to map drive fails
Posted by:  Jamie Dawes (jamie_d8…
Date: Mon, 6 Mar 2006


I've created a scheduled task (Windows Server 2003 SP1 Standard) that maps a
drive and then creates a folder on the mapped drive. The following is the
batch file that it runs:

net use \\\d$ /USER:administrator password
MD \\\d$\folder1\

The problem is that the task doesn't complete - it just hangs as 'running'
and never maps the drive. The scheduled task is set to run under the SYSTEM
account. Is this the cause of my problems or can you run a scheduled task
under the SYSTEM account and still map drives on remote servers? The batch
file runs fine when I just double click on it.

Thanks - Jamie.