-3

I have a few old machines that I would like to verify the credentials each of them has is correct and math. All machines don't have SSH or WMI enabled. On Linux, for example, I used Paramiko to SSH to servers and detected an error or successfully connected.

RDP is not required, just verify the credentials. Could you please help me how to check it. Thanks.

Ansi
  • 3
  • 3

1 Answers1

0

I worked on a similar problem a couple weeks ago using pypsexec along with windows login credentials, where I didn't have ssh access to the servers.

You could try something like this.

from pypsexec.client import Client

# for each windows server
try:
    c = Client("server", username="username", password="password")
    c.connect()
    c.cleanup()
    c.disconnect()
except Exception as ex:
    print("Connection failed, " + str(ex))

You can find out more information here pypsexec.

BcK
  • 2,548
  • 1
  • 13
  • 27