您的最佳的信息源和新闻 xp, winvista 并且 软件 在互联网

景色文章 名列前茅50 景色录影 景色软 景色帮助

处理探险家

您当前浏览文章从 微软视窗景色兼容软件 匹配类别 处理探险家.

使用C#发现什么在过程中为服务跑

注: 原始这个内容从 http://mygreenpaste.blogspot.com. 如果您是读书它从某一其他站点,请需要时间参观 我的绿色浆糊,公司. 谢谢。

最近,一单独去由’张贴的标记`高 一个评论 设置服务过程的优先权通过剧本:

怎么会I,如果我要,服务是特殊svchost.exe的一部分的发现? 在C#能在做?

谢谢!

我回复了 通过评论,但是你比你在实际blog投稿不太掌握格式化在评论做,因此我计算我这里会张贴反应。

=================

Tasklist.exe 与/svc氰胍可能告诉您,作为罐头 处理探险家. 您能也检查登记确定什么服务用什么SVCHOST小组将装载(参见“查明故障性能问题与自动更新”为更多细节)。

就C#代码,下列要求在System.Management的参考。 调用节目,通过它过程的过程您是好奇的id,并且它将输出跑在那个过程中的服务。

使用系统; 使用System.Management;

namespace MyGreenPaste { 

点击持续读“用途C#发现什么在处理为服务跑”

由“/\/\ Ø写|ö±ò \/” ®© 2008年2月7日没有评论.
读更多文章 SVCHOST 并且 处理探险家 并且 otherSoftware 并且 过程 并且 c# 并且 服务.

设置服务过程的优先权通过剧本

早先(这里 并且 这里),我写了关于隔绝共有的服务,以便他们在他们自己的过程中跑,与一个具体焦点在服务的窗口更新自动更新(wuauserv)那在NETSVCS SVCHOST.EXE事例典型地跑。 可以一次做这的一件事是成功的是降低过程的优先权,以便,当服务包缠消耗100% CPU时,系统不变得无答复。

Since we’re dealing with a service, setting the priority of such a SVCHOST.EXE process can become problematic - the service may already be running, or, because it is a service, it is not started as non-service processes are, so one is not able to use START / [LOW NORMAL HIGH REALTIME ABOVENORMAL BELOWNORMAL] to impose a priority when the process starts. One can use a utility like Task Manager or Process Explorer to set the priority of a process on an ad hoc basis, but when the service restarts or the system reboots one has to remember to set the priority again.

Though not an ideal solution the following scripts (VBS using WMI, and PowerShell) can be used to set the

Click to continue reading "Setting the Priority of a Service Process via Script"

Written by «/\/\Ø|ö±ò\/»®© on May 1st, 2007 with no comments.
Read more articles on SVCHOST and CPU Utilization and Shared Services and Process Explorer and netsvcs and WUAUSERV and otherSoftware and Windows Update and Troubleshooting and processes and automatic updates and Windows.