Is it possible to launch windows applications from the command line remotely?

Hi all,

Is it possible to launch windows applications from the command line remotely?  For example, on the local machine, if I run the command "notepad.exe" from the command line prompt, it launches Notepad in Windows.  However, if I SSH or telnet into the command line prompt of a remote Windows machine and run "notepad.exe", I don't see the Notepad application on the local or remote machine (even though I can see the process in the tasklist).  Is it possible to be able to see the application locally or remotely when running the command on the Windows command line remotely, either through SSH or telnet?
jksungAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
Use PSEXEC from SysInternals (now Microsoft).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jksungAuthor Commented:
I tried the command "psexec \\10.1.1.2 cmd", but I'm getting the error:

Couldn't access 10.1.1.2:
The system detected a possible attempt to compromise security. Please ensure tha
t you can contact the server that authenticated you.
0
KwoofCommented:
Make sure you have permissions for the other computer...otherwise use the -u and -p to send the credentials.  Here is the link to the documentation:

http://technet.microsoft.com/en-us/sysinternals/bb897553

No, you will not see the application execute.
0
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

McKnifeCommented:
No. Don't send credentials, please.  Those are sent in plain text and can be network-sniffed!
Start the command line as someone that has admin privileges on the remote computer - that way, nothing can be sniffed.
Then execute psexec like this
psexec \\remotepc -i cmd
the "-i" stands for interactive=visible.
0
jksungAuthor Commented:
When I run "psexec //hostname -u someusername -p somepassword cmd",
I'm currently getting the following error:
"There are currently no logon servers available to service the logon request."

However I am able to Remote desktop to the machine.  Is there a service that has to be running on the remote machine?
0
jksungAuthor Commented:
Note about the "Couldn't access 10.1.1.2:
The system detected a possible attempt to compromise security. Please ensure tha
t you can contact the server that authenticated you. " issue:

This was fixed by disabling the User Account Control on the remote machine.
0
McKnifeCommented:
You would not need to disable UAC completely, but just remote UAC: http://support.microsoft.com/kb/942817
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.