r/PowerShell • u/SpongeBobSquarePants • Jul 27 '16
Power Shell rumored to be open sourced soon
https://twitter.com/tomhounsell/status/7583139894870917127
u/jackmusick Jul 28 '16
This would be the highlight of my work life. I get that people like bash, but I'm really in love with the object oriented nature of PowerShell. Also, being able to connect to other servers and Office 365 on my Mac would be sweet.
6
u/HarbingerXXIV Jul 27 '16
As a Windows SysAdmin with little programming/scripting experience learning PowerShell , will this make Powershell a more valuable skill going forward?
23
u/alinroc Jul 28 '16
Even if they don't open source it, not knowing PowerShell as a Windows sysadmin puts you well behind the 8-ball in 2016.
0
9
u/wickedang3l Jul 28 '16
Anything that encourages availability and adoption on other platforms is going to make PowerShell more valuable. That said, if you're intent on working in the Microsoft ecosystem the PowerShell skillset is already a prerequisite for breaking into any senior-level work.
9
u/occamsrzor Jul 28 '16
I got a job as a systems engineer from tier 3 help desk/Jr Sys admin based on two skills; powershell and SCCM
11
u/Rollingprobablecause Jul 28 '16
*Powershell and The Devil
FTFY
6
5
u/BabyMaybe15 Jul 28 '16
Hahaha I love you. I also love SCCM in theory but oh God I also hated it in practice.
6
u/SSChicken Jul 28 '16
Sccm is the greatest product ever on paper! But oh man is it a monster in production
2
u/HarbingerXXIV Jul 28 '16
I completely understand. Hearing that its going to become an even more valuable skill increases my desire to continue studying
7
4
u/gospelwut Jul 28 '16
Not really, but it's already indispensable in any Windows context. It will help make improvements that couldn't be made to the core interpreter that tooling can't address, ie., dot sourcing in an IDE.
If you're asking if you should learn Powershell, the answer is beyond a doubt yes if you intend to continue using Windows. I'd also throw in something Linux friendly like Python or Bash.
I would never assume this means you can only use Powershell across OS. Not to mention the dependency requirements to get it running, early adoption issues, and legacy code/knowledge. You would essentially commit yourself to reinventing the wheel on Linux.
3
u/wickedang3l Jul 28 '16
If you're asking if you should learn Powershell, the answer is beyond a doubt yes if you intend to continue using Windows.
I'd actually expand this to include not just Microsoft products but VMware as well. PowerCLI has made the administration of vSphere so much more robust and the ease of automation has improved dramatically. The same can be said of the Compellent Storage Center command set, though that's a lot more specific.
2
u/gospelwut Jul 28 '16
True. I have yet to see an environment that used vSphere that didn't have a decent Windows footprint. Generally, heavy Linux shops will lean on OpenStack or otherwise.
I was probably was making some assumptions based on personal experience.
-1
u/RICHUNCLEPENNYBAGS Jul 28 '16
I don't think so but if you're a Windows system administrator it has a lot of value anyway.
6
u/signofzeta Jul 28 '16
Running a PoSh interpreter on a different platform would be okay, but what I really would love is a cross-platform PowerShell remote client. If there's a problem at work, I can get a remote session open from my Mac as easily as typing "ssh office" without needing a Windows VM and port 5980-whatever forwarded.
1
u/flipstables Jul 28 '16
Good point. Hopefully, they will make remoting into a non-domain-joined computer much easier too.
5
u/joerod Jul 27 '16
Would love to see what will be done with this. Would you be able to use Powershell core on a Linux box?
2
u/NotDaPunk Jul 27 '16
If something wasn't really meant for direct revenue, and was mainly being used to drive adoption of your other technology, then this may be a shrewd move to further expand your universe.
2
u/flipstables Jul 28 '16
This comes at no surprise considering the recent direction Microsoft has taken with dotnet core, Linux on Windows, and chakracore. Kudos.
2
u/toregroneng Jul 28 '16
Given that this is a recurring item on Jeffery Snover prediction list the last two year, it is not surprising, however most welcome. With .net core in the bag, this looks really, really good :-)
1
u/da_chicken Jul 28 '16
Eh. Color me unimpressed.
Do I just need to see the source code? Sure, sometimes, but I can do that already:
a.
Get-Command <CmdLet> | Select-Object DLL, ImplementingType | Format-Listb. ILSpy
Do I want to contribute bug fixes? It's highly unlikely that MS will accept community patches. In other words, it's source available, not open source.
Will I be able to recompile to make bug fixes? Hm. Maybe, but unlikely. All the PowerShell DLLs are code-signed by Microsoft, and Windows's self-repair functionality would likely replace any changes to the core DLLs. So, you'd have to have your fixed complied DLLs in another folder entirely and you'd have to load those DLLs at runtime and you'd have to play namespace tricks to keep PowerShell.exe from complaining about it's application domain.
Does it matter that it's on Linux or Mac OS X? Not really. I might be able to do some Windows administration from Linux or Mac, but since .NET is an object oriented environment it's of limited use for any form of POSIX administration since those are character based systems. It will be about as useful to systems administration as Cygwin is for Windows administration, which is to say: if you find it useful you're probably doing it the hard way.
1
u/YCGrin Sep 21 '16
For someone not so familiar with Powershell, how will making it open source affect us?
0
Jul 27 '16
[deleted]
4
u/RICHUNCLEPENNYBAGS Jul 28 '16
I mean, the big thing that makes it cool is the framework.
0
Jul 28 '16
[deleted]
4
u/RICHUNCLEPENNYBAGS Jul 28 '16
Oh, well, I agree with you there; it's just that I feel like a lot of the tools you're going to need to use outside of Windows won't play along.
0
Jul 28 '16
[deleted]
2
Jul 28 '16
I'm not totally disagreeing, but flipping between bash and posh regularly, I can tell you the thing I miss most in bash is the object pipeline. Consistency is an added bonus that comes from one developer. And .net is an awesome feature too. But the object pipeline is light years better than the text based pipeline in bash. It's not a 100% apples to apples comparison, cause obviously any command line app in windows puts out text also - not objects. But with all the builtin language/cmdlets that handle a lot of things, plus the ability to write your own cmdlet to wrap into an object on the pipeline.....
Yeah. Object pipeline is where it's at.
2
u/jjolla888 Jul 29 '16
Yes, the object pipeline is wonderful.
But it's not posh that gives its power ... it comes from a consistent view of objects which is created by the .Net library.
Unix has tried in the past to create this type of interface between objects .. but it becomes too hard because those utilities you love have typically been developed by different people ... and standardising on a common data structure has been too hard. .Net manages to accomplish this because there has been only one author - Microsoft.
0
Jul 28 '16
[deleted]
1
u/BradGroux Jul 28 '16
Yup, a little birdie has told me that it will be here much sooner than you think.
0
Jul 28 '16
[deleted]
6
u/SSChicken Jul 28 '16
There's so much I'd love to move over to bash. Don't get me wrong, I love me some bash and there's so much power to it already, but can you imagine having a fully featured object oriented pipeline?
Or even:
Add-cronjob -scriptblock {...} -minutes 5 -credential (get-credential)Yes please!
8
u/drew_russell Jul 28 '16
{Twitter} Hell, you know what, here's some screens of a build of #Powershell (PSCore) running on Linux and OSX /cc @h0x0d