import rpyc import os # RDP HOME conn = rpyc.classic.connect("192.168.192.58",18812) conn.execute('import os') conn.execute('import subprocess') conn.execute('import psutil') rsubprocess=conn.modules.subprocess rpsutil=conn.modules.psutil #processlist=list() for process in rpsutil.process_iter(): try: print(process.name()) print(process.exe()) print(process.username()) except: print('except') # print(process) #rsubprocess.Popen(['python', 'C:/gitlab/kw_tools/hhh/SEO/local_1777.py'],cwd=r'C:\gitlab\kw_tools\hhh\SEO')