如何从Linux机器上激活Windows上的程序 [英] How to activate programs on windows from Linux machine

查看:135
本文介绍了如何从Linux机器上激活Windows上的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我将解释我的目标

First I will explain my target

目标-在Linux机器上的Windows机器上执行程序或脚本

Target - execute programs or scripts on my windows machine from my Linux machine

我找到了winexe工具-这个工具可以从我的Linux上的远程Windows机器上远程执行命令-很好,

I find the winexe tool – this tool perform remotely executes commands on remote windows machine from my Linux – very nice,

有关winexe工具及其工作方式的真实示例:

real example about winexe tool , and how it works:

以下示例语法应从Linux上的Windows计算机上打开IE(非常好)

The following example syntax should open the IE on my windows machine from my Linux (very nice )

  ./winexe -U login%password -W WORKGROUP //remore_machine_ip "cmd /k    cscript C:/open-explorer.vbs"

open-explorer.vbs 脚本如下:

 Set WshShell = WScript.CreateObject("WScript.Shell") 
 WshShell.Run "iexplore http://www.google.com", 9

所以现在我将解释问题... 关于winexe语法,我看到winexe实际上执行了open-explorer.vbs脚本,但是!

So now I will explain the problem ..... Regarding the winexe syntax I see that winexe actually execute the open-explorer.vbs script but !

IE并非真的弹出/打开?在我的窗户上?

IE not really popup/opened? On my windows???

但是当我在Windows上运行/执行 open-explorer.vbs 脚本时,IE(google)资源管理器成功打开了

But when I run/exe the open-explorer.vbs script on my windows the IE (google) explorer opened successfully

那么为什么IE是从Windows计算机而不是通过winexe工具打开的? 我猜是因为winexe看不到Windows ENV吗?也许还有其他东西?

So why IE opened from windows machines and not by the winexe tool? I guess because the winexe can’t see windows ENV ? Or maybe something else?

请咨询–如何通过winexe工具在Windows计算机上打开IE

Please advice – how to open the IE on my windows machine by winexe tool

要在WIN上打开IE,需要用我的winexe语法添加/更改/替换什么?

what need to add/change/replace in my winexe syntax to open the IE on WIN ?

WINEXE工具语法

       ./winexe -U login%password -W WORKGROUP //remore_machine_ip "cmd /k    cscript C:/open-explorer.vbs"


 login - WIN login
 password  - WIN password
 remore_machine_ip - WIN ip address

winexe网站- http://www.aldeid.com/wiki/Winexe

winexe site - http://www.aldeid.com/wiki/Winexe

推荐答案

根据Winexe的文档:

--interactive=0|1
  Desktop interaction: 0 - disallow, 1 - allow. 
  If you allow use also --system switch (Win > requirement). 
  Vista do not support this option. 

所以--interactive=1 --system应该可以解决问题.

So --interactive=1 --system should do the trick.

这篇关于如何从Linux机器上激活Windows上的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