poweradminllc / PAExec

Remote execution, like PsExec
523 stars 177 forks source link

Check computer name DNS resolution #39

Open Anthony45000 opened 3 years ago

Anthony45000 commented 3 years ago

With Psexec, the command is not launched if the computername that is targeted is not the same that the joined computer (DNS resolution error), but Paexec don't care... In situ : we have a lot of VPN users, and DNS are not always up to date. "Sometimes", if I launch a command on \computername1, the command is executed on another computer that just take the same IP from our VPN... Maybe it could be an option of PAExec program ("-checkDNS"), or push the "original computername" variable that we could compare with the remote command... Hope the request is clear :)

poweradminllc commented 3 years ago

I'm not able to reproduce this with PsExec. I can put a host file entry on my local computer so I redirect to another computer of a different name and PsExec happily executes. Can you show what error PsExec gives in this case?