What is the easiest way to run a process in the service desktop?

I'm trying to run net use.

I've tried PsExec but I'm not entirely sure it is doing what I want it to.

psexec -s net use

New connections will be remembered.

There are not entries in the list.

psexec -s whoami

nt authority\system

link|improve this question
psexec is a remote execution tool. Are you trying to run net use on remote machines on your local network/domain? – Tim Jan 18 at 17:44
Local machine. PSExec works locally but I need to launch net use in the service desktop. Run psexec without a computer name just executes it locally. Using the -S flag runs as the system user. But I do not believe this is running in the service desktop, only authenticated as the system user. – Adam Driscoll Jan 18 at 17:45
1  
You are correct it is only authenticating, not "running in". There isn't any "running desktop" for the system user, think of it as a shell. – Tim Jan 18 at 18:06
How come you need to do that? Sounds a little odd... – Mathias R. Jessen Jan 18 at 18:21
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.