Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Very new to VBscript

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Very new to VBscript
  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 >>
 Very new to VBscript - 7/4/2006 6:44:25 AM   
  yair666

 

Posts: 4
Score: 0
Joined: 7/4/2006
Status: offline
hi all , I'm very new to VBscript and to this forum and hope that someone can help me. I want to write a script that gets all the usernames and their emails from a domain and put them in txt or excell file.my problems are: 1. what method should I use to query the domain ?2.how do I get the values for the usernames and emails ? thanks in advance.
 
 
Post #: 1
 
 RE: Very new to VBscript - 7/4/2006 9:53:48 AM   
  DiGiTAL.SkReAM


Posts: 1140
Score: 6
Joined: 9/6/2005
From: Florida, USA
Status: online
Well, there are different methods, depending on what situation you are talking about.  If you mean that you are in a Windows 2003 Domain, then you would need to be able to perform LDAP queries to get this information out of the Active Directory (unless of course, you are using some other form of directory, such as E-Driectory, etc. - in which case I can't help you because I am not familiar with those platforms. heheh).
If, however, you are running on an old Windows NT 4.0 Domain, then you are talking about two seperate queries.  One to get the usernames from the PDC or BDC and another to get the information out of Exchange 5.5 ( I hope - unless you are running an earlier version of Exchange in which case may God have mercy on your soul).

In the Windows 2003 case, I would suggest that you do some searching for LDAP query, and even browse through the forum: Post a VBScript.
 
In the case of Windows NT 4.0, run a net user command on a domain controller, and then use the admin.exe program's command line arguments to dump a list of email accounts.


_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to yair666)
 
 
Post #: 2
 
 RE: Very new to VBscript - 7/6/2006 2:23:27 AM   
  yair666

 

Posts: 4
Score: 0
Joined: 7/4/2006
Status: offline
well , my domain that I want to run the script is based on win2000.I want to get the usernames and their emails from Active directory.hope that clears my question...

(in reply to DiGiTAL.SkReAM)
 
 
Post #: 3
 
 RE: Very new to VBscript - 7/6/2006 4:16:20 AM   
  mikeock


Posts: 124
Score: 1
Joined: 6/8/2006
Status: offline
On coding forums,
you will find that unless you show us, the other forum dwellers, what you have done so far. you wont get much of a coding response.

If you show that you have made an effort, people will be more than willing to help!

_____________________________

My sig sucks!

(in reply to yair666)
 
 
Post #: 4
 
 RE: Very new to VBscript - 7/6/2006 5:19:02 AM   
  DiGiTAL.SkReAM


Posts: 1140
Score: 6
Joined: 9/6/2005
From: Florida, USA
Status: online
quote:

ORIGINAL: yair666

well , my domain that I want to run the script is based on win2000.
I want to get the usernames and their emails from Active directory.
hope that clears my question...


As I said, browse through the Post a VBScript forum.  There are tons of posts in there with scripts that you can modify to fit your purposes.

Or porpoises, even.

Although, the scripts tend to get wet when fitted to porpoises, so it's probably best to modify them to fit your purposes,instead.

What?  What doya mean, tequila??

_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to yair666)
 
 
Post #: 5
 
 RE: Very new to VBscript - 7/6/2006 5:49:48 AM   
  yair666

 

Posts: 4
Score: 0
Joined: 7/4/2006
Status: offline
ok I will take a look at the coding forum , hope I can get something from there , thank for the help guys

(in reply to DiGiTAL.SkReAM)
 
 
Post #: 6
 
 
 
  

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 >> Very new to VBscript 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