您的最佳的信息源和新聞 窗口, 窗口遠景 并且 xp 在互聯網

景色文章 名列前茅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日沒有評論.
讀更多文章 處理探險家 并且 tasklist 并且 WMI 并且 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.