Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

List Archives

Subject: bles
Prev Next
You are not authorized to post a reply.

AuthorMessages
Yann TiroaUser is Offline

Posts:0

12/23/2005 9:35 AM  
________________________________

De: ActiveDir-owner@xxxxxxxxxxxxxxxxxx de la part de Marc A. Mapplebeck
Date: ven. 23/12/2005 20:36
À: ActiveDir@xxxxxxxxxxxxxxxxxx
Objet : RE: [ActiveDir] Display Specifier + Command Variables
I need to propogate the FTPRoot and FTPDir fields in the user objects, they are not available through ADUC, only by using iisftp or a vbs. I am using FTP via IIS in AD Isolation Mode.

________________________________

From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx [mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Al Mulnick
Sent: December 23, 2005 12:17
To: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: Re: [ActiveDir] Display Specifier + Command Variables
I'm still not clear on whether you want to do this for the homedrive attribute or if you are trying to do something else.

Might just be a little dense (that sometimes happens around this time of year).

You want to add a vbscript to your ADU&C so you can right click and enable some function that currently is not available, vs. using a script to enable it in bulk. Is that correct?

I believe you want something similar to this, right? http://www.2000trainers.com/article.aspx?articleID=317&page=2


On 12/23/05, Marc A. Mapplebeck wrote:

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"
-----
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"
oUser1.SetInfo
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: ActiveDir-owner@xxxxxxxxxxxxxxxxxx [mailto: ActiveDir-owner@xxxxxxxxxxxxxxxxxx ] On Behalf Of Al Mulnick
Sent: December 23, 2005 11:23
To: ActiveDir@xxxxxxxxxxxxxxxxxx
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 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/


>
You are not authorized to post a reply.



ActiveForums 3.7
AdventNet Banner
Friends

Friends

Namescape
Members

Members

MembershipMembership:
Latest New UserLatest:cmilte
New TodayNew Today:1
New YesterdayNew Yesterday:1
User CountOverall:4264

People OnlinePeople Online:
VisitorsVisitors:407
MembersMembers:0
TotalTotal:407

Online NowOnline Now:

Ads

Copyright 2008 ActiveDir.org
Terms Of Use