Sure, I was just using a batch file that called
iisftp
the context was "iisftp username"
all Z drives are the homedir of the user stored on our
hermes server in the share Z Drives, the purpose of this was to give users
access to their homedir remotely.
however, now that I want to use it from within AD Users
& Computers, I think I will have to rewrite it to set the variables using
vbs.
setftp.bat
-----
IIsFtp /SetADProp %1 FTPDir %1
IIsFtp /SetADProp %1 FTPRoot "\\hermes\Z Drives"
-----
IIsFtp /SetADProp %1 FTPRoot "\\hermes\Z Drives"
-----
end
I will probably end up using a .vbs that looks similar to
this:
setftp.vbs
-----
Dim ouserFTPDir
Dim ouserFTPDRoot
Dim oUser1
Set oUserFTPDir = GetObject(ouser1(0))
Set oUserFTPRoot = "\\hermes\Z Drives"
Dim oUser1
Set oUserFTPDir = GetObject(ouser1(0))
Set oUserFTPRoot = "\\hermes\Z Drives"
oUser1.SetInfo
Set oUser1 = Nothing
Set ouserFTP = Nothing
WScript.Quit
Set oUser1 = Nothing
Set ouserFTP = Nothing
WScript.Quit
-----
end
I'm actually teaching a class right now(yes, one of my
students showed up for class the day before the holiday break starts, so I gave
him a nice subnetting lab, I'm soo sadistic), so I do not have access to any of
my reference/test servers, so this script will prolly crash on line 1. But, the
general idea is there.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Al Mulnick
Sent: December 23, 2005 11:23
To: [email protected]
Subject: Re: [ActiveDir] Display Specifier + Command Variables
Marc, can you post the code you're using? Cleaned up for internet
consumption of course.
Al
On 12/23/05, Marc A.
Mapplebeck <[EMAIL PROTECTED]>
wrote:
Hi all, I am working on setting up FTP in AD Isolation mode. I have written
a batch file that I run to enable a user on the FTP server, I would like to
change this so that I can just right click on a user in AD Users & Computers
to do this, I have made the modification to the display specifier to call
the batch file, however, it is not passing what I want, does anybody know
if/what the variable is for the CN of the user, or would it be just as easy
to script this with VB instead? If so, does anybody already have a script or
a model that can be used for this? Thanks - Marc
List info : http://www.activedir.org/List.aspx
List FAQ : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
