Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

WithRetry : The term 'Install-PowerShell' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again

Abierto
#116 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
powershell
Área
cloud

Línea de trabajo

Empieza por main.ps1 alrededor de las líneas 127-128, donde el script recupera https://aka.ms/install-powershell y crea Install-PowerShell. Comprueba por qué Invoke-RestMethod no puede conectarse y por qué el valor null resultante impide que se cree la función. Se considera terminado cuando la personalización de DevBox se completa con Install-PowerShell disponible.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

[2024-12-03T11:02:08.415928+00:00] Installing PowerShell 7
[2024-12-03T11:03:33.963388+00:00] Invoke-RestMethod : Unable to connect to the remote server
[2024-12-03T11:03:33.963547+00:00] At C:\Windows\SystemTemp\d54cbee8-4b8b-46f4-9a40-bbeecf7f79ee\pwpcij52.1jc\main.ps1:127 char:17
[2024-12-03T11:03:33.963553+00:00] + ... $code = Invoke-RestMethod -Uri https://aka.ms/install-powershell. ...
[2024-12-03T11:03:33.963554+00:00] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2024-12-03T11:03:33.963559+00:00] + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
[2024-12-03T11:03:33.963566+00:00] eption
[2024-12-03T11:03:33.963570+00:00] + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
[2024-12-03T11:03:33.963572+00:00]
[2024-12-03T11:03:34.048223+00:00] New-Item : Cannot process argument because the value of argument "value" is null. Change the value of argument "value"
[2024-12-03T11:03:34.048450+00:00] to a non-null value.
[2024-12-03T11:03:34.048458+00:00] At C:\Windows\SystemTemp\d54cbee8-4b8b-46f4-9a40-bbeecf7f79ee\pwpcij52.1jc\main.ps1:128 char:17
[2024-12-03T11:03:34.048460+00:00] + ... $null = New-Item -Path function:Install-PowerShell -Value $code
[2024-12-03T11:03:34.048494+00:00] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[2024-12-03T11:03:34.048500+00:00] + CategoryInfo : InvalidArgument: (Install-PowerShell:String) [New-Item], PSArgumentNullException
[2024-12-03T11:03:34.048506+00:00] + FullyQualifiedErrorId : NewItemValueNotSpecified,Microsoft.PowerShell.Commands.NewItemCommand
[2024-12-03T11:03:34.048512+00:00]
[2024-12-03T11:03:34.128947+00:00] WithRetry : The term 'Install-PowerShell' is not recognized as the name of a cmdlet, function, script file, or
[2024-12-03T11:03:34.129015+00:00] operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
[2024-12-03T11:03:34.129038+00:00] again.

Note - we have allowed the required network for devbox subnet, but still the customizing failed, please advise.

Lenguaje dominante
PowerShell
Estrellas
52
Forks
194
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/devcenter-catalog

Todos los issues de microsoft/devcenter-catalog

Issues similares

Más issues de Cloud

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.