Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Windows Server Networking

accessing shares when not logged in?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2005, 02:17 PM
Default accessing shares when not logged in?



Hi: I have an app running on Server2003 sp1 that needs to access IIS logs on
a separate server running Win2K-AS sp4. Both machines are stand-alone
servers on the same network.

The shares are set up on the Win2K server and I can access them when logged
on to the 2003 server using UNC and/or mapping the drive. If I run the app
while logged in, it accesses the folders and does what it needs to do.

I have job in scheduler set up to run the application at system startup and
once a day. The job is running as the administrative account I log in as
when I mapped the drives.

Problem is, unless I'm logged in, the app can't access the network shares.
Is there any way to enable the app to access the network shares when I'm not
logged in?

TIA





msft-sql
Reply With Quote
  #2  
Old 12-12-2005, 03:33 PM
Robert L [MS-MVP]
Guest
 
Posts: n/a
Default Re: accessing shares when not logged in?

You can create a mapping batch file and run it as service so that the it will map the share drive automatically after start the server without logon.

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
"msft-sql" <(E-Mail Removed)> wrote in message news:OBiueby$(E-Mail Removed)...
Hi: I have an app running on Server2003 sp1 that needs to access IIS logs on
a separate server running Win2K-AS sp4. Both machines are stand-alone
servers on the same network.

The shares are set up on the Win2K server and I can access them when logged
on to the 2003 server using UNC and/or mapping the drive. If I run the app
while logged in, it accesses the folders and does what it needs to do.

I have job in scheduler set up to run the application at system startup and
once a day. The job is running as the administrative account I log in as
when I mapped the drives.

Problem is, unless I'm logged in, the app can't access the network shares.
Is there any way to enable the app to access the network shares when I'm not
logged in?

TIA



Reply With Quote
  #3  
Old 12-12-2005, 03:45 PM
Doug Sherman [MVP]
Guest
 
Posts: n/a
Default Re: accessing shares when not logged in?

You can use a script to supply credentials when accessing a share or mapping
a drive to a share:

net use x: \\ServerorIP\Share /USER:(E-Mail Removed) <password>

Doug Sherman
MCSE, MCSA, MCP+I, MVP


"msft-sql" <(E-Mail Removed)> wrote in message
news:OBiueby$(E-Mail Removed)...
> Hi: I have an app running on Server2003 sp1 that needs to access IIS logs

on
> a separate server running Win2K-AS sp4. Both machines are stand-alone
> servers on the same network.
>
> The shares are set up on the Win2K server and I can access them when

logged
> on to the 2003 server using UNC and/or mapping the drive. If I run the app
> while logged in, it accesses the folders and does what it needs to do.
>
> I have job in scheduler set up to run the application at system startup

and
> once a day. The job is running as the administrative account I log in as
> when I mapped the drives.
>
> Problem is, unless I'm logged in, the app can't access the network shares.
> Is there any way to enable the app to access the network shares when I'm

not
> logged in?
>
> TIA
>
>
>



Reply With Quote
  #4  
Old 12-12-2005, 03:53 PM
msft-sql
Guest
 
Posts: n/a
Default Re: accessing shares when not logged in?

Thanks Doug...would I run that script using scheduler at startup as well?

--

"Doug Sherman [MVP]" <(E-Mail Removed)> wrote in message
news:uGVBeMz$(E-Mail Removed)...
> You can use a script to supply credentials when accessing a share or
> mapping
> a drive to a share:
>
> net use x: \\ServerorIP\Share /USER:(E-Mail Removed) <password>
>
> Doug Sherman
> MCSE, MCSA, MCP+I, MVP
>
>
> "msft-sql" <(E-Mail Removed)> wrote in message
> news:OBiueby$(E-Mail Removed)...
>> Hi: I have an app running on Server2003 sp1 that needs to access IIS logs

> on
>> a separate server running Win2K-AS sp4. Both machines are stand-alone
>> servers on the same network.
>>
>> The shares are set up on the Win2K server and I can access them when

> logged
>> on to the 2003 server using UNC and/or mapping the drive. If I run the
>> app
>> while logged in, it accesses the folders and does what it needs to do.
>>
>> I have job in scheduler set up to run the application at system startup

