PowerShell/PowerShell-RFC

Dec 19th Community Call Discussion

SteveL-MSFT opened this issue ยท 34 comments

Preload questions and topics for the https://aka.ms/pscommunitycall on Dec 19th, 2019 here (join directly at https://aka.ms/JoinPSCall). This issue will also be used for chat during the call.

Current agenda:

  1. PS7 GA, PS7 docs
  2. PSReadLine 2.0 GA
  3. VSCode-PS/PSEditorServices 2.0 GA
  4. Secrets Management and PSGetv3 update
  5. TextUtility module demo

Hi folks,
With the xcopy install style of PS core it is possible to have multiple "installs" on the same box at different places and versions. How are enterprises to manage and report on these multiple versions effectively across thousands of machines?
Thanks,
Ashley

we can hear you

2 Things:

  1. Are any powershell updates including possibly SOME modules be updateable via the windows updates?
  2. Was there anything to capture object outputs into variables for remote commands? like from Invoke-command on a separate computer on the network?

Is there a timeline to deprecate Windows PS below 5.1 (3.0, 4.0, 5.0)? If so, when?

Sorry if this is phrased poorly, but one issue I've had with PS7 is using the AD module. Specifically with using the -Filter parameter with a variable. I get error that the variable is not defined, anyone else had a similar problem?

FWIW the "AcceptAndGetNext" off-by-one bug is really still annoying in PSReadLine PowerShell/PSReadLine#990

MacOS Catalina = Windows Vista :) . I had to change to Mac for work since starting at GitLab.

FYI - Since the RC only targets the old PS7 folders on a client, I put it up on powershell-preview chocolatey package id only. That package lets all packages be visible even if preview.

@dmbrown1386 I'd suggesting hopping into the help channels in https://aka.ms/psslack or https://aka.ms/psdiscord and asking there. The answer is well known but requires some explanation and would get a bit lost in this discussion as it progresses, I think. ๐Ÿ™‚

Question from a Microsoft certified trainer. Is there an ETA on when the Microsoft official coursewares 10961, 10962, 55069 would be updated with visual studio code steps for PowerShell 7? Currently the coursewares exercises steps are still in PowerShell ISE.

Thanks @vexx32 I'll give that a try!

Is Microsoft planning to make available a PowerShell SDK for the Azure Bot framework? PowerShell's noun-verb format could prove useful while creating\managing entities and intents for Bot-designing.

SO i saw that https://devblogs.microsoft.com/dotnet/an-introduction-to-dataframe/ dataframe came to .Net just like python, which is very nice

is it by chance coming to posh as well?

@SteveL-MSFT does that Select-Text still expose usable objects, or is it purely a display cmdlet?

I think that shipping Select-String and Select-Text would be really confusing ;-) -- but while you're working on it ... it should output the table headers ;-)

@vexx32 it returns strings :) I''ll probably add a switch to return Match objects but default will be strings

@Jaykul table headers is interesting and can see how that would be useful

Are we going to get freezing consoles/VSCode until windows 21H1? can't it be fixed sooner?
microsoft/vscode#71966
microsoft/terminal#1810

How are we going to handle upgrading PSReadline from Beta to Stable? There is a PowerShellGet defect where it cannot handle upgrading a in-use binary module.

https://github.com/PowerShell/PowerShellGet/issues/204

Can the GitHub Actions Workflow be written in PowerShell? PowerShell is not in the list of languages for GitHub Actions on the website.
image

@SteveL-MSFT add a switch to Select-String ๐Ÿ˜›

Doesn't seem like Select-Text has a need to be a whole separate thing. ๐Ÿคทโ€โ™‚

Can the GitHub Actions Workflow be written in PowerShell? PowerShell is not in the list of languages for GitHub Actions on the website.
@Ayanmullick

Yes! You can make a github action either with native javascript to call pwsh.exe or just use the .NET core container as your base. I've made several.

Are we going to get freezing consoles/VSCode until windows 21H1? can't it be fixed sooner?
microsoft/vscode#71966
microsoft/terminal#1810

@ili101 that looks like a VSCode specific issue, not powershell related, although there is a known issue where the new powershell preview VSCode extension can occasionally hang when restarting the session terminal:
PowerShell/vscode-powershell#2377

You can also workaround the PowerShellGet defect by having the stable PSReadline version be 2.0.1 instead of 2.0.0 for this release.

Who owns SHiPS these days? It needs some love to add Set-Item and Remove-Item and New-Item APIs

Isn't ships based on Jim Christopher's provider foundation anyway? Ships is a shim, as far as I know.

What is the plan for rewriting the PS Provider framework to be easier and less complex? It can also remove the need to have a SHiPS module at all.

Yes, SHiPS is BASED ON (and DEPENDS ON) JIm's stuff

Where did you wind up on the consise error view's error message & indicator position? Will that change make it into PS 7 GA?

Here's an example of a provider I wanted to do, related to SecretsManagement:
https://twitter.com/JustinWGrote/status/1207426300077473793

GitHub "Packages" have no PowerShell Gallery option. riot...
image

We all love Jim -- I gave him his own guid for his birthday once, "beefbeef-beef-beef-beef-beefbeefbeef"

@ili101 their nuget only supports v3, PSGet only supports v2. Guess you'll have to wait for PSGetv3 :/

As a challenge to @SteveL-MSFT ๐Ÿ˜œ

function where-text {
    param($pattern)
    $input | Format-Table | Where { $_.GetType() -match "Start|End" -or $_.formatEntryInfo.formatPropertyFieldList.propertyValue -match $pattern } | 
        ForEach { 
           if ( $_.GetType() -notmatch "Start|End" ) {
               $_.formatEntryInfo.formatPropertyFieldList | Where propertyValue -match $pattern | % {
                   $_.propertyValue = $_.propertyValue -replace "($pattern)", "$fg:Red`$1$fg:Clear"
               }
           }
           $_
       }
}

image