Skip navigation
Currently Being Moderated

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

VERSION 13  Click to view document history
Created on: Dec 20, 2007 11:27 AM by Jared Barneck - Last Modified:  May 28, 2013 1:26 PM by Jared Barneck

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

Comments (7)
LANDESK Community powered by Jive SBS® 4.5.7.1  |  Legal Notices  |  Privacy Policy  |  Icon 

TweeterOn Twitter  |  Icon FacebookOn Facebook © 2007 LANDESK Software