lyledg Posted August 7, 2007 Share Posted August 7, 2007 Hey guys I am currently on a MS Powershell course and there are a lot of good things that can be done with this tool. The only drawbacks are: 1) You need .NET framework 2.0 instlled(Sigh....as usual) 2) Need Powershell INSTALLED....(Just trying to use the powershell.exe standalone won't work!!) So, taking this all into account, are there any plans afoot to leverage off PS using Autoit, and by having functions available for it in Autoit? Cheers Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 7, 2007 Administrators Share Posted August 7, 2007 You should be able to use AutoItX (The COM component) from powershell - but i've not played with it yet. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
MHz Posted August 7, 2007 Share Posted August 7, 2007 So, taking this all into account, are there any plans afoot to leverage off PS using Autoit, and by having functions available for it in Autoit?It is just another CLI interpreter like Comspec, so will be used within AutoIt the same as Comspec. I see no direct connection between AutoIt and CLI interpreters so I cannot envision the concept of having inbuilt functions for PowerShell. AFAIK, if AutoIt were to try and mimic some of the functionality of PowerShell, then it would do it through the runtime files same as PowerShell does.I have not seen any documentation for any object usage from installing PowerShell. If it has objects then that would help with Autoit scripts interactivity by using Com. Link to comment Share on other sites More sharing options...
ptrex Posted September 13, 2007 Share Posted September 13, 2007 @allFor those who are interested in using Powershell (DotNet Assemblies) in AU3.this article tells you all about it how to expose DotNet to COM (which can be used in Au3)DotNet to COMregards,ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
ValeryVal Posted September 14, 2007 Share Posted September 14, 2007 There is one dark place, though: However, Microsoft has made the CLR execution engine (MSCorEE.dll ) a full COM server. It can load your assembly at runtime and provide you with a proxy to your .NET classes. My code works fine and CRL is ready by COM server mscoree.dll #include <GUIConstants.au3> ;Declare objects $oMSCorEE = ObjCreate("System.Security.Cryptography.XXXXXXX") if not IsObj($oMSCorEE) then MsgBox(0,'','Can not create MSCorEE object!') exit endif But it has numerous interfaces. Is there DOC for ther's usage? Or How can I create instance of NET objects without regasm.exe (by fly)? The point of world view Link to comment Share on other sites More sharing options...
ValeryVal Posted September 14, 2007 Share Posted September 14, 2007 I found it.Class Browser The point of world view Link to comment Share on other sites More sharing options...
ptrex Posted September 14, 2007 Share Posted September 14, 2007 @ValeryAs you probably have seenn your classes are not recognized as COM objects.The only way I found to tranform .Net Classes to COM is the way it is described in the document I post before.It would mean a huge savings, if the AU3 developer would build CLR HOST for .Net in AU3CLR Host application for DotNetThis was the DotNet Assamblies could be run like COM interface does in AU3.The AU3 scripters would not need to convert to DotNEt Assemblies to COM (using an external tool like REASM),and than run the COM interface of the assembly through AU3This is a huge step forward I would think.regardsptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
ptrex Posted September 14, 2007 Share Posted September 14, 2007 (edited) @ValeryAs you probably have seenn your classes are not recognized as COM objects.The only way I found to tranform .Net Classes to COM, is the way it is described in the document I post before.The LONG way as you can read yourselve.It would mean a huge savings, if the AU3 developer would build CLR HOST for .Net in AU3CLR Host application for DotNetThis was the DotNet Assamblies could be run like COM interface does in AU3.The AU3 scripters would not need to convert to DotNEt Assemblies to COM (using an external tool like REGASM),and than run the COM interface of the assembly through AU3This is a huge step forward I would think.regardsptrex Edited September 14, 2007 by ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
ValeryVal Posted September 15, 2007 Share Posted September 15, 2007 Sun allows to build any it's classes for COM access by ServiceManager which has so-called Bridge. But they has own concept about interfaces and instances. NET is weird technology where there is very simple technics to use NET classes by common langs. But MS hasn't desire to open it, I think. I can to ignore their's cool objects from NET's world. And you have to wait a more good times. The point of world view Link to comment Share on other sites More sharing options...
ValeryVal Posted September 15, 2007 Share Posted September 15, 2007 They tease a candy from the island surrounded by their's sharks. The point of world view Link to comment Share on other sites More sharing options...
ValeryVal Posted September 16, 2007 Share Posted September 16, 2007 BTW. I found one indicative and instructive article with titleAnalysis of .NET Use in Vista RC2...Put this another way: 3.7% of the executable files (excluding the framework files) in Vista RC2 Ultimate are managed, therefore, Vista is less than 4% managed. Note that I am using the number of executable files since it is easier to measure than the number of publicly available API methods.It shows that Vista's development has done without application of NET. So, are they ready to use own tool? Or this is deadborn child for the general pleasure. The point of world view Link to comment Share on other sites More sharing options...
piccaso Posted September 17, 2007 Share Posted September 17, 2007 "They" tried to write Vista in .NET but had to reconsider when it wasn't fast enough CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map Link to comment Share on other sites More sharing options...
ValeryVal Posted October 5, 2007 Share Posted October 5, 2007 Now they want to open it for development and processing acceleration by "hackers". ;-)Releasing the Source Code for the .NET Framework Libraries The point of world view Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now