Groups > Microsoft > Windows PowerShell > Re: Powershell OLE Automation?




Powershell OLE Automation?

Powershell OLE Automation?
Wed, 16 Apr 2008 00:11:01 -070
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)
Post Reply
Re: Powershell OLE Automation?
Wed, 16 Apr 2008 05:10:57 -070
On 2008-04-16, Marco Shaw [MVP] <marco.shaw@_NO_SPAM_gmail.com> wrote:
> 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...

I have never used it, but these pages would probably be relevant:
http://msdn2.microsoft.com/en-us/library/zsfww439.aspx
http://msdn2.microsoft.com/en-us/library/9x0wh2z3.aspx
http://msdn2.microsoft.com/en-us/library/ms404385.aspx
Post Reply
Re: Powershell OLE Automation?
Wed, 16 Apr 2008 08:36:53 -030
iActiveScript & C# issue wrote:
> 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:
Post Reply
Re: Powershell OLE Automation?
Wed, 16 Apr 2008 13:29:01 +010
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/library/ms714661(VS.85).aspx

-- 
Thanks,
Roman Kuzmin

http://code.google.com/p/farnet/
PowerShell and .NET in FAR Manager
 
Post Reply
about | contact