Solved

What is the underlying framework for powershell

Posted on 2014-09-10
5
99 Views
Last Modified: 2014-10-13
What is the underlying framework for powershell ?

I was told it is .NET, but what does that mean? or is WMI as well?
0
Comment
Question by:Ikky786
5 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 40316004
.NET is the framework.  It is developed using Microsoft's Visual Studio which includes the compilers for the different version including C++, VB.NET, and C#.NET.  Below are two links to tell you about .NET Framework.

http://msdn.microsoft.com/en-us/vstudio/aa496123.aspx

http://en.wikipedia.org/wiki/.NET_Framework
0
 

Author Comment

by:Ikky786
ID: 40316184
but isn't it also based on COM and WMI. rather confused.
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
ID: 40316224
No, I don't think so.  I think the WMI API is accessible from Powershell but COM API for WMI is written in C++ and not the .NET version.  More info here:  http://msdn.microsoft.com/en-us/library/aa389276%28v=vs.85%29.aspx
0
 
LVL 16

Assisted Solution

by:cantoris
cantoris earned 125 total points
ID: 40322762
When you install PowerShell, you actually install the "Windows Management Framework" which includes updates to WMI/CIM and WS-Man as well as PowerShell itself.  Look at the $PSVersionTable variable for an indication of the bits.

PowerShell itself runs on .NET v2 or v4 depending on which version of PowerShell you are using,  It can make extensive use of WMI and especially its newer more standards-compliant version CIM because that is what a lot of management (and a lot of new Cmdlets) is built on.  It can also access COM stuff too.
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 125 total points
ID: 40353439
The question is: does it matter?
No. PowerShell provides access to everything having a (.NET) interface. This included COM, WMI, and other stuff added by 3rd-party modules. You can even compile C#, C++-NET, VBScript, ... within PowerShell.
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question