本文介绍了进程在服务器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道服务器机器上当前正在运行的进程,我知道凭据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)[^]更多推荐
进程在服务器上运行
发布评论