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

Đang mở
#195 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
49/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
powershell
Lĩnh vực
devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PowerShell
Star
3.5k
Fork
239
Merge trung bình
6 giờ 3 phút
Pull request đã merge (30 ngày)
37

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/WindowsDeveloperConfig

Tất cả issue của microsoft/WindowsDeveloperConfig

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.