winutil icon indicating copy to clipboard operation
winutil copied to clipboard

Relaunching as Administrator is not working

Open filip2cz opened this issue 2 months ago • 3 comments

Describe the bug

When you run winutil.ps1 as non-administrator, it will say Winutil needs to be run as Administrator. Attempting to relaunch.. It reopens winutil as Administrator, but with this error:

[error 2147942402 (0x80070002) when launching `pwsh -ExecutionPolicy Bypass -NoProfile -Command & { & 'C:\Users\filip\scoop\apps\winutil\current\winutil.ps1' }']

Steps to reproduce

  1. Download latest release
  2. Run it as normal user
  3. When password dialog will popup, enter admin password
  4. See the error.

Expected behavior

It should just open winutil as admin.

Screenshots

screenshot

Additional context

Issue validation

  • [x] I checked for duplicate issues.
  • [x] I checked for already existing discussions.
  • [x] I checked for an already existing pull request addressing the issue.

filip2cz avatar Dec 11 '24 14:12 filip2cz