进程在服务器上运行

编程入门 行业动态 更新时间:2024-10-23 13:28:23
本文介绍了进程在服务器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道服务器机器上当前正在运行的进程,我知道凭据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)[^]

更多推荐

进程在服务器上运行

本文发布于:2023-06-10 22:53:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/620802.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:进程   器上

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!