Networking Forums

Networking Forums > Computer Networking > Windows Networking > Drive mapping question

Reply
Thread Tools Display Modes

Drive mapping question

 
 
Joe
Guest
Posts: n/a

 
      05-30-2008, 10:08 PM
I have a CIFS volume that I am mapping to, but would like the drive to be
available at boot time so that a service can use it. I know that drive
mappings
are user specific, but is there a way to mount the drive through a service
and make it available to any or all users?

So if a service ran as a specific user could I start the service as that
user and
the service would then be able to write to the disk without an logged in
session?

Any advice would be appreciated.
 
Reply With Quote
 
 
 
 
Ace Fekay [MVP]
Guest
Posts: n/a

 
      05-31-2008, 02:15 AM
In news:5ED6A667-BD25-441C-90E6-(E-Mail Removed),
Joe <(E-Mail Removed)> typed:
> I have a CIFS volume that I am mapping to, but would like the drive
> to be available at boot time so that a service can use it. I know
> that drive mappings
> are user specific, but is there a way to mount the drive through a
> service and make it available to any or all users?
>
> So if a service ran as a specific user could I start the service as
> that user and
> the service would then be able to write to the disk without an logged
> in session?
>
> Any advice would be appreciated.


Have you tried a machine startup script placed in either the local Group
Policy (accessible by start/Run, gpedit.msc) or in a GPO in an OU the
machine is under? Remember, with GPOs there are four events that you can
place a script, bat file, etc, to run. They are machine start, user logon,
user logoff, and shutdown. Of course user logon and logoff is user based and
only affects users. The startup and shutdown are machine only based and will
affect the machine only.

--
Regards,
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
MVP Microsoft MVP - Directory Services
Microsoft Certified Trainer

For urgent issues, you may want to contact Microsoft PSS directly. Please
check http://support.microsoft.com for regional support phone numbers.

Infinite Diversities in Infinite Combinations


 
Reply With Quote
 
Joe
Guest
Posts: n/a

 
      05-31-2008, 10:41 AM
Ace,

I haven't tried that, but I will. I have used AutoExNt and the drive maps
but isn't
accessible. I tried srvany with the same result. The drive was mapped but
required a password after login. I know it's easily fixed with a login
script, but
I need it to be accessible outside of a login first and foremost.

Thanks for the hint. I'll give it a try.

"Ace Fekay [MVP]" wrote:

> In news:5ED6A667-BD25-441C-90E6-(E-Mail Removed),
> Joe <(E-Mail Removed)> typed:
> > I have a CIFS volume that I am mapping to, but would like the drive
> > to be available at boot time so that a service can use it. I know
> > that drive mappings
> > are user specific, but is there a way to mount the drive through a
> > service and make it available to any or all users?
> >
> > So if a service ran as a specific user could I start the service as
> > that user and
> > the service would then be able to write to the disk without an logged
> > in session?
> >
> > Any advice would be appreciated.

>
> Have you tried a machine startup script placed in either the local Group
> Policy (accessible by start/Run, gpedit.msc) or in a GPO in an OU the
> machine is under? Remember, with GPOs there are four events that you can
> place a script, bat file, etc, to run. They are machine start, user logon,
> user logoff, and shutdown. Of course user logon and logoff is user based and
> only affects users. The startup and shutdown are machine only based and will
> affect the machine only.
>
> --
> Regards,
> Ace
>
> This posting is provided "AS-IS" with no warranties or guarantees and
> confers no rights.
>
> Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
> MVP Microsoft MVP - Directory Services
> Microsoft Certified Trainer
>
> For urgent issues, you may want to contact Microsoft PSS directly. Please
> check http://support.microsoft.com for regional support phone numbers.
>
> Infinite Diversities in Infinite Combinations
>
>
>

 
Reply With Quote
 
Joe
Guest
Posts: n/a

 
      05-31-2008, 10:57 AM
Ace,

Well, I tried that. The drive isn't available once it is mapped via the
script.
The drive seems to map without a problem, but no process can write
data to the drive. It seems to be a username/password issue.

I'm going to try to setup the storage so it doesn't require a
username/password.

Thanks.

"Joe" wrote:

> Ace,
>
> I haven't tried that, but I will. I have used AutoExNt and the drive maps
> but isn't
> accessible. I tried srvany with the same result. The drive was mapped but
> required a password after login. I know it's easily fixed with a login
> script, but
> I need it to be accessible outside of a login first and foremost.
>
> Thanks for the hint. I'll give it a try.
>
> "Ace Fekay [MVP]" wrote:
>
> > In news:5ED6A667-BD25-441C-90E6-(E-Mail Removed),
> > Joe <(E-Mail Removed)> typed:
> > > I have a CIFS volume that I am mapping to, but would like the drive
> > > to be available at boot time so that a service can use it. I know
> > > that drive mappings
> > > are user specific, but is there a way to mount the drive through a
> > > service and make it available to any or all users?
> > >
> > > So if a service ran as a specific user could I start the service as
> > > that user and
> > > the service would then be able to write to the disk without an logged
> > > in session?
> > >
> > > Any advice would be appreciated.

> >
> > Have you tried a machine startup script placed in either the local Group
> > Policy (accessible by start/Run, gpedit.msc) or in a GPO in an OU the
> > machine is under? Remember, with GPOs there are four events that you can
> > place a script, bat file, etc, to run. They are machine start, user logon,
> > user logoff, and shutdown. Of course user logon and logoff is user based and
> > only affects users. The startup and shutdown are machine only based and will
> > affect the machine only.
> >
> > --
> > Regards,
> > Ace
> >
> > This posting is provided "AS-IS" with no warranties or guarantees and
> > confers no rights.
> >
> > Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
> > MVP Microsoft MVP - Directory Services
> > Microsoft Certified Trainer
> >
> > For urgent issues, you may want to contact Microsoft PSS directly. Please
> > check http://support.microsoft.com for regional support phone numbers.
> >
> > Infinite Diversities in Infinite Combinations
> >
> >
> >

 
Reply With Quote
 
