Login | |
|
 |
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
|
|
| |
|
|
|
 |
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!
|
|
| |
|
|
|
 |
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
|
|
| |
|
|
|
|
|