No unattended mode: every run waits for a key, and the resume after the WSL restart asks for UAC again

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

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
49/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
powershell
Área
devops

Línea de trabajo

Start with steps/_console.ps1 and the registration code for the resume task; the issue identifies Wait-DevConfigKeyPress and the task's -RunLevel Limited setting. Trace how elevation is detected and passed through the WSL restart flow, then check existing tests or scripts for coverage. Done when unattended runs can skip the key wait and an already elevated run resumes without another UAC prompt.

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

Descripción

Every run ends in Wait-DevConfigKeyPress (steps/_console.ps1), which waits up to 900 s for a key, and after the WSL reboot the resume task (registered with -RunLevel Limited) asks for UAC again. There's no switch to skip either, so automation and wrapping tools have to treat the summary line as the end of the run, leave the console waiting, and tell the user to answer the second prompt.

Proposal: an -Unattended (or -NoWait) switch that skips the key wait, and, when the run is already elevated, registers the resume task to run elevated so the post-reboot half doesn't prompt again.

Related: #57.

Checked on main @ 2ac20c5.

Lenguaje dominante
PowerShell
Estrellas
3.5k
Forks
239
Merge medio
6 h 3 min
PR fusionados (30 d)
37

Preparar el entorno

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/WindowsDeveloperConfig

Todos los issues de microsoft/WindowsDeveloperConfig

Issues similares

Más issues de DevOps

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.