K
K
Kenny002020-11-24 18:24:06
NAS
Kenny00, 2020-11-24 18:24:06

Why are network drives not mounted under the windows task scheduler?

The task is to execute a script on a network drive under the Windows Task Scheduler, non-interactively, without users on the machine.
Network drives are not mounted, and, accordingly, the script cannot be executed from the disk.

net use w: \\192.168.10.50\work\BASE
Start /Wait /b w:\scripts\Check-Data-Base.bat
net use w: /delete


Works great interactively, but here's how "cron" fails.
What could be the problem, and is it possible to do this in Windows?)

(For example, how in Linux we mount a ball / directory, execute a script from it, unmount it.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2020-11-24
@Kenny00

Explicitly specify from which user net should work (/user:madhouse\Vasya_pupkin), check that the task is started from a user with the rights to "log in as a batch task".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question