Map drive to share at startup for a service

S

Stephen F.

What is the best way to map a network drive to a shared
folder (a DFS root) on a another server at system startup
so that a background service may use the files on the
shared folder automatically after startup?

I've tried using a startup jscript in the Local Policy
Object and a "net use" command from a batch file executed
by the scheduler service at startup (scheduled task
job). Both approaches have not worked successfully. The
same login credentials (uid,pwd) do work successfully
when logged in interactively, even running the same
script as the same user as defined in the scheduled task
job.

I get error messages in the system log such as events:
- 3034 (MrxSmb: "The redirector was unable to initialize
security context or query context attributes.") from the
script, and
- 3019 (MRxSmb: "The redirector failed to determine the
connection type.").

I've setup the service to depend on lanmanserver,
lanmanclient, etc. so it won't try to access the mapped
drive until other services that are needed for the mapped
drive to operate are up. But the mapping process isn't
working.

Thanks!
 
L

Lanwench [MVP - Exchange]

Why can't it use a UNC path, just out of curiosity? Drive mappings are for
ease of use for users, not for services, generally speaking.
 
G

Guest

Because the application (GoldMine 6.5) stores references
to linked documents by using a drive letter and path.
The service (GoldSync) reads the links out of a SQL
database and looks at the reference for documents. I'm
using DFS to publish the documents to the server but I
can't get the service to look in the right place since
that's controlled by application code.
 
S

Stephen F.

I'm amazed there's no easy answer to this question yet.
Is there no equivalent to UNIX NFS in Windows server?
Background daemon programs in UNIX can easily mount
volumes from anywhere in the filesystem (drive, folder,
etc.) using NFS to remote filesystems without anyone
logging into the server interactively.

Do I need to use UNIX services for Windows 3.5 to pull
this off?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top