winutil
winutil copied to clipboard
Relaunching as Administrator is not working
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
- Download latest release
- Run it as normal user
- When password dialog will popup, enter admin password
- See the error.
Expected behavior
It should just open winutil as admin.
Screenshots
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.