Guest emmanuel meurant Posted August 3, 2007 Posted August 3, 2007 Dear All, A service on a windows 2003 server needs to accès some files on an AS400 (you can think of the as400 as a Windows machine in another domain). I have to map a drive to this AS400 specifying alternate credentials not known in the windows 2003 domain. Doing this once logged with an admin account is very easy either via the graphic interface or via a "NET USE " script. But, how could I have this mapping created even when nobody logs onto the server. (the mapping has to be used by a service). Thanks for any idea, Emmanuel Switzerland -- mcse 2000 - mcsa 2003 and still a lot to learn...
Guest Robert L [MVP - Networking] Posted August 3, 2007 Posted August 3, 2007 Re: How to map a network drive whithout anybody logged You may want to run the mapping as windows service. This how to may help, Run Application as a service http://www.chicagotech.net/netforums/viewtopic.php?t=1192 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 "emmanuel meurant" <emmanuelmeurant@discussions.microsoft.com> wrote in message news:51833AD6-22E9-4243-9CB7-04ED0FAF8997@microsoft.com... Dear All, A service on a windows 2003 server needs to accès some files on an AS400 (you can think of the as400 as a Windows machine in another domain). I have to map a drive to this AS400 specifying alternate credentials not known in the windows 2003 domain. Doing this once logged with an admin account is very easy either via the graphic interface or via a "NET USE " script. But, how could I have this mapping created even when nobody logs onto the server. (the mapping has to be used by a service). Thanks for any idea, Emmanuel Switzerland -- mcse 2000 - mcsa 2003 and still a lot to learn...
Guest emmanuel meurant Posted August 6, 2007 Posted August 6, 2007 Re: How to map a network drive whithout anybody logged The article related http://support.microsoft.com/default.aspx/kb/137890 states it cannot be used for batch files. So it seems it could not help for some kind of "net use" stuff. -- mcse 2000 - mcsa 2003 and still a lot to learn... "Robert L [MVP - Networking]" wrote: > You may want to run the mapping as windows service. This how to may help, > > Run Application as a service > http://www.chicagotech.net/netforums/viewtopic.php?t=1192 > > 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 > "emmanuel meurant" <emmanuelmeurant@discussions.microsoft.com> wrote in message news:51833AD6-22E9-4243-9CB7-04ED0FAF8997@microsoft.com... > Dear All, > > A service on a windows 2003 server needs to accès some files on an AS400 > (you can think of the as400 as a Windows machine in another domain). > > I have to map a drive to this AS400 specifying alternate credentials not > known in the windows 2003 domain. > > Doing this once logged with an admin account is very easy either via the > graphic interface or via a "NET USE " script. > > But, how could I have this mapping created even when nobody logs onto the > server. (the mapping has to be used by a service). > > Thanks for any idea, > Emmanuel > Switzerland > > > -- > mcse 2000 - mcsa 2003 and still a lot to learn..
Guest Robert L [MVP - Networking] Posted August 6, 2007 Posted August 6, 2007 Re: How to map a network drive whithout anybody logged Thank you for the feedback. You can VBscript to do the mapping. 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 "emmanuel meurant" <emmanuelmeurant@discussions.microsoft.com> wrote in message news:0A475ADB-35C8-476F-80EA-7EDE8F61F58B@microsoft.com... The article related http://support.microsoft.com/default.aspx/kb/137890 states it cannot be used for batch files. So it seems it could not help for some kind of "net use" stuff. -- mcse 2000 - mcsa 2003 and still a lot to learn... "Robert L [MVP - Networking]" wrote: > You may want to run the mapping as windows service. This how to may help, > > Run Application as a service > http://www.chicagotech.net/netforums/viewtopic.php?t=1192 > > 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 > "emmanuel meurant" <emmanuelmeurant@discussions.microsoft.com> wrote in message news:51833AD6-22E9-4243-9CB7-04ED0FAF8997@microsoft.com... > Dear All, > > A service on a windows 2003 server needs to accès some files on an AS400 > (you can think of the as400 as a Windows machine in another domain). > > I have to map a drive to this AS400 specifying alternate credentials not > known in the windows 2003 domain. > > Doing this once logged with an admin account is very easy either via the > graphic interface or via a "NET USE " script. > > But, how could I have this mapping created even when nobody logs onto the > server. (the mapping has to be used by a service). > > Thanks for any idea, > Emmanuel > Switzerland > > > -- > mcse 2000 - mcsa 2003 and still a lot to learn..
Guest emmanuel meurant Posted August 7, 2007 Posted August 7, 2007 Re: How to map a network drive whithout anybody logged Thanks for the answer but I'm trying to get it working with a classic net use script and it seems to work using a GPO machine login script. Not fully tested yet but the mapping gets successfully created. Will try now to make my application work on that basis. "Robert L [MVP - Networking]" wrote: > Thank you for the feedback. You can VBscript to do the mapping. > > 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 > "emmanuel meurant" <emmanuelmeurant@discussions.microsoft.com> wrote in message news:0A475ADB-35C8-476F-80EA-7EDE8F61F58B@microsoft.com... > The article related http://support.microsoft.com/default.aspx/kb/137890 > states it cannot be used for batch files. So it seems it could not help for > some kind of "net use" stuff. > > -- > mcse 2000 - mcsa 2003 and still a lot to learn... > > > "Robert L [MVP - Networking]" wrote: > > > You may want to run the mapping as windows service. This how to may help, > > > > Run Application as a service > > http://www.chicagotech.net/netforums/viewtopic.php?t=1192 > > > > 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 > > "emmanuel meurant" <emmanuelmeurant@discussions.microsoft.com> wrote in message news:51833AD6-22E9-4243-9CB7-04ED0FAF8997@microsoft.com... > > Dear All, > > > > A service on a windows 2003 server needs to accès some files on an AS400 > > (you can think of the as400 as a Windows machine in another domain). > > > > I have to map a drive to this AS400 specifying alternate credentials not > > known in the windows 2003 domain. > > > > Doing this once logged with an admin account is very easy either via the > > graphic interface or via a "NET USE " script. > > > > But, how could I have this mapping created even when nobody logs onto the > > server. (the mapping has to be used by a service). > > > > Thanks for any idea, > > Emmanuel > > Switzerland > > > > > > -- > > mcse 2000 - mcsa 2003 and still a lot to learn.
Recommended Posts