My code is here:
from pypsexec import client
import os
import time
import sys
import paramiko
host = '192.168.x.x'
user = 'xxxxx'
pass1 = 'xxxxx'
c = client(host, username=user, password=pass1, encrypt=False, port=139)
c.connect()
try:
c.create_service()
stdout = c.run_executable("cmd.exe", arguments="xxxx")
finally:
c.cleanup()
c.remove_service()
c.disconnect()
And it gives an error:
Module not callable with remote server connection