New
#1
Open VBS file with admin command prompt context menu
@Brink
VBS files have, by default, a context menu to Open with command prompt. I would like to add an additional option to Open with command prompt as admin. The command to open VBS files, standard privileges, is something like
I believe that I need a powershell command/script to elevate. I cannot use the runas key to open with command prompt since it is already used to run VB files with script.exe as admin.Code:cmd.exe "%SystemRoot%\System32\CScript.exe" "%1" %""
Add Run as administrator to Context Menu of VBS Files in Windows 10
So how do I modify the commandto run elevated, probably with powershell?Code:cmd.exe "%SystemRoot%\System32\CScript.exe" "%1" %""
Thanks!