Last active
June 7, 2018 19:03
-
-
Save jrich523/263255120c38996de5bce6d2a6bb6e7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$processInfo = Get-Process | |
Get-Member -InputObject $processInfo # shows the array's info like so | |
<# | |
TypeName: System.Object[] | |
Name MemberType Definition | |
---- ---------- ---------- | |
Count AliasProperty Count = Length | |
Add Method int IList.Add(System.Object value) | |
Address Method System.Object&, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Address(int ) | |
Clear Method void IList.Clear() | |
.... | |
#> | |
$processinfo | Get-Member #shows the first objects members | |
<# | |
TypeName: System.Diagnostics.Process | |
Name MemberType Definition | |
---- ---------- ---------- | |
Handles AliasProperty Handles = Handlecount | |
Name AliasProperty Name = ProcessName | |
NPM AliasProperty NPM = NonpagedSystemMemorySize64 | |
PM AliasProperty PM = PagedMemorySize64 | |
.... | |
#> | |
$processInfo[0] | select * #show all property and values on this level | |
# modules is an array which is "previewed" | |
<# | |
Name : AdiIRC | |
Id : 22256 | |
PriorityClass : Normal | |
FileVersion : 3.0.0.0 | |
HandleCount : 822 | |
WorkingSet : 85532672 | |
PagedMemorySize : 88690688 | |
PrivateMemorySize : 88690688 | |
VirtualMemorySize : 821944320 | |
Modules : {System.Diagnostics.ProcessModule (AdiIRC.exe), System.Diagnostics.ProcessModule (ntdll.dll), System.Diagnostics.ProcessModule (MSCOREE.DLL), System.Diagnostics.ProcessModule (KERNEL32.dll)...} | |
NonpagedSystemMemorySize : 60592 | |
#> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment