Groups | Blog | Home
all groups > iis ftp > january 2006 >

iis ftp : UNC names in iisftp.vbs (IIS 6)


Mark B
1/13/2006 10:47:01 AM
In IIS Manager (the GUI), you can use UNC names and provide a
username/password to "Connect As". However, the iisftp.vbs doesn't seem to
support this functionality.

In IIS Manager, right click on site. Click Properties. Home Directory tab.
Click "A directory is located on another computer". Supply a UNC and click
"Connect As" button to provide username/password.

However, when trying to automate this process with iisftp.vbs, it will not
allow a UNC to be entered as the home directory.

eg.
The command:
"cscript iisftp.vbs /create \\server\path "TestScript" /i 1.1.1.1"
returns:
Root directory format unknown. Please use the
':\' format.
(iisschlp.wsc checks for ':\' in CreateFSDir)

The documentation mentions supporting UNC as an FTP home directory (although
I haven't seen anything that explicitly states UNC is possible using the
script).

Reference Articles:
"Adding FTP (mentions UNC)":
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/94536ec0-3bf9-4c41-b3b4-00ba3860d09b.mspx
Script Docs:
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/ServerHelp/e0c157de-a285-46d6-8cf5-375bb7aebcc4.mspx

If I map a drive and use (where r is a mapped drive):
"cscript iisftp.vbs /create r:\path\to\ftpRoot "TestScript" /i 1.1.1.1" /s
boxWithSharedDrive /u domain/user /p password -i localIp"
returns:
The IIS Admin scripts only support IIS 6.0.

I've seen KB Article [You may receive a "The IIS Admin scripts only support
IIS 6.0" error message when you run the Iisback.vbs script in IIS 6.0]
http://support.microsoft.com/?kbid=826007

and applied the workaround (not the hotfix) . But no luck.

Any ideas about how I can use the script to set up a FTP site with a network
path (UNC preferrable but mapped drive ok) as the home directory? Any
Bernard Cheah [MVP]
1/18/2006 6:36:31 PM
Follow up on iis-resources.com forum.
I think iisftp.vbs is for ftp site management, while iisftpdr.vbs let you
handle ftp directories administration.

--
Regards,
Bernard Cheah
http://www.iis-resources.com/
http://www.iiswebcastseries.com/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button