-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run PowerShell as Admin #30
Comments
Thank you so much for this! Now I don't have to go and search for it. Will test it out in the development branch and add to main if it works. |
I have created a different method using cmd, took me some time to get it working, it gives an error when ran but it will still launch the software without the need of looking for powershell at all. Enjoy :) "# Creates Desktop Shortcut for the Chris Titus Windows Utility So You Can Easily Launch it to Install Programs Update: found a fix for the error and boon issue, pull request created. |
A text file with a short how to, on how to run |
Thanks for all the contributions and ideas, it's now fixed in a9348a1 |
Seems that the Powershell script "LAUNCH-CTT-WINUTIL.ps1" has to be executed with admin permission, so it would be helpfull to integrate also the right click option like "run with powershell (admin)"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\Run with PowerShell (Admin)]
[HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\Run with PowerShell (Admin)\Command]
@=""C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-Command" ""& {Start-Process PowerShell.exe -ArgumentList '-ExecutionPolicy RemoteSigned -File \"%1\"' -Verb RunAs}""
The text was updated successfully, but these errors were encountered: