Processes are the programs or tasks running on a computer. The most common way to view the processes is with Task Manager. To get a quick list you could use a script. Below is a script that displays the processes running on a computer.
Welcome to Bucaro TecHelp!

Welcome to Bucaro TecHelp!
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact Advertise on Bucaro TecHelp Advertise Here RSS News Feeds News Feeds


Computer Repair with Diagnostic Flowcharts

Troubleshoot PC Hardware Problems With Flowcharts

This manual for troubleshooting PC hardware problems creates a visual expert system for diagnosing component failure and identifying conflicts.

The seventeen diagnostic flowcharts at the core of this book are intended for the intermediate to advanced hobbyist, or the beginning technician.

Click Here

Script to Display the Processes Running on a Computer

Processes are the programs or tasks running on a computer. The most common way to view the processes is with Task Manager. To get a quick list you could use a script. Below is a script that displays the processes running on a computer.

Set objWMI = GetObject("winmgmts:\\.\root\cimv2")
Set colProcesses = objWMi.InstancesOf("Win32_Process")

strProcesses = ""

For each objProcess In colProcesses
  strProcesses = strProcesses & objProcess.Name & vbTab & "(" & objProcess.ProcessID & ")" & VbCrLf
Next

MsgBox(strProcesses)

WMI (Windows Management Instrumentation) is Microsoft’s implementation of the DMTF (Distributed Management Task Force) WBEM (Web-Based Enterprise Manage) standard. WMI is an extension of the Windows drivers model that provides an interface through which scripting languages like Java Script and VB Script can access information and manage components of a computer like hardware, applications, services, security, processes, the file system, etc. locally and across a network.

The WMI is extremely complex and it would require a book full of alphabet soup to provide even a simplified description of it (and many books have been written on the subject). However, using the WMI is extremely easy. You access its incredible power by writing simple scripts. The Microsoft TechNet Scripting Center Script Repository provides hundreds of scripts to perform common administrative tasks through WMI, and there are many other web sites dedicated to WMI scripts.

WMI a hierarchical arrangement of namespaces to organize objects. The example script creates a WMI object to access "Win32_Process" object's Processes collection. The root directory is named root. Four predefined namespaces reside below the root: cimv2, default, security, and wmi. The "Win32_Process" object resides in the cimv2 namespace.

- Scripts that access the WMI require Administrator rights.

Note: The script in this article is provided AS IS without warranty of any kind. Bucaro TecHelp disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use of the script remains with you. In no event shall Bucaro TecHelp be liable for any damages whatsoever arising out of the use of or inability to use this script.

RSS Feed RSS Feed



Computer Sections

Windows

Here's the information you need to not only prepare for the MCITP certification exams as a Windows 7 desktop support technician or administrator, but also to excel in your job.

From successfully troubleshooting individual desktops to planning and configuring Windows 7 desktop infrastructures on a broad scale, this reference explores the real-world tasks and scenarios you'll face on the job and shows you step by step how to handle them.

Reader Bill Talbott says, "The author has an innate ability to break out complex and often boring topics and make them interesting to the end reader. His writing style, combined with the exercises throughout this text, ensure complete understanding of each topic...

Click here for more information.


TigerDirect
[Site User Agreement] [Advertise on This site] [Search This Site] [Contact Form]
Copyright©2001-2011 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268