Microsoft emitted a fresh preview of command-line darling PowerShell 7 last night, highlighting some additional slurping - and how to shut it off.
PowerShell 7 Preview 3, which is built on .NET Core 3.0 Preview 8, is the latest step on the way to final release at the end of 2019 and a potential replacement for the venerable PowerShell 5.1.
The first preview dropped back in May and the gang has made solid progress since. This time around, the team has opted to switch on all experimental features of the command-line shell by default in order to get more feedback on whether those features are worth the extra effort to gain "stable" status.
Those preferring their command-line tools to be of at least Release Candidate or Stable status need not fear - the enforced enjoyment of experimental features will not be in those builds.
PowerShell head honcho Steve Lee also noted that once in General Availability, it will be the first Long Term Servicing (LTS) release of the tool and will be supported for as long as the underlying .NET Core 3.1 is.
.NET Core 3.1, tentatively due for release in November this year, is intended to be the LTS version of the framework and so should see three years of support.
Longevity aside, there are a number of useful features, some targeted squarely at Windows (stripping away reasons to stay with PowerShell 7's more Windows-focused ancestors) and others that simply make life easy for script fans. The ability to stick a -Parallel parameter to ForEach-Object in order to execute scriptblocks in parallel is a good example, as is a -ThrottleLimit parameter to keep the thread usage under control.
However, it's not all good news. Lee, with impressive openness, highlighted the extra telemetry PowerShell would be capturing with this release. Microsoft's Sydney Smith provided further details and, perhaps more importantly for some users, explained how to turn the slurping off.
New data points being collected include counts of application types such as Cmdlets and Functions, hosted sessions and PowerShell starts by type (API vs Console).
It all seems innocuous enough and the company wants the information to balance the postings on feedback forums by the, er, more vocal members of the community in order to understand how the tool is being used.
However, for the benefit of those who get twitchy about the slurping of data, Smith highlighted the POWERSHELL_TELEMETRY_OPTOUT environment variable, which can be set to the true, yes or 1 to stop PowerShell squirting anything back at Redmond's servers.
We've asked Microsoft for a bit more detail and will update if the software giant responds.
And, of course, you can always scrutinise what is lurking within GitHub yourself if you have a spare afternoon or two. ®