如何使用python在网络中将任何应用程序从一台机器运行到另一台机器

问题描述 投票:0回答:1

我想使用命令提示符或python脚本将任何应用程序从一台计算机运行到另一台计算机。使用WMI python库与其他计算机建立了连接,但无法运行应用程序

try:
    connection = wmi.WMI(ip, user=username, password=password)
    process_startup = connection.Win32_ProcessStartup.new()
    process_startup.ShowWindow = SW_SHOWNORMAL
    process_id, result = connection.Win32_Process.Create(CommandLine="notepad.exe path.txt", ProcessStartupInformation=process_startup)
except wmi.x_wmi:
    print ("Your Username and Password of "+getfqdn(ip)+" are wrong.")
python wmi
1个回答
0
投票

RPyC(发音类似于are-pie-see)或Remote Python Call,是一个透明的库,用于对称的远程过程调用,集群和分布式计算。 RPyC利用对象代理(一种利用python动态特性的技术)来克服进程和计算机之间的物理边界,以便可以像对待本地对象一样操作远程对象。https://github.com/tomerfiliba/rpyc

© www.soinside.com 2019 - 2024. All rights reserved.