帮助以登录用户身份在远程计算机上启动应用程序 [英] help starting an application on a remote computer as the logged in user

查看:129
本文介绍了帮助以登录用户身份在远程计算机上启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们所有席位上都有一个应用程序,该应用程序必须以当前登录的用户身份运行.有时我们必须停止该应用程序以进行故障排除并重新启动,因为如果我们以管理员身份开始以远程方式启动它,则必须重新启动它.

我有启动它的代码,我需要知道如何以远程计算机上的当前登录用户身份运行它.

We have an application on all our seats that has to run as the current logged in users. From time to time we have to stop that application to troubleshoot and to get it to come back on we have to reboot becasue if we start it remotly its starting with our admin credentilas and we dont want that.

I have this code for starting it and i need to know how i would run this as the current logged in user on a remote computer.

Dim strCommand = "C:\Progra~2\Hewlett-Packard\HPCA\Agent\SoftwareConnect.cmd"
Dim objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Dim objProcess = objWMIService.Get("Win32_Process")

objProcess.Create(strCommand)
MsgBox("RADTRAY.EXE started")

推荐答案

您不能在远程计算机上启动交互过程.该过程将启动,但是登录的用户将永远不会看到任何窗口.

如果您考虑引入的安全风险,那么您为什么做不到却很明显.
You cannot start an interactive process on a remote machine. The process will launch, but the logged in user will never see any windows from it.

If you think about the security risk that introduces, it''s quite obvious why you can''t do it.


这篇关于帮助以登录用户身份在远程计算机上启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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