News for hackers. Stuff that matters.
Re:Jeffrey Snover and the Making of PowerShell by hobs on Thursday July 04, 2024 @08:16AM (#40874282)
And as far as I can tell its no longer a priority at MSFT, reading the complaints from the MVPs on Github about how MSFT promised a bunch of further investment that has not been realized, changes not implemented, good stuff just sort of left to rot on the vine.

I loved powershell with (some of) its weird warts, but I have moved on.

Re:Jeffrey Snover and the Making of PowerShell by pletnes on Thursday July 04, 2024 @08:20AM (#40874307)
My biggest gripe is that some Azure stuff seems to be available only through powershell, which is hard to install and configure (I think) in certain corporate policy-infested environments.
Re:Jeffrey Snover and the Making of PowerShell by pjmlp on Thursday July 04, 2024 @10:24AM (#40875197)
Actually Azure CLIs are kind of schizophrenic, in typical MS fashion.

You have Azure Powershel Cmdlets (the old 5.1 based, and the new Powershell Core based), AZ CLI (in Python), AZD CLI (in Go).

The only one that offers full power is actually the AZ CLI one, e.g. some Kubernetes features aren't exposed in the others.

Re:Jeffrey Snover and the Making of PowerShell by lc9er on Thursday July 04, 2024 @06:20PM (#40878530)
Yeah - and a number of Azure/O365 Powershell modules have long been deprecated. The promise of 1:1 Graph API replacements has failed to materialize for years now.
Re:Jeffrey Snover and the Making of PowerShell by mycall on Thursday July 04, 2024 @10:24PM (#40879461)
Is this a case of programming languages > shell scripts, or REST APIs the LCD?
Re:Jeffrey Snover and the Making of PowerShell by Uvix on Thursday July 04, 2024 @08:41AM (#40874454)
The Az PowerShell module just uses HTTP APIs, so anything they do can be done with other tooling if you really want to.

(There’s also the Az CLI tool, which I don’t like as much as the Az PowerShell module but might be easier to manage in an environment like that.)

Re:Jeffrey Snover and the Making of PowerShell by ExoticPearTree on Thursday July 04, 2024 @09:57AM (#40875009)
Yes, true, they call APIs. But for whatever reason, MS decided that instead of documenting those APIs they went on the route of abstracting them in PS modules or the az-cli submodules that its mind boggling.
Re:Jeffrey Snover and the Making of PowerShell by RajT88 on Thursday July 04, 2024 @01:17PM (#40876512)
The REST API is documented. Maybe not completely so, but mostly.

https://learn.microsoft.com/en-us/rest/api/azure/

Re:Jeffrey Snover and the Making of PowerShell by nullindividual on Thursday July 04, 2024 @10:02AM (#40875046)
The Azure CLI [0] is a viable method of managing Azure infrastructure if you don't/cannot use PowerShell.

[0] https://learn.microsoft.com/en-us/cli/azure/what-is-azure-cl...

Re:Jeffrey Snover and the Making of PowerShell by RajT88 on Thursday July 04, 2024 @12:28PM (#40876137)
If it exists in Powershell, it is backed by a REST API. Lots of AZ SDK's include a helper method to make calling the API's easier (like az rest cli command or invoke-azrestmethod).
Re:Jeffrey Snover and the Making of PowerShell by mike_hearn on Thursday July 04, 2024 @09:28AM (#40874792)
There have been regressions even. PowerShell 7 isn't backwards compatible with PowerShell 5 and some features that used to exist are just gone with no plan for a return, due to (surprise) fights between .NET and Windows teams over API metadata formats or something. Most incredibly Microsoft situation ever.

Say what you want about bash, at least it doesn't pull stunts like that.

Re:Jeffrey Snover and the Making of PowerShell by JoBrad on Thursday July 04, 2024 @10:08AM (#40875100)
Are there any currently-supported versions of Windows that don’t support Powershell Core? I recall installing it on Windows 2012, even.

> Say what you want about bash, at least it doesn’t pull stunts pile that.

I guess it depends on what you consider to be included in the terminal’s domain? There are entire papers and guides on which commands are considered safe (sometimes only when run in a very specific way), and which variants, alternatives, etc. you should use instead, for Bash scripts, because of the inconsistency in what a command evaluates, does, and returns for various distros. That’s not to hate on Bash, but just to point out that it’s not a strength of Bash vs PS.

Re:Jeffrey Snover and the Making of PowerShell by sllabres on Thursday July 04, 2024 @12:30PM (#40876152)
When Powershell was first released I was primarily working with Unices and was very curious what would work better: The Unix way in cutting, changing and grepping some part of stdout (in some OS a bit simplified b with options for automated pricessing which commands the programm to output colon delimited or otherwise formatted)

Or the Powershell way where on can access data members directly.

I thought I would prefer the second method more, because the access looked much cleaner/structured.

But after all these years (still mostly Unix scripting but Powershell and some other environments too) my mind has changed.

Would like to hear what others would prefer' Unix method with some scripting language or windows method with Powershell)

Re:Jeffrey Snover and the Making of PowerShell by chaps on Thursday July 04, 2024 @01:38PM (#40876665)
Combining both powershell and unix is neat!
Re:Jeffrey Snover and the Making of PowerShell by justsomehnguy on Thursday July 04, 2024 @06:53PM (#40878683)
> The Unix way in cutting, changing and grepping some part of stdout

And this is exactly the problem.

You no longer have en_US as a locale? Have some titles lounger.

You no longer have en locale at all? Have an greška instead of error.

Oh, you the schmuk who don't agrees to use the best units in the world, totally retarded and "bUt iF yoU WriTe THe dATe as in the journal..."[0] but freedom ones? No longer accept 13 as an hour. Like come on, every idiot knows there is no such thing as an 13th hour!

Oh, you added an additional column to help your busniessor whatever? Your sEd MagIK gone to hell.

Should I continue?

[0] when was the last time you actually wrote multiple documents so you can actually benefit from MMM-dd?

Re:Jeffrey Snover and the Making of PowerShell by akira2501 on Thursday July 04, 2024 @01:31PM (#40876609)
> because of the inconsistency in what a command evaluates, does, and returns for various distros.

I'm not aware of any difference in bash between vendor distributions for which this is true.

Re:Jeffrey Snover and the Making of PowerShell by nrr on Thursday July 04, 2024 @08:42PM (#40879110)
It's less of a problem in today's Linux monoculture, but I actually initially learned Perl and Tcl precisely because of subtle incompatibilities between systems for tools like sed and awk, not to mention utilities like ps and tar.
Re:Jeffrey Snover and the Making of PowerShell by larntz on Friday July 05, 2024 @07:30AM (#40881855)
This may not count because it's not bash specifically or even Linux -> Linux, but one place you might run into this is running scripts between Linux and Mac/BSD.

In the past I've seen bad things happen because a script was written by someone on OSX that gets run on a Linux (GNU) based system.

Two common examples are the `sleep` and `sed` commands.

Edit: I meant to reply to the parent comment.

Re:Jeffrey Snover and the Making of PowerShell by WithinReason on Thursday July 04, 2024 @10:03AM (#40875062)
Re:Jeffrey Snover and the Making of PowerShell by oblio on Thursday July 04, 2024 @11:24AM (#40875635)
Always was ︻┳═一

(hey, I managed to sneak a rifle past HN's Unicode filter :-D)

Re:Jeffrey Snover and the Making of PowerShell by binkHN on Thursday July 04, 2024 @01:57PM (#40876806)
Wow, the Oracle chart is so spot on.
Re:Jeffrey Snover and the Making of PowerShell by atmavatar on Thursday July 04, 2024 @10:26AM (#40875214)
I was under the impression much of that is due to the fact that PowerShell is Windows-only, while PowerShell Core is multi-platform.
Re:Jeffrey Snover and the Making of PowerShell by paulirwin on Thursday July 04, 2024 @12:07PM (#40875954)
They now refer to the former as Windows PowerShell, and the latter as PowerShell. The Core part was dropped.
Re:Jeffrey Snover and the Making of PowerShell by g15jv2dp on Thursday July 04, 2024 @10:00AM (#40875030)
It's easy not to lose features when you don't have many to begin with... I mean, what are the features that disappeared? What's the bash equivalent of these features?
Re:Jeffrey Snover and the Making of PowerShell by SonOfLilit on Thursday July 04, 2024 @12:03PM (#40875919)
For a programming language, losing a feature is much, much worse than not having it in the first place.
Re:Jeffrey Snover and the Making of PowerShell by g15jv2dp on Thursday July 04, 2024 @12:50PM (#40876316)
I'd like to see examples to judge. What are the features? Also, are you confusing "the language" with "the standard library"?
Re:Jeffrey Snover and the Making of PowerShell by SonOfLilit on Friday July 05, 2024 @04:41AM (#40880925)
Years old existing code suddenly breaking because of an infrastructure update is just way worse than limitations when writing new code.
Re:Jeffrey Snover and the Making of PowerShell by mike_hearn on Thursday July 04, 2024 @04:45PM (#40877902)
Re:Jeffrey Snover and the Making of PowerShell by akira2501 on Thursday July 04, 2024 @01:30PM (#40876605)
My guess from external observations is that the reward and bonus structure inside Microsoft is entirely decoupled from customer feedback and response. The middle managers are in charge of the product and they're fully insulated from any concerns outside of getting this years maximum bonus for themselves.

Monopolies always destroy innovation.

Re:Jeffrey Snover and the Making of PowerShell by pjmlp on Thursday July 04, 2024 @02:03PM (#40876844)
As someone deep into Microsoft ecosystem since MS-DOS 3.3, it feels like the old ways of WinDev vs DevDiv politics have slowly creeped back into daily Microsoft.

It is as if DevDiv is now full into UNIX like, poliglot, FOSS culture and such, now under Azure business unit, whereas WinDev is back into how to sneak people into Windows licensing and the usual old culture.

Re:Jeffrey Snover and the Making of PowerShell by valiant55 on Thursday July 04, 2024 @09:29AM (#40874805)
What have you moved on to? I don't think I could go back to bash after learning PowerShell and no longer parsing string output.
Re:Jeffrey Snover and the Making of PowerShell by hobs on Thursday July 04, 2024 @10:11AM (#40875119)
Pretty much all python, dicts work just as well over here.
Re:Jeffrey Snover and the Making of PowerShell by JoBrad on Thursday July 04, 2024 @09:34AM (#40874833)
I’m curious about the scenarios that Powershell used to work for you in, and what tooling you’ve moved on to. Do you use something else for Write-Once-Run-(Nearly)Anywhere type scripts?

I primarily write Powershell Core scripts for scenarios where I need to execute the same commands on a variety of operating systems, and I know that the script is likely to be maintained by your “typical” sysadmin (highly technical, but not a programmer)in an environment where installing runtimes for programming languages is discouraged. I switched to macOS as my daily driver about 2 years ago, so PS fits these scenarios pretty well, and Powershell Core updated fairly regularly. Sure there are annoying bugs and misses with the built-in and add-on MS modules: networking cmdlets are an almost total miss, Get-LocalGroup (and maybe other commands?) is totally broken on some AzureAD-joined machines, and the Azure and MgGraph Powershell modules still don’t have enough coverage to move on from the legacy Windows Powershell modules (or even to rely on just one of them, for areas they supposedly cover). But overall I’ve been pretty happy that 99% of the time I can write a powershell script once, and it will run on any machine with Powershell Core, in a consistent way.

Re:Jeffrey Snover and the Making of PowerShell by hobs on Thursday July 04, 2024 @10:10AM (#40875117)
Don't do as much "local" sysadmin stuff as most of the workloads moved to the cloud and containers, and that's all automateable via APIs which are much nicer to work with in python with its useful library support. (one of the biggest misses in powershell)

There's still a lot of good stuff wrt powershell maintainability by normal humans (though the entire mental model of object output usually throws them for a loop for years) managing local stuff.

Re:Jeffrey Snover and the Making of PowerShell by pjmlp on Thursday July 04, 2024 @10:26AM (#40875212)
PowerShell has the whole Windows OS libraries, COM and .NET available, without additional installation, a bit more than just Python.
Re:Jeffrey Snover and the Making of PowerShell by hobs on Thursday July 04, 2024 @03:24PM (#40877370)
Absolutely, and the calling conventions for all those pieces of code make no sense to powershell folks :)

If you have a background in windows dev or any of those tools then yeah, easy mode go grab your tools, but for most people doing system automation the calling conventions and complete lack of discoverability within the powershell ecosystem (and their tools in no way helping out) made this not a realistic use case.

Shoot I have seen some powershell modules that have to embed string C#s and eval thing just to have basic performance or other basic use cases.

Re:Jeffrey Snover and the Making of PowerShell by pjmlp on Thursday July 04, 2024 @04:15PM (#40877719)
The same challenge with calling conventions happens with Python calling into Windows APIs, moreso since there aren't that many wrappers available, other than installing something like ActiveState Python.
Re:Jeffrey Snover and the Making of PowerShell by hobs on Thursday July 04, 2024 @05:18PM (#40878134)
Right, but it isn't really a core benefit of using PS is my point.
Re:Jeffrey Snover and the Making of PowerShell by pjmlp on Thursday July 04, 2024 @06:20PM (#40878523)
It actually is, as it provides scripting across the whole OS stack and applications, closer to Xerox, Lisp Machines and Smalltalk REPL, something that no UNIX has ever offered, with exception of outliers like NeXTSTEP and OS X.
Re:Jeffrey Snover and the Making of PowerShell by nrr on Thursday July 04, 2024 @09:01PM (#40879177)
This is all technically true, but the thesis is that PowerShell makes it all horribly clumsy to use.

From the perspective of the Lisp Machine or, hell, even the AS/400, PowerShell (and, while we're here, the CLR) doesn't quite go deeply enough, pervasively enough, across the system to make it truly useful in the same way.

Re:Jeffrey Snover and the Making of PowerShell by mycall on Thursday July 04, 2024 @10:21PM (#40879447)
Best I found is embedding LISP into .net

https://github.com/Lovesan/bike

Re:Jeffrey Snover and the Making of PowerShell by nrr on Friday July 05, 2024 @12:14AM (#40879794)
Not quite. What I'm more alluding to is something like, say, rewriting smss.exe and csrss.exe to be CLR programs (along with the implication of porting the CLR to the Native API) and giving PowerShell access to their internals directly.
Re:Jeffrey Snover and the Making of PowerShell by hobs on Thursday July 04, 2024 @09:04PM (#40879188)
Extremely clumsy, yes. And not idiomatic - a vanishingly small people learning PS will be able to usefully discover, use, or troubleshoot this utilization.

At the very least they could have helped with the discovery/usage problem, but that would probably have been a really tall order for one little language to do.

Re:Jeffrey Snover and the Making of PowerShell by mycall on Thursday July 04, 2024 @10:17PM (#40879429)
IronPython also exists, although an older version of python.
Re:Jeffrey Snover and the Making of PowerShell by pjmlp on Friday July 05, 2024 @03:24AM (#40880482)
For all practical purposes it is a dead project, sadly.
Re:Jeffrey Snover and the Making of PowerShell by dh2022 on Thursday July 04, 2024 @10:39AM (#40875306)
IMO PowerShell is very well integrated with Microsoft Azure cloud. Every Azure resource I work with (Storage, VM, Kusto, EventHub, Service Fabric, AAD, Networking) has tons of PowerShell support. I never set time to use Python with Azure Cloud - and this is only because PowerShell is so good at Azure.
Re:Jeffrey Snover and the Making of PowerShell by vips7L on Thursday July 04, 2024 @12:26PM (#40876112)
How is having the entire C# ecosystem a big miss?
Re:Jeffrey Snover and the Making of PowerShell by jodrellblank on Thursday July 04, 2024 @01:33PM (#40876627)
It's a big miss for the casual convenience of a scripter/non-programmer. A Pythonic way to do a remote procedure call is XMLRPC (pseudocode):

    import xmlrpc
    svr = xmlrpc.connect('http://remote/')
    result = svr.add(1, 2)
The C# way is to use the Microsoft Windows Communication Foundation (WFC) Client Proxy using the Service Model Metadata Utility Tool and the Web Services Description Language (WSDL) and XML Schema Definition Language (XSD) files from the remote server, declare a public interface attributed as a Service Contract referencing a namespace, generate a class which inherits from the generic ClientBase<TChannel> and implements the new interface, create an instance of said WCF client and call its methods. (Or rely on Visual Studio magic to hide all that) - https://learn.microsoft.com/en-us/dotnet/framework/wcf/acces...

In any decision, Python goes for "What would Guido do?" and C# gets some union of "what would a committee of Microsoft, IBM, Oracle do?", "What would impress Gartner?", "What is Microsoft legally obliged to do, and backwards-compatibly required to do?", "What would we do if we tried to do everything everyone needs all in one?", "What would Java do?", "What would a large team need to design and maintain a stable, typed, large system for years?".

PowerShell is on top of that; there's no simple included graphing and drawing, no simple hooks into Windows own voice recognition and OCR, and definitely not into whatever magically good ones newer Office / Cloud is using, no casual email or spreadsheet handling, no Visual Basic style form building, no simple data science; there's a few things you can do or download, generally less convenient than a Python equivalent. And Microsoft are leaving it all 'to the community' but the community is using Python so that's where the Excel power-user who wants to script a couple of things will go.

Re:Jeffrey Snover and the Making of PowerShell by vips7L on Thursday July 04, 2024 @01:53PM (#40876773)
I don’t think Python, a general purpose scripting language; and PowerShell, a shell, are going for the same things. They have different goals and by your definition every other tool is a “big miss” because they are not Python.

I have never desired to do xmlrpc, ocr, voice recognition, or gui building from my shell (and if I did I still don’t see how importing a C# library would be a big miss). What I do desire to do is open files, read their contents and pipe them into other programs, something that Python makes a pain to do with all the file handling. Powershell definitely excels at this, does that make Python a big miss?

Re:Jeffrey Snover and the Making of PowerShell by jodrellblank on Thursday July 04, 2024 @05:21PM (#40878146)
I thought I was replying somewhere under this other side-thread https://news.ycombinator.com/item?id=40875610 which says "There are probably users in the millions that are ok at the basics of programming, but don't have the job role to where tools like Java or C# make sense. Python is usually a good fit here, but I really wish Microsoft had something written for us common folks and not just server admins and IT folks. If Microsoft put some more effort into PWSH to where it wasn't turtle slow at things like parsing files and then started adding things like what I talk about above. Maybe even cmdlets for statistics and science...it could be something pretty amazing that your typical business analyst could quickly use"

in that context C# library isn't fit for it. Yes I agree Python and PowerShell aren't going for the same things; that's annoying because PowerShell is 80% of the way there.

> "I have never desired to do ocr, voice recognition, or gui building from my shell"

I have wanted those things. Windows which has a built in speech recognition engine which is COM automatable, a shell (PowerShell) which can be a COM client, and I have a folder full of phonecall recordings. I have a folder full of photos with things like menus and road signs and I want the equivalent of strings.exe for OCR and PowerShell could almost do it. I've wanted to build a Delphi or VB6 or C# style drag-drop GUI and tried to do it in PowerShell with SharpDevelop, WinForms code, the ShowUI module. I've wanted to build a TUI but Windows console host isn't good at those. I've wanted to get jpg metadata out and done it with Shell.Application automation around Explorer instead of downloading mediainfo.

All these thing have something in common - a core in a low level language, glued together or scripted in a high level language. Microsoft have written the core. They have written the high level language. They just didn't bother to make it all integrated for the ordinary power user, or flesh it out with more features along those lines over the years.

> "if I did I still don’t see how importing a C# library would be a big miss"

Because, compared to a builtin "ConvertFrom-Speech" you have to be enough of a programmer to know you need C#, go looking for a package, navigate oneget/winget/psget/nuget/github to download it, worry about .NET version compatibility and module paths, work out how to add an assembly, and then deal with interop, [ref] parameters, byte arrays, streaming.

> "What I do desire to do is open files, read their contents"

Same. And the contents could be all common formats on Windows since the 1990s - MP3, JPG, Excel - things Windows can read and play, things Explorer can read metadata from.

> "and pipe them into other programs, something that Python makes a pain to do with all the file handling. Powershell definitely excels at this, does that make Python a big miss?"

Yes, I think PowerShell is a far more convenient REPL than Python's REPL. Than any REPL I know of, actually - within the boundaries of introspecting small simple data, PowerShell and .NET at least. And yet Python has set()-set() and PowerShell has [system.collections.generic.hashset[psobject]]::new().ExceptWith() (it doesn't return anything it mutates in-place) and every week, people post on the internet asking how to do essentially set union, intersection, subtraction and equality checks in PowerShell and the answer has been unsatisfying for decades.

Re:Jeffrey Snover and the Making of PowerShell by neonsunset on Thursday July 04, 2024 @06:30PM (#40878576)
Adding packages is `dotnet add package {PackageName}`. That's it.

Worrying about version compatibility for new projects has stopped being an issue. The package either targets NS2.0 or whatever latest LTS currently is, in which case you just add its reference, or it doesn't in which case you use something else.

If it does, in 98% situations it just works. In the last 2% it has native dependencies which means either a) the package ships with binaries built for all popular platforms, b) the package adds a platform-specific dependent package automatically, or manually and mentions that in README (either with dotnet add package or system-wide library, apt-get install and friends), or c) the package comes with windows only native dll, which happens with ancient unmaintained packages, it's a rare case nowadays fortunately.

As someone whose primary PL is C#, I found https://github.com/waf/CSharpRepl and https://github.com/dotnet-script/dotnet-script far more accessible and useful. Compilation caching for the latter works relatively well to make startup latency tolerable for using it for writing scripts over Python. It's not the smoothest ride, but the advantages of C# make up for this.

Or I just do `dotnet new console -o MyScriptName --aot`, echo code into Program.cs and `dotnet publish -o .` it. Some do that with Rust as well. Especially useful if you need your script to go through a lot of data quickly and parallelize that well too.

Re:Jeffrey Snover and the Making of PowerShell by jodrellblank on Friday July 05, 2024 @12:01PM (#40883875)
Completely missing the point.

"It would be nice if Microsoft polished the stuff they already ship so non-programmers could use it more easily"

"Well I'm a professional programmer (and I have installed a bunch of SDKs and tooling already) and I find all this trivial".

Re:Jeffrey Snover and the Making of PowerShell by neonsunset on Friday July 05, 2024 @12:09PM (#40883938)
The state of .NET Framework package management is pretty much irrelevant, nor can be changed.

(and it was not that different from the UX above anyway, way better than e.g. Python)

Re:Jeffrey Snover and the Making of PowerShell by neonsunset on Thursday July 04, 2024 @03:06PM (#40877250)
Nowadays, WCF and even CoreWCF are frowned upon. Popular choices are gRPC, SignalR and JSON-RPC.
Re:Jeffrey Snover and the Making of PowerShell by jjkaczor on Monday July 15, 2024 @05:13PM (#40971510)
Heh... just wait until you get onto situation with a client machine/environment, open PowerShell and are faced with "Constrained Language Mode"...
Re:Jeffrey Snover and the Making of PowerShell by JoBrad on Thursday July 04, 2024 @06:17PM (#40878507)
I use Python for AWS, a lot. Last I checked, to use the Azure Python module you have to setup an Enterprise app, which seemed like overkill to me, and not something I think most of our sys admins would want to do. Maybe I’m wrong?
Re:Jeffrey Snover and the Making of PowerShell by okaram on Friday July 05, 2024 @10:26AM (#40883078)
> I primarily write Powershell Core scripts for scenarios ... in an environment where installing runtimes for programming languages is discouraged.

But PS Core is a programming language, right? And only installed by default on Windows?

I'm assuming there's other constraints on your system that make it preferable to installing bash or python on your Windows boxes?

Re:Jeffrey Snover and the Making of PowerShell by hypercube33 on Thursday July 04, 2024 @10:56AM (#40875456)
You can tell by WinGet which is a new product not even close to supporting anything PowerShell by design and almost being anti PowerShell with its overly verbose output. Which is odd since it's right up powershells alley being a management cli tool
Re:Jeffrey Snover and the Making of PowerShell by briHass on Thursday July 04, 2024 @11:59AM (#40875887)
There is a Winget client module for Powershell. I used it the other day to write a one liner that could upgrade all with exclusions. I didn't want to pin, because I still wanted to see updates I'm skipping.
Re:Jeffrey Snover and the Making of PowerShell by vips7L on Thursday July 04, 2024 @12:24PM (#40876099)
Does anyone even use winget? I tried but its repositories never have the tools I need in it. Scoop has been superior for me in every way.
Re:Jeffrey Snover and the Making of PowerShell by StressedDev on Thursday July 04, 2024 @03:57PM (#40877592)
I have found it useful. I used to install PowerShell 7.x, kubectl, Bicep (Azure language for deploying resources), etc. It works fine. The biggest problem I have is I cannot use it to install helm because the helm package is not shipped by the helm team (I don't trust packages shipped by third parties).
Re:Jeffrey Snover and the Making of PowerShell by vips7L on Thursday July 04, 2024 @04:34PM (#40877824)
Yeah for the things they have its great, I've just found that they lack a lot of stuff. To this day they still don't have Apache Maven in the repository. I just use scoop, I've found that its repositories just have way more tools and it's way easier to contribute to.
Re:Jeffrey Snover and the Making of PowerShell by mycall on Thursday July 04, 2024 @10:16PM (#40879420)
Have you asked the Helm team why they don't ship their own package? It might be worth the effort.
Re:Jeffrey Snover and the Making of PowerShell by 5636588 on Thursday July 04, 2024 @12:53PM (#40876334)
UniGetUI (formerly WingetUI) is a really great tool since it supports multiple package managers.

https://github.com/marticliment/UniGetUI

Re:Jeffrey Snover and the Making of PowerShell by hypercube33 on Friday July 05, 2024 @11:08PM (#40887922)
I'm personally trying to use it inside configman running as SYSTEM and have gotten it working for the most part but I have not seen anything module based from Microsoft themselves.

Yes what I am doing can be done with intune but that's another story for another time. RIP Store for Business. I just want to deploy PowerBI and have it always be current and self updating.

Re:Jeffrey Snover and the Making of PowerShell by g15jv2dp on Thursday July 04, 2024 @12:54PM (#40876346)
If you have winget and powershell installed, try `Get-WingetPackage` and see what comes out. Or even better:

    gcm | ? noun -like winget*
    help Install-WinGetPackage
The "usual" winget cli tool is indeed not powershell compatible. But winget also ships with all the necessary cmdlets. You don't have to install anything extra.
Re:Jeffrey Snover and the Making of PowerShell by gecko on Thursday July 04, 2024 @02:30PM (#40877025)
I was super excited to see this comment, but I don't seem to have those cmdlets, even though I'm on Windows 11, fully updated. Are you sure you didn't install something extra?
Re:Jeffrey Snover and the Making of PowerShell by easton on Thursday July 04, 2024 @03:21PM (#40877340)
If I recall correctly, they only work in PowerShell 7. If you don’t even have them in there, you can install them from https://github.com/microsoft/winget-cli (which is bad UX, but if you just need them on one system it’s a way to do it).
Re:Jeffrey Snover and the Making of PowerShell by gecko on Thursday July 04, 2024 @03:33PM (#40877434)
I'm in PowerShell 7.4.2 and they're definitely absent. I hadn't thought to install directly from GitHub, given part of the whole shtick of winget is it's The One True Package Manager and bundled, but I can't say I'm surprised, either...
Re:Jeffrey Snover and the Making of PowerShell by Uvix on Thursday July 04, 2024 @04:22PM (#40877764)
Probably better off installing from PowerShell Gallery instead. https://www.powershellgallery.com/packages/Microsoft.WinGet....
Re:Jeffrey Snover and the Making of PowerShell by g15jv2dp on Friday July 05, 2024 @01:34AM (#40880067)
I don't remember. Maybe I did install the modules. https://www.powershellgallery.com/packages/Microsoft.WinGet....

    Install-Module -Name Microsoft.WinGet.Client
Re:Jeffrey Snover and the Making of PowerShell by feldrim on Friday July 05, 2024 @06:24AM (#40881563)
The Winget module is a wreck. The way it is designed, unfortunately, neither fits the object oriented approach of PowerShell nor follows the PowerShell guidelines for cmdlets.

For instance https://github.com/microsoft/winget-cli/issues/3820 or https://github.com/microsoft/winget-cli/issues/3231.

Also, even though it does not completely work with PowerShell 5, it is marked as compatible. https://github.com/microsoft/winget-cli/issues/2881

The design choices made makes it weird. I hope it would be a good one in the future. But it is now problematic.

Re:Jeffrey Snover and the Making of PowerShell by lhamil64 on Thursday July 04, 2024 @12:59PM (#40876379)
What have you moved on to? I have to use Windows at work and PowerShell is way better than basic cmd, even better with Windows Terminal. I suppose you could probably install bash or another unix-y shell but that seems like it wouldn't be as integrated with Windows.