简体   繁体   中英

how to start a remote process with command line arguments?

I was playing around with WMI to try to get this to work, but I've had 3 issues.

1: Anything I start doesn't show up with an application window on the remote system.

2: Most of the system's I've tried i'm getting access denied messages on.

3: How do I pass command line arguments O_O.

This Hey, Scripting Guy! article explains #1 and suggests a workaround.

不确定您在做什么,但也许可以看看Mark Russinovich的SysInteral的PsExec

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.

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.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM