473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

DirectoryEntry

vb.net 2003

i extracted a user homemdb

Homemdb :
CN=607MB-SG1-MBS1-Std,CN=607MB-SG1,CN=InformationStore,C
N=D1SNX607MB,CN=Servers,CN=Second Administrative Group,CN=Administrative
Groups,
CN=xxx,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=xxx,DC=co m

i would like only the "Storage grp" ie 607MB-SG1-MBS1-Std and the server it
resides , ie D1SNX607MB. I do not want so much data.

What is the schema properties for the excxhange fields above ? Or how do i
"substr" from the result above to get what i want?
Nov 23 '05 #1
2 3824
anyone can help ?

"James" <jk****@hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP14.phx.gbl...
vb.net 2003

i extracted a user homemdb

Homemdb : CN=607MB-SG1-MBS1-Std,CN=607MB-SG1,CN=InformationStore,C
N=D1SNX607MB,CN=Servers,CN=Second Administrative Group,CN=Administrative
Groups,
CN=xxx,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=xxx,DC=co m

i would like only the "Storage grp" ie 607MB-SG1-MBS1-Std and the server
it resides , ie D1SNX607MB. I do not want so much data.

What is the schema properties for the excxhange fields above ? Or how do i
"substr" from the result above to get what i want?

Nov 25 '05 #2
Dear James,

Don't know if it will be generic for all your homemdb strings, but what you
can do to extract your wanted data is the following:

Put this algorithm in a private function (returning an string array or
similair):
1. Split your string into a stringarray where you split on the comma's.
2. Loop your stringarray to split each element in it where you split on the
'='
3. Store each 'value' (= behind the '=') in a new array and return this.

Now call this private function in a new class' (eg. HomeMDB) constructor
(constructor should take the HomeMDB string) and save the array as a member
variable. Now create properties in this class like StorageGrp and Server
which map to its corresponding element in the stored array.

Hope this helps,

Michel van den Berg

"James" <jk****@hotmail.com> schreef in bericht
news:ur**************@TK2MSFTNGP09.phx.gbl...
anyone can help ?

"James" <jk****@hotmail.com> wrote in message
news:e3**************@TK2MSFTNGP14.phx.gbl...
vb.net 2003

i extracted a user homemdb

Homemdb : CN=607MB-SG1-MBS1-Std,CN=607MB-SG1,CN=InformationStore,C
N=D1SNX607MB,CN=Servers,CN=Second Administrative Group,CN=Administrative
Groups,
CN=xxx,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=xxx,DC=co m

i would like only the "Storage grp" ie 607MB-SG1-MBS1-Std and the server
it resides , ie D1SNX607MB. I do not want so much data.

What is the schema properties for the excxhange fields above ? Or how do
i "substr" from the result above to get what i want?


Nov 25 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Querton Pierre-Benoit | last post by:
Hello, I develop a class to control IIS throw ADSI. But is seems that some method doesn't work with IIS. To be more clear ;) When I do the following code : DirectoryEntry w3svc = new...
2
by: Jessica | last post by:
When I create a single LDAP ActiveDirectory user and use DirectoryEntry.Invoke("SetPassword"...), the user is created and the password is set with no problems. However, when I try to add more...
0
by: Jessica | last post by:
I have a .Net 1.0 web service that uses a .Net 1.1 assembly to create users, change users' passwords, validate users, and remove users from an LDAP server. The 1.1 code uses the DirectoryServices...
2
by: Jay | last post by:
Please excuse the double post if your reader shows this as a new and as a reply. I can only use the web interface and it puts my reply 34 pages in. I am getting an error while trying to do a...
2
by: AbdSol | last post by:
I wanted to know why the output is different & also like to know if C# i can get the user name using DirectoryEntry > find. C# String myADSPath = ("WinNT://"+...
1
by: kenguil | last post by:
I'm hoping that this is the right group to post this to and that someone will have an answer to this. Environment: 1) Laptop joined to domain "foo.com", logged in using cached credentials 2)...
2
by: Chad Beckner | last post by:
Hi everyone, Sorry for cross posting, but I wanted to try and put this where it would be more visible to everyone... :-) I need to find a way to be able to search for entries in our ADS tree. ...
0
by: Mik | last post by:
Hi I am struggling to make a Web site/Web Directory copy work. I am using the System.DirectoryServices to connect to my localhost machine. There I have two web sites: Mysite1 (siteno 1) and...
6
by: huzz | last post by:
How do i create a directory entry to access a user's details such as their email address. Here are the object structure. domain.co.uk | |Computer Services - Type (OU) | |Cliff Saran - Type...
1
by: Magnus R | last post by:
In VB.Net I'm trying to find out the names of what Administrative Groups exist by querying Active Directory. The problem is when I try and query the children of the key LDAP://CN=Administrative...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.