プロセスの詳細な情報を取得する方法・Get-Process, Format-List †PowerShellでプロセスの詳細な情報を取得する場合、Get-ProcessとFormat-Listコマンドレットを使用すると簡単に表示することができます。 関連記事 †Get-ProcessとFormat-Listを使って詳細なプロセス情報を表示 †以下の構文で詳細なプロセス情報を表示することができます。 Get-Process プログラム名 | Format-List * 実際にメモ帳(notepad)を起動して実行した例です。 PS C:\Users\sakura> Get-Process notepad | Format-List * __NounName : Process Name : notepad Handles : 103 VM : 104423424 WS : 9015296 PM : 2396160 NPM : 10352 Path : C:\WINDOWS\system32\notepad.exe Company : Microsoft Corporation CPU : 0.046875 FileVersion : 6.3.9600.16384 (winblue_rtm.130821-1623) ProductVersion : 6.3.9600.16384 Description : メモ帳 Product : Microsoft® Windows® Operating System Id : 6884 PriorityClass : Normal HandleCount : 103 WorkingSet : 9015296 PagedMemorySize : 2396160 PrivateMemorySize : 2396160 VirtualMemorySize : 104423424 TotalProcessorTime : 00:00:00.0468750 BasePriority : 8 ExitCode : HasExited : False ExitTime : Handle : 1408 MachineName : . MainWindowHandle : 263220 MainWindowTitle : 無題 - メモ帳 MainModule : System.Diagnostics.ProcessModule (notepad.exe) MaxWorkingSet : 1413120 MinWorkingSet : 204800 Modules : {System.Diagnostics.ProcessModule (notepad.exe), System.Diagnostics.ProcessModule (ntdll.d ll), System.Diagnostics.ProcessModule (KERNEL32.DLL), System.Diagnostics.ProcessModule (KE RNELBASE.dll)...} NonpagedSystemMemorySize : 10352 NonpagedSystemMemorySize64 : 10352 PagedMemorySize64 : 2396160 PagedSystemMemorySize : 202072 PagedSystemMemorySize64 : 202072 PeakPagedMemorySize : 2486272 PeakPagedMemorySize64 : 2486272 PeakWorkingSet : 9031680 PeakWorkingSet64 : 9031680 PeakVirtualMemorySize : 108949504 PeakVirtualMemorySize64 : 2199132205056 PriorityBoostEnabled : True PrivateMemorySize64 : 2396160 PrivilegedProcessorTime : 00:00:00.0468750 ProcessName : notepad ProcessorAffinity : 15 Responding : True SessionId : 7 StartInfo : System.Diagnostics.ProcessStartInfo StartTime : 2015/01/06 17:20:40 SynchronizingObject : Threads : {3620} UserProcessorTime : 00:00:00 VirtualMemorySize64 : 2199127678976 EnableRaisingEvents : False StandardInput : StandardOutput : StandardError : WorkingSet64 : 9015296 Site : Container : 上記の通り、メモ帳(notepad)の詳細なプロセス情報が表示されます。 以上、Get-Process, Format-Listを使って詳細なプロセス情報を表示する方法でした。 |