Ace Fekay [MVP]
Guest
Posts: n/a

 
      06-01-2008, 05:22 AM
In news:E356D322-84F5-4785-9EC3-(E-Mail Removed),
Joe <(E-Mail Removed)> typed:
> Ace,
>
> Well, I tried that. The drive isn't available once it is mapped via
> the script.
> The drive seems to map without a problem, but no process can write
> data to the drive. It seems to be a username/password issue.
>
> I'm going to try to setup the storage so it doesn't require a
> username/password.
>
> Thanks.


Thinking about it, when it runs the machine script, it uses the local
account so when the user process runs, the mapped drive still has the local
account credentials. Try it in both startup AND logon.

Ace


 
Reply With Quote
 
ThePro
Guest
Posts: n/a

 
      06-02-2008, 12:02 PM
"Joe" <(E-Mail Removed)> wrote:
> Ace,
>
> I tried srvany with the same result. The drive was mapped but
> required a password after login.


With srvany, did you specify the login name/password in the script or batch
file ?

ThePro


 
Reply With Quote
 
Joe
Guest
Posts: n/a

 
      06-02-2008, 02:30 PM
When the script ran it specified a username and password. Running as
Local System the drive was there on user logon, but needed a username
password. When I ran the script as a user account, the user account can
write to is, but the drive isn't available.

If we break security and allow anonymous access I believe that it would
work, but is not approved by security.

I tried SRVANY using VBS script, batch file and anything else I could think
of.

I am still open to be able to MAP the CIFS share at boot time and it be
available to all services/users on that server.

Thanks.

"ThePro" wrote:

> "Joe" <(E-Mail Removed)> wrote:
> > Ace,
> >
> > I tried srvany with the same result. The drive was mapped but
> > required a password after login.

>
> With srvany, did you specify the login name/password in the script or batch
> file ?
>
> ThePro
>
>
>

 
Reply With Quote
 
Ace Fekay [MVP]
Guest
Posts: n/a

 
      06-02-2008, 10:49 PM
In news:A54E4089-C8C9-4DA7-800A-(E-Mail Removed),
Joe <(E-Mail Removed)> typed:
> When the script ran it specified a username and password. Running as
> Local System the drive was there on user logon, but needed a username
> password. When I ran the script as a user account, the user account
> can write to is, but the drive isn't available.
>
> If we break security and allow anonymous access I believe that it
> would work, but is not approved by security.
>
> I tried SRVANY using VBS script, batch file and anything else I could
> think of.
>
> I am still open to be able to MAP the CIFS share at boot time and it
> be available to all services/users on that server.
>
> Thanks.


What are the permissions on CIFS share properties? What are the NTFS
permissions?

Ace


 
Reply With Quote
 
Joe
Guest
Posts: n/a

 
      06-03-2008, 01:12 PM
The CIFS share requires a username / passsword to connect to it (authenticating
to the NetApp). The NTFS permissions are Everyone Read/Write (for testing
only).

As I said when a user logs in the drive is mapped, but each user needs to
provide
the username / password credentials of the NetApp account to be able to use
the
drive.

So, while the drive maps correctly the services can't write to it as it
needs to
provide credentials. I am 90% there, but the last 10% seems to be elluding
me.

Thanks.

"Ace Fekay [MVP]" wrote:

> In news:A54E4089-C8C9-4DA7-800A-(E-Mail Removed),
> Joe <(E-Mail Removed)> typed:
> > When the script ran it specified a username and password. Running as
> > Local System the drive was there on user logon, but needed a username
> > password. When I ran the script as a user account, the user account
> > can write to is, but the drive isn't available.
> >
> > If we break security and allow anonymous access I believe that it
> > would work, but is not approved by security.
> >
> > I tried SRVANY using VBS script, batch file and anything else I could
> > think of.
> >
> > I am still open to be able to MAP the CIFS share at boot time and it
> > be available to all services/users on that server.
> >
> > Thanks.

>
> What are the permissions on CIFS share properties? What are the NTFS
> permissions?
>
> Ace
>
>
>

 
Reply With Quote
 
Ace Fekay [MVP]
Guest
Posts: n/a

 
      06-08-2008, 06:56 PM
In news:BE7D0633-4E6F-41E9-B3AB-(E-Mail Removed),
Joe <(E-Mail Removed)> typed:
> The CIFS share requires a username / passsword to connect to it
> (authenticating to the NetApp). The NTFS permissions are Everyone
> Read/Write (for testing only).
>
> As I said when a user logs in the drive is mapped, but each user
> needs to provide
> the username / password credentials of the NetApp account to be able
> to use the
> drive.
>
> So, while the drive maps correctly the services can't write to it as
> it
> needs to
> provide credentials. I am 90% there, but the last 10% seems to be
> elluding me.
>
> Thanks.


If you bump up the perms on the CIFS for testing purposes, what are the
results?

Ace


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
drive mapping Tony L Windows Networking 2 04-29-2008 03:13 PM
Drive Mapping Duffer Windows Networking 0 01-19-2007 11:01 PM
VPN adn drive mapping banjolicious@netscape.net Windows Networking 4 12-12-2006 07:43 PM
Drive mapping Charlie C Windows Networking 0 08-19-2003 08:53 PM
Drive mapping Richard Windows Networking 1 07-04-2003 10:34 PM



1 2 3 4 5 6 7 8 9 10 11