Close. You want this:
$logLine = [PsCustomObject] @{
TimeStamp = Get-Date -Format "yyyy-MM-dd_HHmmss"
Machine = $process.machinename
Proc = $process.name
PagedMem = $process.pm
NonPagedMem = $process.npm
Handles = $process.handles
}
You could also use an OrderedHashTable ( [ordered] ).
--
You received this message because you are subscribed to the Google Groups "ntpowershell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntpowershell...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/ntpowershell/CADy1Ce7ybmC-Esqf8YOFP4DTMZpERw8WuHpVc4AxWJdKE4q%3Dcg%40mail.gmail.com.
--
On Jun 19, 2024, at 4:51 PM, Kurt Buff <kurt...@gmail.com> wrote:
[EXTERNAL]
--
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/4bc08721fe5849a49dc0bc825415e8be%40smithcons.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/4bc08721fe5849a49dc0bc825415e8be%40smithcons.com.
Very nice.
Well, it’ll tell you if it’s one of those ten processes anyway. 😊
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/CADy1Ce6gVuMZ_%2BR4aJ3p759EFPhLEDQ-BBR49e9kG-XPqKrDnA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntpowershell/df47152c6c0247d59d9b7af7faa8c6f0%40smithcons.com.