I was playing around with WMI to try to get this to work, but I've had 3 issues.
我正在玩WMI试图让它工作,但我有3个问题。
1: Anything I start doesn't show up with an application window on the remote system.
1:我启动的任何内容都没有出现在远程系统上的应用程序窗口中。
2: Most of the system's I've tried i'm getting access denied messages on.
2:我尝试过的大多数系统都在接收拒绝访问的消息。
3: How do I pass command line arguments O_O.
3:如何传递命令行参数O_O。
3 个解决方案
#1
This Hey, Scripting Guy! article explains #1 and suggests a workaround.
这个嘿,脚本专家!文章解释了#1并提出了一种解决方法。
#2
Not sure what you are doing but maybe take a look at the SysInteral's PsExec from Mark Russinovich.
不确定你在做什么,但也许可以看看Mark Russinovich的SysInteral的PsExec。
#3
Instead of trying to make remote WMI calls (and dealing with the security issues that arise from it), see if you can use rexec, which handles its own authentication. You can find a daemon service for NT, 2000, XP, 2003, etc. in the MKS Toolkit.
不要尝试进行远程WMI调用(并处理由此产生的安全问题),而是查看是否可以使用rexec来处理自己的身份验证。您可以在MKS Toolkit中找到NT,2000,XP,2003等的守护程序服务。
By default, services do not have access to the user's window station; checking "Log On > Allow service to interact with desktop" will enable this. (Though on Server 2008 and Vista, these windows are still forced to a separate, non-user window station regardless.)
默认情况下,服务无权访问用户的窗口站;检查“登录>允许服务与桌面交互”将启用此功能。 (虽然在Server 2008和Vista上,无论如何,这些窗口仍然被强制用于单独的非用户窗口站。)
#1
This Hey, Scripting Guy! article explains #1 and suggests a workaround.
这个嘿,脚本专家!文章解释了#1并提出了一种解决方法。
#2
Not sure what you are doing but maybe take a look at the SysInteral's PsExec from Mark Russinovich.
不确定你在做什么,但也许可以看看Mark Russinovich的SysInteral的PsExec。
#3
Instead of trying to make remote WMI calls (and dealing with the security issues that arise from it), see if you can use rexec, which handles its own authentication. You can find a daemon service for NT, 2000, XP, 2003, etc. in the MKS Toolkit.
不要尝试进行远程WMI调用(并处理由此产生的安全问题),而是查看是否可以使用rexec来处理自己的身份验证。您可以在MKS Toolkit中找到NT,2000,XP,2003等的守护程序服务。
By default, services do not have access to the user's window station; checking "Log On > Allow service to interact with desktop" will enable this. (Though on Server 2008 and Vista, these windows are still forced to a separate, non-user window station regardless.)
默认情况下,服务无权访问用户的窗口站;检查“登录>允许服务与桌面交互”将启用此功能。 (虽然在Server 2008和Vista上,无论如何,这些窗口仍然被强制用于单独的非用户窗口站。)