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 BTH]  [User Agreement]  [Privacy Policy]  [Site Map]  [Contact Form]  [Advertise on BTH]  [News Feed]

Google
Web
This Site
Your Ad Here!
Your ad here for one full year, only $20. Send me your ad copy, up to six lines, I'll post it ASAP. After you inspect your ad online, you can pay through PayPal.
Click here for more information.

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.

Computer Sections

RSS Feed RSS Feed

Windows System Administration
Security Risks and Ways to Decrease Vulnerabilities in a 802.11b Wireless Environment
Configure Vista's Data Execution Prevention
Internet Connection Sharing in Windows XP
How to Backup Mails and Address Book of Outlook Express
Windows 2000 Security Overview
Kill The Messenger (Service)
Use the HOSTS File to Block Web Sites
FreeDOS
A Day in the Life of a System Administrator
Microsoft Licensing Explained
Configure Windows Indexing Service for Performance
Configuring Windows as a NTP (Network Time Protocol) Server
Font Basics
Three Important Techniques for Securing a Wireless Network
Defend Your Business with a Firewall
Msconfig - Microsoft's Secret Weapon to Increase Your Computer's Speed
Choosing a Tape Drive
PC Technician Certifications and Professional Organizations
PC Technician's Guide to Providing Telephone Support
PC Technician's Software Copyright Responsibilities
CompTIA A+ Complete Study Guide
Hard Disk Management
Windows Server 2003 Active Directory and Network Infrastructure
The Security and Maintenance of Messages in Outlook Express
Planning a Backup and Restoration of Files for Disaster Recovery
WSH to Master Your Computer
Script to Print a Directory File List
Disable Long Filenames to Improve Window's Performance
Disable Kernal Paging to Speed Up Windows
Script to Display the Processes Running on a Computer
Script to Identify Your Systems HAL
To Protect Your PC Disable the Windows Scripting Host

Your Ad Here
[Site User Agreement]  [Advertise on This site]  [Search This Site]  [Contact Form]
Copyright©2001-2007 Bucaro TecHelp P.O.Box 18952 Fountain Hills, AZ 85269