How to run an elevated command prompt from the command prompt

windows 7windows-command-prompt

I have remotely connected to a Windows 7 computer via psexec and am running a remote command prompt on the Windows 7 computer. The command I am trying to execute requires that it be run in an elevated command prompt for it to work.

How do I get to an elevated command prompt if my starting point is a command prompt that is not elevated and I don't have access to the GUI?

Best Answer

I've wrestled with this in the past, and it can't be done. Only way is to create a scheduled task that you then execute from your cmd session.