> and
>> once a day. The job is running as the administrative account I log in as
>> when I mapped the drives.
>>
>> Problem is, unless I'm logged in, the app can't access the network
>> shares.
>> Is there any way to enable the app to access the network shares when I'm

> not
>> logged in?
>>
>> TIA
>>
>>
>>

>
>



Reply With Quote
  #5  
Old 12-12-2005, 04:48 PM
Doug Sherman [MVP]
Guest
 
Posts: n/a
Default Re: accessing shares when not logged in?

Yes, because (I assume) the original drive mappings are not created until
the user logs on. You could also use Robert's service suggestion; or you
could use Group Policy to pump these out as a computer startup script as
opposed to a user login script.

Doug Sherman
MCSE, MCSA, MCP+I, MVP

"msft-sql" <(E-Mail Removed)> wrote in message
news:OqQB#Qz$(E-Mail Removed)...
> Thanks Doug...would I run that script using scheduler at startup as well?
>
> --
>
> "Doug Sherman [MVP]" <(E-Mail Removed)> wrote in

message
> news:uGVBeMz$(E-Mail Removed)...
> > You can use a script to supply credentials when accessing a share or
> > mapping
> > a drive to a share:
> >
> > net use x: \\ServerorIP\Share /USER:(E-Mail Removed) <password>
> >
> > Doug Sherman
> > MCSE, MCSA, MCP+I, MVP
> >
> >
> > "msft-sql" <(E-Mail Removed)> wrote in message
> > news:OBiueby$(E-Mail Removed)...
> >> Hi: I have an app running on Server2003 sp1 that needs to access IIS

logs
> > on
> >> a separate server running Win2K-AS sp4. Both machines are stand-alone
> >> servers on the same network.
> >>
> >> The shares are set up on the Win2K server and I can access them when

> > logged
> >> on to the 2003 server using UNC and/or mapping the drive. If I run the
> >> app
> >> while logged in, it accesses the folders and does what it needs to do.
> >>
> >> I have job in scheduler set up to run the application at system startup

> > and
> >> once a day. The job is running as the administrative account I log in

as
> >> when I mapped the drives.
> >>
> >> Problem is, unless I'm logged in, the app can't access the network
> >> shares.
> >> Is there any way to enable the app to access the network shares when

I'm
> > not
> >> logged in?
> >>
> >> TIA
> >>
> >>
> >>

> >
> >

>
>



Reply With Quote
  #6  
Old 12-14-2005, 01:36 PM
andrew
Guest
 
Posts: n/a
Default Re: accessing shares when not logged in?

that worked great...thanks for the insight! I created a BAT file with the
logon script, and ran it with scheduler.

Next question: I now have BAT file sitting on the HD with a username and
password for the other server. It's an unprivileged user but still it's just
sitting there for anyone to discover. Is there a better way of handling
that, security-wise?

"Doug Sherman [MVP]" <(E-Mail Removed)> wrote in message
news:uyg6jvz$(E-Mail Removed)...
> Yes, because (I assume) the original drive mappings are not created until
> the user logs on. You could also use Robert's service suggestion; or you
> could use Group Policy to pump these out as a computer startup script as
> opposed to a user login script.
>
> Doug Sherman
> MCSE, MCSA, MCP+I, MVP
>
> "msft-sql" <(E-Mail Removed)> wrote in message
> news:OqQB#Qz$(E-Mail Removed)...
>> Thanks Doug...would I run that script using scheduler at startup as well?
>>
>> --
>>
>> "Doug Sherman [MVP]" <(E-Mail Removed)> wrote in

> message
>> news:uGVBeMz$(E-Mail Removed)...
>> > You can use a script to supply credentials when accessing a share or
>> > mapping
>> > a drive to a share:
>> >
>> > net use x: \\ServerorIP\Share /USER:(E-Mail Removed) <password>
>> >
>> > Doug Sherman
>> > MCSE, MCSA, MCP+I, MVP
>> >
>> >
>> > "msft-sql" <(E-Mail Removed)> wrote in message
>> > news:OBiueby$(E-Mail Removed)...
>> >> Hi: I have an app running on Server2003 sp1 that needs to access IIS

