• Make a handy “Power Tool”.

    Home » Forums » Make a handy “Power Tool”.

    Author
    Topic
    #489245

    If you don’t have it, download the PsTools Suite(link). PsTools is a subset of Sysinternals, a great compilation of extremely useful Windows utilities. Unzip PsTools to its own folder, preferably a root folder – mine is on G drive.

    Next, copy a Command Prompt shortcut from the All Programs Menu to the Desktop. Right-click and select Properties, and on the Shortcut tab click the Advanced button. Put a check in the box by “Run as administrator”. It should already have a check by “run in separate memory space”.

    Now change the command line in the “Target” field. My PsTools folder is on G drive, so mine is:

    ”C:Windowssystem32cmd.exe /c G:pstoolspsexec -i -s cmd.exe”.

    What this produces is a System Level Command Prompt. A word of caution here; it is a powerful tool.

    I use Regedit frequently, so I also have this one:

    ”C:Windowssystem32cmd.exe /c G:pstoolspsexec -i -s cmd.exe /c C:Windowsregedit.exe”

    Using my System level Regedit, if I come across a TrustedInstaller key I want to modify, I can give ownership to SYSTEM, rather than Administrators, and make my modifications without side effects.

    — edit — ( :fanfare: to RetiredGeek for this tip) I’ve changed the /k switch to the /c switch in my example shortcuts. Using the /c switch, closing the app opened using the System Level Command prompt closes the open Console windows as well. — /edit —

    …and a visual:

    33960-Visual-Aid

    Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
    We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
    We were all once "Average Users".

    Viewing 0 reply threads
    Author
    Replies
    • #1395731

      Bruce,

      As mentioned in another post I got your first command to work by changing the quotation marks to:
      [noparse]C:WindowsSystem32cmd.exe k “G:BEKDocsNonInstProgramsSysInternalspsexec” -i -s cmd.exe[/noparse]

      However, no matter what I do I can’t get the second command to work. I’m using:
      [noparse]C:WindowsSystem32cmd.exe /k “G:BEKDocsNonInstProgramsSysInternalspsexec” -i -s cmd.exe /k C:Windowsregedit.exe[/noparse]
      and I keep getting this:
      34138-System-Level-Regedit
      BTW: I also tried it with the .exe attached to the end of the psexec command portion and also w/o the quotes.

      Any ideas? :cheers:

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

      • #1395751

        Bruce,

        Here’s mine copied directly from the Properties of the shortcut:

        C:WindowsSystem32cmd.exe /k G:PsToolsPsexec -i -s Cmd.exe /k C:Windowsregedit.exe

        By chance did you neglect to click the Advanced button on the shortcut Properties and put a tick by Run as administrator?

        Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
        We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
        We were all once "Average Users".

        • #1395788

          Bruce,
          By chance did you neglect to click the Advanced button on the shortcut Properties and put a tick by Run as administrator?

          What do you think I am some kind of noob? …oops! 😆 Thanks Bruce… :cheers:

          May the Forces of good computing be with you!

          RG

          PowerShell & VBA Rule!
          Computer Specs

          • #1395849

            :cheers:

            Always create a fresh drive image before making system changes/Windows updates; you may need to start over!
            We all have our own reasons for doing the things that we do with our systems; we don't need anyone's approval, and we don't all have to do the same things.
            We were all once "Average Users".

    Viewing 0 reply threads
    Reply To: Make a handy “Power Tool”.

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: