Problem running script targeted at mapped drive

I need to run a robocopy script which copies to a mapped network drive on several workstations. I created a new password protected account on each machine named "Backup". I mapped the network drive where the file copy is supposed to be stored in the new "Backup" account and set it to connect at logon.  (This network share is connected as a mapped drive in all the other accounts on these machines as well). I then created a new scheduled task using the "Backup" user's credentials within the Backup user's account.
However the robocopy backup is not running as expected. The script is launched but the mapped network drive is not available so the file copy fails. At the time the script runs the computer is usually being used and the mapped drive is available within that session.
I could have sworn that I have done this type of configuration in the past with any problem and am not completely clear why it is failing this time. Any ideas how I can get this to work reliably without putting the script within the active user's account?
pmckenna541Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KavostylinCommented:
Have you added the user as an administrator on the source machine?
0
delyan_valchevCommented:
Try re-mapping the drive from within the script. Try something like:
net use m: \\server\share >>mapping.log 2>&1
This way in the log you will see what could be possibly wrong.
Keep in mind that if you have connected the network drive with one user credentials (e.g. the logged-in user) you cannot connect it in the same time with different credentials.
Hope it helps!
Delyan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
grayeCommented:
That's correct... WinXP has no provision for loading the user's profile during the execution of a scheduled task.
A simpler approach would be to just not use a mapped drive at all...  instead, just use the Univerisal Naming Convention (UNC) style name (like this:   \\SomeServer\SomeShare)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage

From novice to tech pro — start learning today.