Skip to content

v2.0.0/installcredprovider.ps1: 'Get-ComputerInfo' is not recognized as a name of a cmdlet #631

Closed

Description

> docker run -it mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0
root [ / ]# pwsh
PowerShell 7.4.13
PS /> iex "& { $(irm https://aka.ms/install-artifacts-credprovider.ps1) }"
Fetching release metadata from https://api.github.com/repos/microsoft/artifacts-credprovider/releases/latest
Fetching installcredprovider.ps1 from https://github.com/microsoft/artifacts-credprovider/releases/download/v2.0.0/installcredprovider.ps1...
Executing installcredprovider.ps1...
Write-Error: Failed to fetch, validate, or execute artifacts-credprovider install. Error message: The term 'Get-ComputerInfo' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Activity

  1. embetten commented on Jan 27, 2026

    @embetten
    Contributor

    Since Get-ComputerInfo is a Windows‑specific command and the cross‑platform equivalents depend on PowerShell 6/7+ with some inconsistencies. We are open to suggestions or contributions for a better cross platform detection mechanism, but the .ps1 installer is intentionally documented as the Windows‑supported option with the .sh scripts for non-windows.

    IMO, I think we should prioritize removing the awk dependency in #620 rather than attempt to make the PowerShell script cross platform to sidestep the main issue.

  2. added a commit that references this issue on Feb 10, 2026
    27757f3
  3. added a commit that references this issue on Feb 10, 2026
    e395cff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions