Repository: vscode
Issue: User setup detects admin privileges incorrectly
Labels: install-update,windows,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version:  VSCodeUserSetup-x64-1.85.2.exe
- OS Version:  Windows 10 Enterprise 22H2 OS Build 19045.3803

Steps to Reproduce:

1. Open cmd prompt
2. Go to folder where code.exe is installed
3. Execute command:  code.exe --disable-extensions
4. Error is produced:

> C:\Users\username\AppData\Local\Programs\Microsoft VS Code>**code.exe --disable-extensions**
> C:\Users\username\AppData\Local\Programs\Microsoft VS Code>
> [main 2024-01-23T18:09:47.078Z] update#setState disabled
> [main 2024-01-23T18:09:47.079Z] update#ctor - updates are disabled due to running as Admin in user setup
> [20604:0123/120947.557:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120947.711:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120947.866:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120948.019:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120948.254:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120948.410:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120948.567:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120948.644:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120950.363:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [20604:0123/120950.363:FATAL:gpu_data_manager_impl_private.cc(431)] GPU process isn't usable. Goodbye.

I tried to disable the GPU:

> C:\Users\username\AppData\Local\Programs\Microsoft VS Code>**code.exe --disable-gpu**
> C:\Users\username\AppData\Local\Programs\Microsoft VS Code>
> [main 2024-01-23T18:12:33.566Z] update#setState disabled
> [main 2024-01-23T18:12:33.567Z] update#ctor - updates are disabled due to running as Admin in user setup
> [14384:0123/121233.671:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [14384:0123/121233.762:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [14384:0123/121234.011:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [14384:0123/121234.169:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [14384:0123/121234.245:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [14384:0123/121234.404:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [14384:0123/121234.406:FATAL:gpu_data_manager_impl_private.cc(431)] GPU process isn't usable. Goodbye.

I tried disabling both at the same time:

> C:\Users\username\AppData\Local\Programs\Microsoft VS Code>**code.exe --disable-extensions --disable-gpu**
> C:\Users\username\AppData\Local\Programs\Microsoft VS Code>
> [main 2024-01-23T18:12:47.830Z] update#setState disabled
> [main 2024-01-23T18:12:47.831Z] update#ctor - updates are disabled due to running as Admin in user setup
> [10676:0123/121247.946:ERROR:gpu_process_host.cc(952)] GPU process launch failed: error_code=21
> [10676:0123/121248.037:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [10676:0123/121248.207:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [10676:0123/121248.594:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [10676:0123/121248.951:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [10676:0123/121249.169:ERROR:gpu_process_host.cc(958)] GPU process exited unexpectedly: exit_code=-1073741819
> [10676:0123/121249.169:FATAL:gpu_data_manager_impl_private.cc(431)] GPU process isn't usable. Goodbye.