Windows 10: Open VBS file with admin command prompt context menu

Discus and support Open VBS file with admin command prompt context menu in Windows 10 Customization to solve the problem; @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... Discussion in 'Windows 10 Customization' started by bamajon1974, Jun 22, 2021.

  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 Code: cmd.exe "%SystemRoot%\System32\CScript.exe" "%1" %"" 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. Add Run as administrator to Context Menu of VBS Files in Windows 10 So how do I modify the command Code: cmd.exe "%SystemRoot%\System32\CScript.exe" "%1" %"" to run elevated, probably with powershell? Thanks!

    :)
     
    bamajon1974, Jun 22, 2021
    #1

  2. command prompt(admin) and comman prompt,and control panel are missing in the context menu

    in the context menu when right clicking start comman prompt and command prompt (admin) and control panel are missing in the list how to get it back?
     
    HectorEdenburg, Jun 22, 2021
    #2
  3. Cuzza Win User
    Change target of "Edit" command in context menus

    @ Oily, thanks but that's not what I'm trying to do here. I wanted the "Edit" context menu command to open a different program to what the file is usually associated with; the Default Programs dialog doesn't allow that.
     
    Cuzza, Jun 22, 2021
    #3
  4. Open VBS file with admin command prompt context menu

    MourningStar, Jun 22, 2021
    #4
Thema:

Open VBS file with admin command prompt context menu

Loading...
  1. Open VBS file with admin command prompt context menu - Similar Threads - Open VBS file

  2. Add Open Windows Terminal in Command Prompt, PowerShell profile context menu items

    in Windows 10 News
    Add Open Windows Terminal in Command Prompt, PowerShell profile context menu items: Windows Terminal can let you open multiple Command Prompt, Windows PowerShell, etc., tabs in one window, and you can open it from the right-click context menu. However, as the default option opens the default startup profile, you can add an expandable menu to open any profile...
  3. Context Menu Command Prompt and AppliesTo Registry String

    in Windows 10 Customization
    Context Menu Command Prompt and AppliesTo Registry String: Please see the last three or four threads in: Add or Remove Command Prompt Open Here Context Menu in Windows 10 as they have pictures. I want to add Command Prompt to the right click menu and to show up on Folder Right-Clicks and Folder Backgrounds. Problem is, the registry...
  4. Open Elevated Command Prompt via Context Menu ...

    in Windows 10 Support
    Open Elevated Command Prompt via Context Menu ...: ... as the post title. My search here only found a tutorial for a 'standard' command prompt. -thx 167608
  5. cannot access command prompt or command prompt (admin) from start menu

    in Windows 10 Customization
    cannot access command prompt or command prompt (admin) from start menu: I was using Pinnacle Studio when it froze. On rebooting I discovered I had to reinstall my drivers for video and audio. I decided to use SFC /Scannow to check Windows. I discovered I could no longer access cannot access command prompt or command prompt (admin) by right...
  6. Restore "Command Prompt Here" in folder context menu

    in Windows 10 Customization
    Restore "Command Prompt Here" in folder context menu: After the installation of the latest windows 10 update, I was very annoyed my "Command Prompt Here" has disappeared again from the right mouse button menu, after I took a lot of effort to restore it. Windows Powershell is not an option for me, as it wreaks havoc on...
  7. Command prompt as admin

    in AntiVirus, Firewalls and System Security
    Command prompt as admin: i am locked out of windows by Bitlocker. I never installed Bitlocker so how it ended up on the PC I dont know but as a result, i do not have the key. I know how to look up the key if I run command prompt as admin. I can of course get to command prompt via troubleshoot....
  8. "Open" command in Context Menu on EXE files Showing Wrong

    in Windows 10 Network and Sharing
    "Open" command in Context Menu on EXE files Showing Wrong: Dear All, I made a mistake with registry editing because I thought that some files were not opening. Fortunately, it turned out okay, but this has left me with a strange problem. Whilst opening EXE files, the context menu displays the code "%1" %1, which I remember from the...
  9. [How-To] Context menu "Open elevated Command Prompt Here" without UAC

    in Windows 10 Customization
    [How-To] Context menu "Open elevated Command Prompt Here" without UAC: 1. Create a newTask named OpenCmdHereAsAdminNoUAC and activate "Run with the highest privileges" 2. Go to the Actions Tab, create a new Action "Start a Program" choose "C:\Windows\System32\cmd.exe" and set the Working Directory (Start in) to %CURDIR% 3. Create a...
  10. Context menu now has "Powershell" instead of "Command Prompt"

    in Windows 10 Support
    Context menu now has "Powershell" instead of "Command Prompt": So I updated to the CU over a week ago, and I noticed an odd change. The "Open command prompt here" option in the shift+right-click context menu has been replaced by "Open Windows Powershell here" instead. Powershell does not work with the apps I use (for example, an RPA...