Michael Klement

Results 1234 comments of Michael Klement

> Have you tried changing the "Accept" value to say you want a zip or exe, and not an html? `-UserAgent curl` is a simpler workaround, but, as noted, the...

@237dmitry: I didn't _find_ it, because it isn't there. The suggestion is to _introduce it_, and, above all, to use it _by default_. See also: * https://github.com/PowerShell/PowerShell/issues/23839

You may have missed it, because I only edited it into my previous comment later: > That said, it's hard to imagine that the current default behavior is relied upon,...

Yes, it is the _absence of `Mozilla/5.0`_ that makes the difference in this case. And analogous to this part of the string currently being included _for compatibility_ in order to...

There are several factors at play here: * The event _never_ kicks in if PowerShell is not in control of its own termination: Thus, closing the window / quitting the...

All good points, @Borkason. I suggest we get started _here_ by asking for feedback from a subject-matter expert about the original design intent, what could be improved, and what cannot...

Thanks, @mikeclayton. * The first case is actually covered in the initial post under _Caveats_, and the tl;dr is: For long-term stability: * Avoid .NET APIs in favor of PowerShell-native...

* **You're seeing a _bug_**: a PowerShell custom `class` should always reports its own type, even if it is derived from another class; the bug seemingly only surfaces when you...

As for using _ETS_ (Extended Type System) type names, to add to @MartinGC94's comment: `PSTypeName` can also be used as a hashtable key, allowing you to build the desired (ETS)...