run psexec on remote pc

MacFarlane, Alastair 1 Reputation point
2021-01-13T10:31:48.877+00:00

Hi

I have a pc with a static ip address that has been moved to a site using DHCP. Can psexec be used to connect to it when the pc is connected to the network of a DHCP site when the pc has a static IP address. I guess not.

I was just wanting to change the IP address from static to DHCP without physically going out to the pc and logging on.

496-use-psexec-to-change-static-ips-to-dhcp-remotely

Cheers,

Alastair

Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,169 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. mariora 376 Reputation points
    2021-01-15T22:05:18.033+00:00

    If you know the remote Ip Address you can always connect to that machine if you have the right credentials.

    PSEXEC first parameter is the remote computer name. It can be the Netbios name or the IPAddress.

    So
    psexec \10.10.10.129 .....

    Will connect to that IP Address and will execute whatever you want

    HTH
    -mario


  2. MacFarlane, Alastair 1 Reputation point
    2021-01-17T19:57:27.467+00:00

    Mariora,

    Thanks for the reply. So it makes no difference whether it is static pc at a DHCP site (as is this case) or a DHCP pc at a static site, as an admin I should be able to connect to
    the pc?

    Cheers.

    Alastair

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.