• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 525
  • Last Modified:

How to start CMD from LocalSystem user account on Windows 7


I need to start CMD.EXE from a "LocalSystem" user account on my Windows 7 PC.
I mean - a CMD.EXE that I could control - execute commands in its window.
Is it possible? How?

I remember on Windows XP there was a trick with "at /i" command. But it seems it does not work anymore on Win 7.

So, are there any other options to do that on Win 7?

What about Win 8?

Thank you in advance.
  • 2
1 Solution
I think starting it with Administrator rights should be sufficient enough ? Or it REALLY has to be LocalSystem?
For both Win7 and 8, it's right mouseclick on the cmd (after you typed it in the search box, and the icon comes up in the results), and use Run as Administrator.
Dmitry_BondAuthor Commented:
Sorry, I was not specified it in original question - it is not enough to start it from Administrator.

I need exactly to start it from LocalSystem.
Daniel HelgenbergerCommented:
I suppose you need an interactive cmd? Otherwise you can use Task Planer.

The easiest way to do this would be to use psexec from the sysinternals suite:
PSEXEC -i -s -d CMD

Open in new window

The -s parameter uses the System account and -i initiates an otherwise impossible interactive session on your desktop.
Please see also:
Dmitry_BondAuthor Commented:
Super! It works fine. Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now