Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Another Create User via HTA question

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,3608
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Another Create User via HTA question
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Another Create User via HTA question - 7/1/2005 6:05:32 AM   
  Cary Shultz

 

Posts: 4
Score: 0
Joined: 7/1/2005
From: USA
Status: offline
Good afternoon to everyone from beautiful Roanoke, VA!

This is my first post in this forum. Pretty new to VB and ADSI and WMI so please pardon my ignorance.

There was a really neat post by cjwallace titled 'Create user script' that is three pages long. If you are trying to create HTAs this looks to be a keeper. I intentially started a new post....sorry if that was a bad decision.

However, I do have a few questions:

The location ( read: organizational unit ) where the user account object is created by this HTA is a fixed location. What happens if there are several OUs that contain user account objects? How would I chose the 'Roanoke' OU instead of the 'Blacksburg' OU??? In other words, how do I create a choice whereby all of the OUs ( and containers, for that matter ) are available for selection?

At the end of the post someone makes available the way to create an Exchange mailbox. This assumes that there is one store and one Exchange Server. Same question as above: how do I make all of the stores on each Exchange Server available for selection?

As I stated, I am really new to this so please forgive me if this is a really basic question....

Thanks all,

Cary
 
 
Post #: 1
 
 Re: Another Create User via HTA question - 7/3/2005 4:51:12 AM   
  Cary Shultz

 

Posts: 4
Score: 0
Joined: 7/1/2005
From: USA
Status: offline
Okay,

I see that I have made a minor mistake! In the Microsoft news groups the messages remain static ( meaning, they do not move around according to activity ) so I can see that my initial post makes very little sense. Sorry!

Here is what I am trying to accomplish with the HTA that I have 'borrowed' from this forum: create an AD user account object that is mail-enabled. This should be pretty clear.

However, the question is in which container ( be it an Organizational Unit or a container ) the user account object will be created. The HTA that I have 'borrowed' has a static location. In other words, there is no drop down box. That would be easy enough to create. However, that would require me to manually enter in each container or OU in which an AD user account object could be created. For several reasons I would like this 'list of possibilities' to be created programatically. I know that enumerating the OUs in the Domain would not be difficult. It is simply making that output of that enumeration available for the dropdown box. This is where I have the problem!

Also, since I would like to make mail-enabled user account objects I would need to create a 'mailbox' for each user. I would like to enumerate each Store that might exist on each Exchange Server that might exist in the environment. In otherwords, to programatically create the drop down list from the specific environment.

If anyone needs to see the code that I have so far ( again, 'borrowed' from a post in this forum ) I will gladly post it......

Thanks for all of your help and sorry for the poor first post!

Cary

(in reply to Cary Shultz)
 
 
Post #: 2
 
 Re: Another Create User via HTA question - 7/3/2005 5:04:27 AM   
  ehvbs

 

Posts: 2220
Score: 50
Joined: 6/22/2005
From: Germany
Status: online
If your problem boils down to "filling some drop down/comboboxes/selects programatically"
perhaps looking at http://www.visualbasicscript.com/topic.asp?TOPIC_ID=3583 will get you startet.
[Just be aware of my blunder: not closing the <form> tag]

(in reply to Cary Shultz)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Another Create User via HTA question Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts