Mapping of Network Drives
Previous page  Next page
If you run a service that requires access to mapped network drives then you can use NT Wrapper for such a drive mapping. You would need to create two services - one to map the drives (let's call it DriveMapper) and a second one to run the application that requires the mapping.

In the DriveMapper service, run a batch file that maps the appropriate drives.
For example:

net use y: \\server\share1
net use z: \\server\share2

If you need to pass user names and passwords to access the share the batch script might look like:

net use y: \\server\share1 /user:<domain>\user password
net use z: \\server\share2 /user:<domain>\user password

Alternately, your service could log on using a domain or local user account that has sufficient privileges to access the share. Note that those services do not interact with the desktop.
After you have installed the DriveMapper service you create the second service that depends on these mappings. Set it up as needed and make it dependent on the DriveMapper service.

Note that both services must run in the same security context, otherwise the second service won't 'see' the mappings created by the DriveMapper service.


NT Wrapper v1.06 - May 13, 2005
Copyright © 2002- 2005 P.Pohman
NT Wrapper Home