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? 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?
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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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://"+...
|
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)...
|
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. ...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |