Solved

What is the underlying framework for powershell

Posted on 2014-09-10
5
91 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 68

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

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…
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 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

14 Experts available now in Live!

Get 1:1 Help Now