进程在服务器上运行 [英] Process running on server

查看:80
本文介绍了进程在服务器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道服务器机器上当前正在运行的进程,我知道凭据C#



我尝试过:



我已尝试过程。获得处理

但它无法使用凭据连接到服务器。所以我尝试了管理范围和传递服务器名称以及进程的凭据.GetProcess但它不起作用

解决方案

如果登录用户(谁运行应用程序)没有远程服务器的访问权限,你不能使用GetProcesses ...

你必须学习WMI ...

这里有一些样本(包括确切的解决方案): WMI任务:进程(Windows) [ ^

I want to know the current running processes on server machine of which I know the credentials with C#

What I have tried:

I have tried process.Get processed
But it unable to connect to the server with credentials . So I have tried management scope and the passing server name with credentials to the process.GetProcess but it doesn't worked

解决方案

If the logged in user (who runs the application) has no access right to the remote server, you can not use GetProcesses...
You have to learn WMI...
There are some samples here (including the exact solution for you): WMI Tasks: Processes (Windows)[^]


这篇关于进程在服务器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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