How to access Exchange "Last Logon Time" ???

How to access Exchange "Last Logon Time" ???

Post by Matjaz Ladav » Thu, 13 Mar 2003 06:15:45



If you have Exchange 2000, then SP2 will give you the ability to use WMI to
monitor/query Exchange server. This way you could get mailbox list and all
the data you need.

Regards

Matjaz Ladava


Quote:

> I'd like to programmatically access the Last Logon Time for all Exchange
> mailboxes in an AD organization.

> I'm wading through all the MS documentation, but it's pretty slow going.

> Anybody share a clue about how to do this?  VBScript, C++ would be best,
> but at this point I'm not picky.

> Gracias

> --
> For email, put NOT SPAM in Subject or I won't see your msg.

> ............ Personal opinions ............................
>  ....... ObURL: http://home.earthlink.net/~huddler........
> ..........................    <><     .....................

 
 
 

How to access Exchange "Last Logon Time" ???

Post by Matjaz Ladav » Thu, 13 Mar 2003 16:43:48


I use visual studio .NET to create applications for querying and
manipulating WMI, so I will point you into that direction.
First you have to download WMI Studio
(http://msdn.microsoft.com/library/default.asp?url=/downloads/list/wmi...
under Administrative Tools). This way you could browse WMI objects on your
server. If you connect to \\root namespace, you will see ExchangeServer WMI
namespace. Under that you have all WMI objects which exchange supports.
You can use following link to see some examples of using WMI
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgu...
l/cpconbrowsingthewmischema.asp

http://www.csharphelp.com/archives2/archive334.html

http://www.freevbcode.com/ShowCode.Asp?ID=4571

http://msdn.microsoft.com/msdnmag/issues/02/05/WMIMan/default.aspx

This are not Exchange examples, but if you have WMI Browser and this code
samples you can easily figure out how to access exchange using WMI.

Regards

Matjaz Ladava



> > If you have Exchange 2000, then SP2 will give you the ability to use WMI
to
> > monitor/query Exchange server. This way you could get mailbox list and
all
> > the data you need.

> Which WMI provider would I use, though?  I know of AD, Event Log,
> Performance Counter, Registry, SNMP, WDM, Win32, and Windows Installer
> providers; it's not evident which of these provides an interface to
> Exchange.

> Do you know of an example script on line somewhere?  Nothing like a
> working example to help turn a theory into a solution.

> Thanks, Matjaz.

> Richard

> > Regards

> > Matjaz Ladava



> > > I'd like to programmatically access the Last Logon Time for all
Exchange
> > > mailboxes in an AD organization.

> > > I'm wading through all the MS documentation, but it's pretty slow
going.

> > > Anybody share a clue about how to do this?  VBScript, C++ would be
best,
> > > but at this point I'm not picky.

> > > Gracias

> > > --
> > > For email, put NOT SPAM in Subject or I won't see your msg.

> > > ............ Personal opinions ............................
> > >  ....... ObURL: http://home.earthlink.net/~huddler........
> > > ..........................    <><     .....................

> --
> For email, put NOT SPAM in Subject or I won't see your msg.

> ............ Personal opinions ............................
>  ....... ObURL: http://home.earthlink.net/~huddler........
> ..........................    <><     .....................


 
 
 

1. Bug with "File Last Access Time"?

Hello,

it seems to me that not all file accesses set/modify the "file last access
time" correctly.
You could repro the wrong behavior like so:

1. Create a .txt file    (all create/modify/access times are equal, ok)
2. Rename it to an file type that is unknown within your system
    Just wait a minute (for easier file time differences detection)
3. Now open the file again (e.g "Send to") with Notepad, close it WITHOUT
any changes
    -> the "file access time" will left be unchanged!!
    -> you could reopen the file as often as you like it, same result

4. Now rename it back to .txt type.
5. Double-Click it to open the file, close it WITHOUT any changes
    -> the "file access time" will be changed as expected!!
    -> you could reopen the file as often as you like it, same result

We expect the same behavior for step 2/3 as for step 4/5. Is it "by design",
or really a bug?
 We use w2k professional SP1 German.

Any MS statements are welcome.

Regards, Torsten Rendelmann

2. CDAR504 Atari CD ROM Drive

3. Explorer "Read" access but deny "copy" and "write"

4. Rebuilding a site

5. What's different "Logon Event" and "Account Logon Event"

6. $1 million PTC extortion? Computer Aided Surgery?? The Nintendo Cube???

7. How do i make the "Last Known Good Configuration" the "Current Configuration"

8. FS: 3 month old Palm IIIc - UK only

9. Change "Last Known Good" to "Default"

10. "Server failed to find work item X times in the last 60 seconds.."

11. """""""""""""""""""""""""""''product ID""""""""""""""""""""""""""'''

12. How to disable "last user logon"?

13. "Do not display last user name in logon screen" policy on W2000 terminal server