G
Guest
I have a batch file on a Windows XP Pro workstation. It uses a mapped drive
to launch a process from the server. It will run successfully as a scheduled
task when a domain user is logged in. I want it to run as a scheduled task at
night when nobody is logged in to the machine. I have tried adding this line
at the beginning of the batch file:
net use u: \\servername\sharename /user:domainname\username password
The scheduled task launches but the batch file does not run. Is my syntax
incorrect, or is it not possible to run a batch file or map a drive when a
user is not logged on? I have set the scheduled task to run with
administrator credentials.
The application we are trying to run requires a drive letter, so UNC won't
work.
Perhaps there is another way to accomplish this? Scripting? Any help is
appreciated. Thanks.
to launch a process from the server. It will run successfully as a scheduled
task when a domain user is logged in. I want it to run as a scheduled task at
night when nobody is logged in to the machine. I have tried adding this line
at the beginning of the batch file:
net use u: \\servername\sharename /user:domainname\username password
The scheduled task launches but the batch file does not run. Is my syntax
incorrect, or is it not possible to run a batch file or map a drive when a
user is not logged on? I have set the scheduled task to run with
administrator credentials.
The application we are trying to run requires a drive letter, so UNC won't
work.
Perhaps there is another way to accomplish this? Scripting? Any help is
appreciated. Thanks.