> logs
>> > on
>> >> a separate server running Win2K-AS sp4. Both machines are stand-alone
>> >> servers on the same network.
>> >>
>> >> The shares are set up on the Win2K server and I can access them when
>> > logged
>> >> on to the 2003 server using UNC and/or mapping the drive. If I run the
>> >> app
>> >> while logged in, it accesses the folders and does what it needs to do.
>> >>
>> >> I have job in scheduler set up to run the application at system
>> >> startup
>> > and
>> >> once a day. The job is running as the administrative account I log in

> as
>> >> when I mapped the drives.
>> >>
>> >> Problem is, unless I'm logged in, the app can't access the network
>> >> shares.
>> >> Is there any way to enable the app to access the network shares when

> I'm
>> > not
>> >> logged in?
>> >>
>> >> TIA
>> >>
>> >>
>> >>
>> >
>> >

>>
>>

>
>



Reply With Quote
  #7  
Old 12-14-2005, 07:12 PM
Doug Sherman [MVP]
Guest
 
Posts: n/a
Default Re: accessing shares when not logged in?

If these were domain member machines, the Group Policy solution would allow
you to keep the file on a DC. With a stand alone machine try removing (NOT
denying) NTFS permissions on the file except for yourself or some other
administrator account. Note the file 'should' be running under the local
system account.

Doug Sherman
MCSE, MCSA, MCP+I, MVP

"andrew" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> that worked great...thanks for the insight! I created a BAT file with the
> logon script, and ran it with scheduler.
>
> Next question: I now have BAT file sitting on the HD with a username and
> password for the other server. It's an unprivileged user but still it's

just
> sitting there for anyone to discover. Is there a better way of handling
> that, security-wise?
>
> "Doug Sherman [MVP]" <(E-Mail Removed)> wrote in

message
> news:uyg6jvz$(E-Mail Removed)...
> > Yes, because (I assume) the original drive mappings are not created

until
> > the user logs on. You could also use Robert's service suggestion; or

you
> > could use Group Policy to pump these out as a computer startup script as
> > opposed to a user login script.
> >
> > Doug Sherman
> > MCSE, MCSA, MCP+I, MVP
> >
> > "msft-sql" <(E-Mail Removed)> wrote in message
> > news:OqQB#Qz$(E-Mail Removed)...
> >> Thanks Doug...would I run that script using scheduler at startup as

well?
> >>
> >> --
> >>
> >> "Doug Sherman [MVP]" <(E-Mail Removed)> wrote in

> > message
> >> news:uGVBeMz$(E-Mail Removed)...
> >> > You can use a script to supply credentials when accessing a share or
> >> > mapping
> >> > a drive to a share:
> >> >
> >> > net use x: \\ServerorIP\Share /USER:(E-Mail Removed)

<password>
> >> >
> >> > Doug Sherman
> >> > MCSE, MCSA, MCP+I, MVP
> >> >
> >> >
> >> > "msft-sql" <(E-Mail Removed)> wrote in message
> >> > news:OBiueby$(E-Mail Removed)...
> >> >> Hi: I have an app running on Server2003 sp1 that needs to access IIS

> > logs
> >> > on
> >> >> a separate server running Win2K-AS sp4. Both machines are

stand-alone
> >> >> servers on the same network.
> >> >>
> >> >> The shares are set up on the Win2K server and I can access them when
> >> > logged
> >> >> on to the 2003 server using UNC and/or mapping the drive. If I run

the
> >> >> app
> >> >> while logged in, it accesses the folders and does what it needs to

do.
> >> >>
> >> >> I have job in scheduler set up to run the application at system
> >> >> startup
> >> > and
> >> >> once a day. The job is running as the administrative account I log

in
> > as
> >> >> when I mapped the drives.
> >> >>
> >> >> Problem is, unless I'm logged in, the app can't access the network
> >> >> shares.
> >> >> Is there any way to enable the app to access the network shares when

> > I'm
> >> > not
> >> >> logged in?
> >> >>
> >> >> TIA
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>

> >
> >

>
>



Reply With Quote
Reply

Tags
accessing, logged, shares

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
Forum Jump


All times are GMT. The time now is 07:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.