Attempt 1: python .\wheel-scroll.py — exit 1, durationMs 434 {"event": "runtime", "pid": 42944, "python": "3.12.10", "pointerBits": 64} {"event": "nativeResult", "api": "SetProcessDPIAware", "result": 1} {"event": "nativeResult", "api": "SPI_GETWHEELSCROLLLINES", "result": 1, "error": null} {"event": "start", "original": 3, "first": 20} {"event": "nativeResult", "api": "SPI_SETWHEELSCROLLLINES", "result": 0, "error": 5} {"event": "failure", "stage": "effect", "type": "PermissionError", "message": "[WinError 5] \u62d2\u7edd\u8bbf\u95ee\u3002"} {"event": "nativeResult", "api": "SPI_SETWHEELSCROLLLINES", "result": 0, "error": 5} {"event": "cleanupFailure", "stage": "restore", "type": "PermissionError", "message": "[WinError 5] \u62d2\u7edd\u8bbf\u95ee\u3002"} {"event": "summary", "status": "failed", "failure": {"stage": "effect", "type": "PermissionError", "message": "[WinError 5] \u62d2\u7edd\u8bbf\u95ee\u3002"}, "cleanupErrors": [{"stage": "restore", "type": "PermissionError", "message": "[WinError 5] \u62d2\u7edd\u8bbf\u95ee\u3002"}]} Attempt 2: python .\wheel-scroll.py — exit 1, durationMs 518 {"event": "runtime", "pid": 52640, "python": "3.12.10", "pointerBits": 64} {"event": "nativeResult", "api": "SetProcessDPIAware", "result": 1} {"event": "nativeResult", "api": "SPI_GETWHEELSCROLLLINES", "result": 1, "error": null} {"event": "start", "original": 3, "first": 20} {"event": "nativeResult", "api": "SPI_SETWHEELSCROLLLINES", "result": 0, "error": 5} {"event": "failure", "stage": "effect", "type": "PermissionError", "message": "[WinError 5] \u62d2\u7edd\u8bbf\u95ee\u3002"} {"event": "nativeResult", "api": "SPI_SETWHEELSCROLLLINES", "result": 0, "error": 5} {"event": "cleanupFailure", "stage": "restore", "type": "PermissionError", "message": "[WinError 5] \u62d2\u7edd\u8bbf\u95ee\u3002"} {"event": "summary", "status": "failed", "failure": {"stage": "effect", "type": "PermissionError", "message": "[WinError 5] \u62d2\u7edd\u8bbf\u95ee\u3002"}, "cleanupErrors": [{"stage": "restore", "type": "PermissionError", "message": "[WinError 5] \u62d2\u7edd\u8bbf\u95ee\u3002"}]} Attempt 3: where.exe python; py -0p — exit 1, durationMs 751 [operator-profile]\AppData\Local\Programs\Python\Python312\python.exe [operator-profile]\AppData\Local\Microsoft\WindowsApps\python.exe 程序“py.exe”无法运行: 句柄无效。所在位置 行:2 字符: 19 + where.exe python; py -0p + ~~~~~~。 所在位置 行:2 字符: 19 + where.exe python; py -0p + ~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed Attempt 4: $o="$env:TEMP\ws-out.txt"; $e="$env:TEMP\ws-err.txt"; Remove-Item $o,$e -ErrorAction SilentlyContinue; try { $p=Start-Process -FilePath '[operator-profile]\AppData\Local\Programs\Python\Python312\python.exe' -ArgumentList '.\wheel-scroll.py' -WorkingDirectory '[prepared-workspace-root]\arena-dsh-workspace-eb3fe509-1faa5ae6' -Verb RunAs -WindowStyle Hidden -RedirectStandardOutput $o -RedirectStandardError $e -PassThru; if(-not $p.WaitForExit(90000)){ $p.Kill(); 'TIMEOUT' } else { 'EXIT=' + $p.ExitCode } } catch { 'START-ERROR: ' + $_.Exception.Message }; '---OUT---'; Get-Content $o -ErrorAction SilentlyContinue; '---ERR---'; Get-Content $e -ErrorAction SilentlyContinue — exit 1, durationMs 107 START-ERROR: 无法使用指定的命名参数解析参数集。 ---OUT--- ---ERR--- Attempt 5: $log = Join-Path $env:TEMP 'ws-runas.log'; Remove-Item $log -ErrorAction SilentlyContinue; $inner = "Set-Location '[prepared-workspace-root]\arena-dsh-workspace-eb3fe509-1faa5ae6'; & '[operator-profile]\AppData\Local\Programs\Python\Python312\python.exe' '.\wheel-scroll.py' *> '$log'; exit `$LASTEXITCODE"; $enc = [Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes($inner)); try { $p = Start-Process -FilePath 'powershell.exe' -Verb RunAs -WindowStyle Hidden -ArgumentList '-NoProfile','-EncodedCommand',$enc -PassThru; if(-not $p.WaitForExit(90000)){ $p.Kill(); 'TIMEOUT' } else { 'EXIT=' + $p.ExitCode } } catch { 'START-ERROR: ' + $_.Exception.Message }; '---LOG---'; Get-Content $log -ErrorAction SilentlyContinue — exit 1, durationMs 305 START-ERROR: 由于出现以下错误,无法运行此命令: Access is denied。 ---LOG---