jksung
asked on
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
http://technet.microsoft.com/en-us/sysinternals/bb897553
No, you will not see the application execute.
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.
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.
ASKER
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?
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?
ASKER
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.
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.
You would not need to disable UAC completely, but just remote UAC: http://support.microsoft.com/kb/942817
ASKER
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.