Windows Vista Forums

Can Powershell handle COM events?
  1. #1


    Duncan Smith Guest

    Can Powershell handle COM events?

    Can Powershell respond to events from a COM object? 'Powershell in
    Action' covers COM interaction but makes no mention of events.



    Many thanks,

    Duncan


      My System SpecsSystem Spec

  2. #2


    hrh1818 Guest

    Re: Can Powershell handle COM events?

    On Jul 24, 3:12 am, Duncan Smith <DSmith1...@googlemail.com> wrote:
    > Can Powershell respond to events from a COM object? 'Powershell in
    > Action' covers COM interaction but makes no mention of events.
    >
    > Many thanks,
    >
    > Duncan


    A previous reply to a question regarding using PowerShell with serial
    I/O ports supplied this reply, "async event support is not yet
    supported natively". Hence I would be very surprised if PowerShell
    1.0 can respond to COM events. A work around is Oisins excellent
    event library. See http://www.codeplex.com/PSEventing

    Howard


      My System SpecsSystem Spec

  3. #3


    Thomas Lee Guest

    Re: Can Powershell handle COM events?

    In message <1185264757.226426.116230@o61g2000hsh.googlegroups.com>,
    Duncan Smith <DSmith1974@googlemail.com> writes
    >Can Powershell respond to events from a COM object? 'Powershell in
    >Action' covers COM interaction but makes no mention of events.


    Not in V1.

    Thomas

    --
    Thomas Lee
    doctordns@gmail.com
    MVP - Admin Frameworks and Security

      My System SpecsSystem Spec

  4. #4


    Duncan Smith Guest

    Re: Can Powershell handle COM events?


    >
    > A previous reply to a question regarding using PowerShell with serial
    > I/O ports supplied this reply, "async event support is not yet
    > supported natively". Hence I would be very surprised if PowerShell
    > 1.0 can respond to COM events. A work around is Oisins excellent
    > event library. Seehttp://www.codeplex.com/PSEventing
    >


    Thanks, looks useful.



      My System SpecsSystem Spec

  5. #5


    Duncan Smith Guest

    Re: Can Powershell handle COM events?


    >
    > >Can Powershell respond to events from a COM object? 'Powershell in
    > >Action' covers COM interaction but makes no mention of events.

    >
    > Not in V1.
    >


    A real pity that. Are there already plans for it in v2, isn't there
    somewhere on MS where MVPs can raise wish-list items and put them out
    to be seconded by users?




      My System SpecsSystem Spec

  6. #6


    Marco Shaw Guest

    Re: Can Powershell handle COM events?

    Duncan Smith wrote:
    >>> Can Powershell respond to events from a COM object? 'Powershell in
    >>> Action' covers COM interaction but makes no mention of events.

    >> Not in V1.
    >>

    >
    > A real pity that. Are there already plans for it in v2, isn't there
    > somewhere on MS where MVPs can raise wish-list items and put them out
    > to be seconded by users?


    Yup:
    https://connect.microsoft.com/site/s...aspx?SiteID=99

      My System SpecsSystem Spec

  7. #7


    Thomas Lee Guest

    Re: Can Powershell handle COM events?

    In message <1185453612.582318.211220@w3g2000hsg.googlegroups.com>,
    Duncan Smith <DSmith1974@googlemail.com> writes
    >A real pity that.


    Agreed. But to ship is to choose - I prefer shipping PowerShell early
    and then doing remoting in V2.

    > Are there already plans for it in v2,


    Allegedly.

    > isn't there somewhere on MS where MVPs can raise wish-list items


    Yes.

    > and put them out to be seconded by users?


    Connect.

    --
    Thomas Lee
    doctordns@gmail.com
    MVP - Admin Frameworks and Security

      My System SpecsSystem Spec

Can Powershell handle COM events? problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Online calendar events showing up as Private events? Scott Live Mail 0 13 Jan 2010
Using PowerShell to handle Eventlog Florian PowerShell 2 15 Apr 2008
New snapin for consuming .NET events in PowerShell Oisin Grehan PowerShell 1 10 May 2007
Manipulating mouse events through Powershell danielfeichtinger@gmail.com PowerShell 5 17 Apr 2007
Events with powershell Roy PowerShell 5 13 Nov 2006