How to open a command prompt running as Microsoft's "Local System" account?

Version 14

    Verified Product Versions

    LANDESK Management Suite 9.5LANDESK Management Suite 9.6

    Environment

     

     

    8.x to 9.6

     

     

    Description

     

     

    There are multiple ways to open a command prompt running as the Local System account.  Here are some easy ways to do this:

     

    • Download a Sysinternals tool called PSexec. This tool can also be used to launch other programs or scripts as the local system (regedit.exe!).  Run:

      psexec -i -s cmd.exe
      
      

     

     

    • On a LANDesk agent, run the following command from a command prompt as a local administrator:

      "c:\program files\landesk\ldclient\localsch.exe" /exe=cmd.exe

       

    • On a workstation without a LANDesk agent, use Microsoft's Scheduler service by running the following command at the command prompt. Note: Determine the current system time and replace the time in the example below with the current time on your system plus 1 or 2 minute(s).  For example, the command for 2:23 PM would be this:
      at 14:24 /interactive cmd.exe

       

    • When remote controlling a LANDesk agent, in the top of the screen there is a Run: field.  Simply type "cmd.exe" in the Run:  field and click the green arrow. Note: This doesn't work with the Management Gateway on-demand agent, because the user launches the on-demand agent.  It only works with the agent service.

       

    • Download the attached script to the scripts directory on your Core Server.  Schedule the attached script as a scheduled task from the Console.  It will open a Local System command prompt on the target workstation. 
      Local System Command Prompt.ini