Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WMI -VB scripting help please

Posted on 2004-08-03
12
Medium Priority
?
293 Views
Last Modified: 2010-04-13
Hi guys,

I want to query some information from Exchange and IIS using any form of script …may be WMI or VB …here is the attribute I want to read..

Exchange…

Store group settings…

Name
Policy applied
File path for the Database


Storage groups…

Name
Transaction log file location
System path location
Attributes we set using ADSI edit like “msExchESEParamLogBuffers”

In IIS all the settings like whatever we manually set using “Internet service Manger”
And properties for both server & sites Etc…
0
Comment
Question by:moorthy_kulumani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
12 Comments
 
LVL 9

Expert Comment

by:jdeclue
ID: 11707280
You can use windows scripting host, vb, vb.net etc... which language are you comfortable in... any of these can query both WMI and AD for the information you require. I prefer VB.net. Are you actually looking for the code to query everything above?
0
 
LVL 3

Author Comment

by:moorthy_kulumani
ID: 11712758
Yup ..I am aware that I can do using these.

I am looking for the codes. Or some information like how to query....
Likle WMI classes for exchange and IIS  for the said values..etc..I tried WMI for Operating systems with scriptomatic tools and that really helped me a lot for OS related query. But now i am looking for exchange and other setting.


Regards
0
 
LVL 9

Expert Comment

by:jdeclue
ID: 11714470
Scriptomatic is fine for WMI, I am not sure of the IIS and exchange specific. I often use VB.NET and the DirectorySearcher function to manipulate and search active directory. I really can't help you much with the details, but no one else is responding to the post, I would try posting a link from the VB or scripting section to this question.

Here is a link to a script to pull mailbox sizes from Exchange, it is not the correct WMI objects, but it will show you how to attach to the Exchange Server and query for information, I am sure you can find the objects and swap them out.

http://blogs.brnets.com/michael/archive/2004/07/26/181.aspx
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 3

Author Comment

by:moorthy_kulumani
ID: 11715434
Thanks for Your Help....I have WMi classes to do all these stuffs.
but i am looking for pulling the configuration where there is no classes for that...

You help very much appriciated
0
 
LVL 9

Expert Comment

by:jdeclue
ID: 11716161
Well, grasping at straws a little bit, until someone a lot wiser than me comes along. Here is an interesting article at microsoft which refers to the WMI classes including storage groups etc. Might be a big help.

http://www.microsoft.com/technet/prodtechnol/exchange/2000/maintain/mngex2k3.mspx#XSLTsection125121120120
0
 
LVL 3

Author Comment

by:moorthy_kulumani
ID: 11716534
You are really great help. But i have lot of classes for Exchange but all specific to What is going on with Exchange (monitoring ) Nothing for pulling the configurations....I am sory about that....I am also trying hard to get some.....
0
 
LVL 9

Expert Comment

by:jdeclue
ID: 11716738
Found it, I think?!

CDO for Exchange Management (CDOEXM) Library CDOEXM cdoexm.dll Include this library if you plan to manage Exchange Server 2003 servers and users in your application

Here is the link:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_exch2k_adding_references_to_appropriate_type_libraries.asp


0
 
LVL 3

Author Comment

by:moorthy_kulumani
ID: 11717064
I dont think that is realted to what we are looking..........

and one more we are having 2000
0
 
LVL 9

Accepted Solution

by:
jdeclue earned 500 total points
ID: 11717216
Can you use VB or VB.NET, if so then you can add the "cdoexm.dll" to your project and you will have all of the Exchange System Administrator Functions available to you. The majority of your Exchange stuff could be accessed, viewed and manipulated using this library. Between this and active directory I believe I could access every single Exchange object. I would do not know, however, whether I could do this with vb script. :(
0
 
LVL 9

Expert Comment

by:jdeclue
ID: 11717222
p.s. Exchange 2000 has this library as well.
0
 
LVL 3

Author Comment

by:moorthy_kulumani
ID: 11717417
I am an system / network admin guy. I am not sure on writing VB script.

I have to look for somebody. Otherwise i have look for some other tool. I should consider your efforts and prompt response.

Thanks for sharing infos
0
 
LVL 9

Expert Comment

by:jdeclue
ID: 11717555
I understand, I am a systems/admin as well. Sorry I couldn't help.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Read on to get a few ideas on how to promote your next corporate event.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question