Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7818461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:34:52+00:00 2026-06-02T06:34:52+00:00

Using PowerShell, it is possible to subscribe to a .NET, WMI or engine event

  • 0

Using PowerShell, it is possible to subscribe to a .NET, WMI or engine event via Register-ObjectEvent, Register-WmiEvent or Register-EngineEvent, respectfully, and each of these cmdlets have an –Action parameter to which you can hand a block of code that is to be invoked when the event occurs.

I can’t seem to figure out how, using one of the above event types (a .NET, WMI or engine event), I might be able to subscribe to the event that is raised on the creation of a new mailbox in Exchange Server 2010. To be more specific, I’m simply trying to figure out what event I need to subscribe to. Along these lines, I was hoping someone might be able to point me in the right direction as to where I could find more details on which events I can subscribe to in Exchange Server 2010 and the args that are passed when the event is raised.

To provide some context here, I have a cloud based mail service that needs to know how many users a given organization is using. Doing something like an AD sync is not an option. I have access to the Exchange Server 2010 server during the initial provisioning of the service and I will be able to execute PowerShell scripts in their environment at this time (PowerShell 2.0). Ideally I would like to have the -Action parameter execute a block of code that makes a call to my API notifying me that a new mailbox has been provisioned.

I am a .NET developer but I am new to working with Exchange and fairly new to working with PowerShell especially in this context. I can work out the scripts/code myself, but I would like to figure out if I can even subscribe to a new mailbox event before I go too far down this path.

Any help here would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:34:53+00:00Added an answer on June 2, 2026 at 6:34 am

    I’m not aware of Exchange raising any event in any of those contexts. Do you have access to the actual Exchange servers, or are you just a tenant?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using PowerShell, is it possible to remove some directory that contains files without prompting
Is it possible to create a zip archive using PowerShell?
SCENARIO I'm writing a cmdlet for Powershell 2.0 using Visual Studio 2008 and .NET
By any chance on Windows 7 using a batch file via DOS and/or Powershell
Is it possible to call a COM method from PowerShell using named parameters? The
Using Powershell 2.0, is it possible to traverse directory and print files on the
I'm using PowerShell v1.0 (It is a requirement that I cannot use 2.0) and
I'm using powershell script to run a few *.sql file. I can get the
I recently started using powershell, cause i find it very usefull and powerfull :)
I'm configuring a web site using PowerShell and I want to set the default

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.