|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 > > > |
|
#4
|
|||
|
|||
|
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 >> >> >> > > |
|
#5
|
|||
|
|||
|
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 > >> > >> > >> > > > > > > |
|
#6
|
|||
|
|||
|
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 >> >> >> >> >> >> >> > >> > >> >> > > |
|
#7
|
|||
|
|||
|
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 > >> >> > >> >> > >> >> > >> > > >> > > >> > >> > > > > > > |
![]() |
| Tags |
| accessing, logged, shares |
| Thread Tools | |
| Display Modes | |
|
|