Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Powershell OLE Automation?

Closed Thread
 
Thread Tools Display Modes
Old 04-16-2008   #1 (permalink)
iActiveScript & C# issue
Guest


 

Powershell OLE Automation?

Using IActiveScriptSite and CcmdTarget we can write our own script engine

for parsing VBscript code.
like wise How we can write powershell script parsing engine
using VC++ automation or other technology?
(Active Scripting based on OLE Automation)

Old 04-16-2008   #2 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Powershell OLE Automation?

iActiveScript & C# issue wrote:
Quote:

> Using IActiveScriptSite and CcmdTarget we can write our own script engine
>
> for parsing VBscript code.
> like wise How we can write powershell script parsing engine
> using VC++ automation or other technology?
> (Active Scripting based on OLE Automation)
>
I'm not the most experience programmer, but I am know that there isn't a
COM/OLE interface to PowerShell.

I believe C++ requires a wrapper to access PowerShell's .NET assemblies
(written in C#).

I would like to understand how that works a bit better though...

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
Old 04-16-2008   #3 (permalink)
Roman Kuzmin
Guest


 

Re: Powershell OLE Automation?

It is not quite clear what exactly you want to accomplish. Could you please
clarify and\or provide a use case example?

Perhaps you are interested in implementing your own PowerShell host. Then
yes, it is possible, but it has nothing to do with COM. You may find some
examples here:
http://msdn2.microsoft.com/en-us/lib...61(VS.85).aspx

--
Thanks,
Roman Kuzmin

http://code.google.com/p/farnet/
PowerShell and .NET in FAR Manager


Old 05-11-2008   #4 (permalink)
Alex Riedel
Guest


 

RE: Powershell OLE Automation?

PrimalScript 2007 now includes a component called ActiveXPosh.
It is a PowerShell host with a COM interface. Maybe that is what you are
looking for.

Alexander Riedel
SAPIEN Technologies, Inc.


"iActiveScript & C# issue" wrote:
Quote:

> Using IActiveScriptSite and CcmdTarget we can write our own script engine
>
> for parsing VBscript code.
> like wise How we can write powershell script parsing engine
> using VC++ automation or other technology?
> (Active Scripting based on OLE Automation)
>
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel does not die using automation Terry Holland .NET General 11 07-07-2008 07:51 PM
Getting message's recipients using PowerShell automation onekir@mail.ru PowerShell 0 03-23-2007 12:00 PM
Windows Installer automation interface problems in PowerShell? Alex K. Angelopoulos [MVP] PowerShell 6 08-04-2006 11:47 AM
Powershell interacting with COM automation with late-binding? =?Utf-8?B?S2Jnbw==?= PowerShell 3 07-14-2006 12:12 PM
Automation classes... Help! Nick_Journals Avalon 0 02-02-2006 12:50 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50