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

未关闭
#195 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
49/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
powershell
领域
devops

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
PowerShell
星标
3.5k
派生
239
平均合并
6 小时 3 分钟
30 天内合并 PR
37

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/WindowsDeveloperConfig 的其他 Issue

查看 microsoft/WindowsDeveloperConfig 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。