Nanaki Posted February 17, 2005 Share Posted February 17, 2005 Topic says it all. In VMware (haven't tested it on a real PC yet) my uA disk gives me an out of Virtual Memory error, which is . Anyway, is there a way to write a list of running processes to a local text file? I'm installing everything from T-12 so I can't check Task Manager. Another q, any way on starting and stopping services with batch files?Tnx in advance! Link to comment Share on other sites More sharing options...
Martin Zugec Posted February 17, 2005 Share Posted February 17, 2005 tasklist > file.txtwmic /output:file.txt process get namepslist > file.txt and lot more... Probably best for debugging is commandwmic /output:file.txt process list full Link to comment Share on other sites More sharing options...
Nanaki Posted February 17, 2005 Author Share Posted February 17, 2005 Thanks! But I have windows XP Home Edition though, so the wmic won't work. Link to comment Share on other sites More sharing options...
Martin Zugec Posted February 17, 2005 Share Posted February 17, 2005 Never worked with Home edition, but AFAIR there isnt wmic and tasklist... In that case just include pslist or any 3rd party cmd utility to list processes...Or create process.vbs and type following inside:On Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colItems = objWMIService.ExecQuery("Select * from Win32_Process",,48)For Each objItem in colItems Wscript.Echo "Caption: " & objItem.Caption Wscript.Echo "CommandLine: " & objItem.CommandLine Wscript.Echo "CreationClassName: " & objItem.CreationClassName Wscript.Echo "CreationDate: " & objItem.CreationDate Wscript.Echo "CSCreationClassName: " & objItem.CSCreationClassName Wscript.Echo "CSName: " & objItem.CSName Wscript.Echo "Description: " & objItem.Description Wscript.Echo "ExecutablePath: " & objItem.ExecutablePath Wscript.Echo "ExecutionState: " & objItem.ExecutionState Wscript.Echo "Handle: " & objItem.Handle Wscript.Echo "HandleCount: " & objItem.HandleCount Wscript.Echo "InstallDate: " & objItem.InstallDate Wscript.Echo "KernelModeTime: " & objItem.KernelModeTime Wscript.Echo "MaximumWorkingSetSize: " & objItem.MaximumWorkingSetSize Wscript.Echo "MinimumWorkingSetSize: " & objItem.MinimumWorkingSetSize Wscript.Echo "Name: " & objItem.Name Wscript.Echo "OSCreationClassName: " & objItem.OSCreationClassName Wscript.Echo "OSName: " & objItem.OSName Wscript.Echo "OtherOperationCount: " & objItem.OtherOperationCount Wscript.Echo "OtherTransferCount: " & objItem.OtherTransferCount Wscript.Echo "PageFaults: " & objItem.PageFaults Wscript.Echo "PageFileUsage: " & objItem.PageFileUsage Wscript.Echo "ParentProcessId: " & objItem.ParentProcessId Wscript.Echo "PeakPageFileUsage: " & objItem.PeakPageFileUsage Wscript.Echo "PeakVirtualSize: " & objItem.PeakVirtualSize Wscript.Echo "PeakWorkingSetSize: " & objItem.PeakWorkingSetSize Wscript.Echo "Priority: " & objItem.Priority Wscript.Echo "PrivatePageCount: " & objItem.PrivatePageCount Wscript.Echo "ProcessId: " & objItem.ProcessId Wscript.Echo "QuotaNonPagedPoolUsage: " & objItem.QuotaNonPagedPoolUsage Wscript.Echo "QuotaPagedPoolUsage: " & objItem.QuotaPagedPoolUsage Wscript.Echo "QuotaPeakNonPagedPoolUsage: " & objItem.QuotaPeakNonPagedPoolUsage Wscript.Echo "QuotaPeakPagedPoolUsage: " & objItem.QuotaPeakPagedPoolUsage Wscript.Echo "ReadOperationCount: " & objItem.ReadOperationCount Wscript.Echo "ReadTransferCount: " & objItem.ReadTransferCount Wscript.Echo "SessionId: " & objItem.SessionId Wscript.Echo "Status: " & objItem.Status Wscript.Echo "TerminationDate: " & objItem.TerminationDate Wscript.Echo "ThreadCount: " & objItem.ThreadCount Wscript.Echo "UserModeTime: " & objItem.UserModeTime Wscript.Echo "VirtualSize: " & objItem.VirtualSize Wscript.Echo "WindowsVersion: " & objItem.WindowsVersion Wscript.Echo "WorkingSetSize: " & objItem.WorkingSetSize Wscript.Echo "WriteOperationCount: " & objItem.WriteOperationCount Wscript.Echo "WriteTransferCount: " & objItem.WriteTransferCountNext Then just call this script by cscript //nologo process.vbs BTW Exclude everything U dont want to see of course Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now