Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS 6.0 Device Unavailable on Network Mapped Drive

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  isapi filter question  
Author Message
rmurdock

External


Since: Dec 11, 2003
Posts: 1



(Msg. 1) Posted: Thu Dec 11, 2003 4:46 pm
Post subject: IIS 6.0 Device Unavailable on Network Mapped Drive
Archived from groups: microsoft>public>inetserver>iis (more info?)

Greetings:

I have a VB6 COM object that attempts to do the following:

CHDrive "Z"
MKDir "NEWFOLDER"

Where "Z" drive is a network drive mapped under the exact
same user account that the Web Site and Application Pool
is running under; and the remote machine where the share
was made is made under the same userid name and full
privledges are assigned to the userid.

On IIS 5.0 this works fine. On IIS 6.0 I get the Device
Unavailable from the CHDrive command.

Does anyone have an idea why this is ? Further, is there
an easy fix ? If not, I am going to have to develop some
elaborate cross-system file management system.

Thanks,

Robb Murdock

 >> Stay informed about: IIS 6.0 Device Unavailable on Network Mapped Drive 
Back to top
Login to vote
user649

External


Since: Aug 25, 2003
Posts: 244



(Msg. 2) Posted: Fri Dec 12, 2003 9:02 am
Post subject: RE: IIS 6.0 Device Unavailable on Network Mapped Drive [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Robb,

Thank you for posting in MSDN managed newsgroup!

For security concerns, services cannot use drives mapped via the credentials supplied by another logged on user. In IIS 5.0, you could potentially
get this to work, but it is not recommended. In Windows XP, Windows 2003 Server, and future versions of Windows, services cannot use these
mapped drives. For more information, see this Knowledge Base article:
INFO: Services and Redirected Drives
http://support.microsoft.com/default.aspx?scid=kb;en-us;180362&sd=tech

You can use FileSystemObject scripting component to connect to the remote folder with the UNC name, for example \\testBox\e$\testFolder. I
write one sample code for you.

'Code begin---------------------------------------------------------
Dim objFS, objFld, objSubFld, folderName

'create one random folder name
folderName = "hello" & 10000*Rnd
set objFS = Server.CreateObject("Scripting.FileSystemObject")

Set objFld = objFS.GetFolder("\\testBox\e$\testFolder")
Set objSubFld = objFld.SubFolders
'Create the new folder for you
objSubFld.Add(folderName)
'Code end-----------------------------------------------------------

Please feel free to let me know if you have any further questions.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

 >> Stay informed about: IIS 6.0 Device Unavailable on Network Mapped Drive 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
My Network Places - can't see files Mapped Drive - can see.. - I have 4 W2K IIS 5 webservers. I can map to all 4 and see files/folders. When I go to My Network Places, I can see all 4 but can only see files/folders on 2. All servers are configured alike. This happens from both W2K and XP Pro workstations. Any..

Local drive mapped to Intranet Server Hyperlinks are wrong. - I have a department that has taken over a new Intranet running on an IIS server. I have provided them with a mapped drive directly to the WWWROOT folder for easy access to files and folders. They are editing it with frontpage. When they open an..

Network Drive mapping - Boas, Tenho um problema que me esta a ocupar ha ja algum tempo, encontrei documentacao, testei o ambiente, mas nao funciona, e eh o seuinte: -Tenho um servidor (A) W2K-sp4,etc, a funcionar como Webserver + FPextensions. -Tenho um outro servidor (B)..

iiscnfg.vbs using unc instead of mapped drives. - I thought I would share my experiences of using iis6 only - iiscnfg.vbs script. This script is great for replicating your metabase to different servers with ease. The problem I found with the original though was that the replication routine was using..

Tilde in filename causes 500 error when access from mapped.. - I apologize if this is double-posted, the submission page timed out when I submitted the first one. I have 6 2003 Server (Std) boxes with IIS 6 running in a web farm behind a Coyote e350 load balancer. The content of this particular site is stored on...
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]