Solved

What is the underlying framework for powershell

Posted on 2014-09-10
5
89 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 82

Accepted Solution

by:
Dave Baldwin earned 250 total points
Comment Utility
.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
Comment Utility
but isn't it also based on COM and WMI. rather confused.
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
Comment Utility
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
Comment Utility
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 68

Assisted Solution

by:Qlemo
Qlemo earned 125 total points
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now