Need something like PSEXEC but does not need password.

J

Jordan

I don't know if everyone has heard of PSEXEC from the PSTools kit but
hopefully you have. It is a command line utility that allows you to run a
command on a remote computer and has options to have the command interact
with the remote computer's desktop.

The down side of this utility is that it requires you to enter a username
and password in the command which makes using it in batch files difficult
because you don't want to store passwords in plain text in a file. I was
hoping someone here might know of a utility that works about the same, but
will:

1. Use the credentials of the logged in users
2. Allow the remote command to interact with the remote desktop
3. Work in a batch file.
 
P

Pegasus \(MVP\)

Jordan said:
I don't know if everyone has heard of PSEXEC from the PSTools kit but
hopefully you have. It is a command line utility that allows you to run a
command on a remote computer and has options to have the command interact
with the remote computer's desktop.

The down side of this utility is that it requires you to enter a username
and password in the command which makes using it in batch files difficult
because you don't want to store passwords in plain text in a file. I was
hoping someone here might know of a utility that works about the same, but
will:

1. Use the credentials of the logged in users
2. Allow the remote command to interact with the remote desktop
3. Work in a batch file.

psexec.exe does not require a password if the account/password
used on the remote machine is synchronised with an account/password
on the host machine.

If you require access to the host's desktop then you have to use
a product such as Remote Desktop or WinVNC. Both can be
launched from a batch file but both require a password to be
entered . . .
 
J

Jordan

I just want to be sure I have this straight. So since I am running the
PSEXEC command from my computer as me (a domain admin, but not Administrator
account), the command did not work because I never logged onto that computer
with my own account.

But, if I ran the command I was trying as the Administrator account for the
domain the command would have ran since the domain Administrator account has
logged onto that computer before and its credentials are cached

Is that correct?
 
P

Pegasus \(MVP\)

See below.

Jordan said:
I just want to be sure I have this straight. So since I am running the
PSEXEC command from my computer as me (a domain admin, but not
Administrator account), the command did not work because I never logged
onto that computer with my own account.

When I'm logged on to PC1 as a domain admin and if PC2
is joined to the domain then I can launch psexec.exe from PC1
to PC2 without entering any credentials.

It's the same with workgroup PCs: When I'm logged on to
PC3 as ABC with a password of xyz, and if the account ABC
exists on PC4 and has a password of xyz, then I can launch
psexec.exe from PC3 to PC4 without entering any credentials.
But, if I ran the command I was trying as the Administrator account for
the domain the command would have ran since the domain Administrator
account has logged onto that computer before and its credentials are
cached

Sorry, I do not understand what you're trying to say - please rephrase.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top