Add PsExec to Windows 10 Context Menu

Page 2 of 2 FirstFirst 12

  1. Posts : 12
    Windows 10 Enterprise S
    Thread Starter
       #11

    Ok.. No more responding without sleep. I didn't begin to think about your reply in the linked post. Lack of sleep does strange things to me.

    I did get it to work.

    psexec is here: C:\Windows\System32\

    I created the script, changed the path, renamed the compiled exe, then dropped it in sys32.

    Result: C:\Windows\System32\syscmd.exe that executes
    Code:
    Run, *runas "C:\Windows\System32\PsExec.exe" -s -i -d -w %HOMEDRIVE% -high %windir%\system32\cmd.exe /k
    exit
    It works great. Thanks so much for the help and the new tools (AHK and Right Click Configurator) !!

    I had been searching for a better context menu tool. I'm looking into AHK script. Never used it before as I never had the need.
      My Computer


  2. Posts : 42,948
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #12

    That's great. At one level AHK is simple, at another, you can create whole programs with it. And at another, it can manipulate existing Windows, click buttons, operate on processes...

    So it's a simple scripting language, a tool to manipulate Windows at a GUI and process level, and a programming language.

    SciTE4AutoHotkey Editor - syntax sensitive editor
    AutoIt3 Window Spy - tool to identify elements in existing Windows and GUI

    Try (free)
    https://www.askvg.com/right-click-co...-context-menu/
    The venerable Context Edit is thorough, but dated.

    Generally tools that offer the flexibility of the one I used are commercial (I got it as a giveaway).

    Right Click Enhancer now seems commercial- the version I have is free with an option to upgrade to add freedom to add your own.

    Then there are various tools that add fixed functions to the context menu.

    FileMenu Tools
    Add PsExec to Windows 10 Context Menu-1.jpg
    Has more features than you think, but would take time to get used to it. For a long time I though it just added fixed items or disabled items, but it looks as though you can add your own. Adds separators too.

    Nothing like as intuitive as the one I used.

    - you might consider seeing if you could use a parameter (as in my Notepad example) to pass in the folder or disk to cmd.exe so the command prompt opens at the folder or disk if that's relevant.
    Last edited by dalchina; 26 Oct 2017 at 02:01.
      My Computers


  3. Posts : 12
    Windows 10 Enterprise S
    Thread Starter
       #13

    I will play around with the parameters to get it to open where I right click. I was going to bypass UAC BUT decided to keep it save I do something dangerous while not paying attention to access levels.

    Seriously THANKS. I finding myself doing things with things owned by SYSTEM and TrustedInstaller. Being able to get a system level CMD easily to launch apps or exec commands with access that equals SU saves me time.

    My next project is adding runas System &/or runsas TrustedInstaller to *.lnk and *.exe context menus.

    I'll try my hand before I create another post though. Maybe I'll get it on the 1st or try??

    Thanks again for all your help. Greatly appreciated.


    Side note: I purchased Right Click Configurator. I have no problem spending on things that simplify my task.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:33.
Find Us




Windows 10 Forums