The Net Use command will not run as a scheduled taks. I believe you have to
call that within the CMD command. I forget if it is with a /c or /k but it
should go something like:
cmd /c "net use \\server\share /user:domain\username <password>"
or
cmd /k "net use \\server\share /user:domain\username <password>"
"Ace Fekay [MCT]" <> wrote in message
news:%...
"Mel K." <> wrote in message
news:OXCN%...
>I don't understand, the account used in "run as" in the task itself
>requires
> a password. So how did you get the SYSTEM password? As far as I know,
> there
> is no way to get the SYSTEM password. You should create an account for
> this
> task, and use it in the scheduled task, not in the batch file since it's
> clear text in the batch file. You should set this up as Meinolf and I
> suggest because the way you are trying to do it is not the proper way to
> do
> it, for the reasons we mentioned.
>
I think he is saying after he created the batch file, then created the task
to run the batch file, in the task properties, he has set it to run it using
the System account, not the account name specified in the batch file itself,
nor a "RunAs".
In Tasks, I noticed since I've installed Google Earth, that there is a
GoogleUpdater task that was created by the installation. Looking in
properties, it uses the System account to run the task.
As for the OP, I think possibly that the System account may not be in the
resource's (shared drive) ACL when trying to map the drive in the batch
file:
net use \\server\drive /user:domain\user <password>
But I have no idea what the perms are in that share.
Now if I am wrong, I apologize, and maybe the OP can restate or elaborate on
the scenario.
--
Ace
This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.
Please reply back to the newsgroup or forum to benefit from collaboration
among responding engineers, and to help others benefit from your resolution.
Ace Fekay, MCT, MCSE, MCSA 2003 & 2000, MCSA Messaging
Microsoft Certified Trainer
http://twitter.com/acefekay
For urgent issues, you may want to contact Microsoft PSS directly. Please
check
http://support.microsoft.com for regional support phone numbers.