Default format.ps1xml not being properly used

Welcome Forums General PowerShell Q&A Default format.ps1xml not being properly used

Viewing 1 reply thread
  • Author
    Posts
    • #249863
      Participant
      Topics: 1
      Replies: 0
      Points: 14
      Rank: Member

      PSVersion 5.1.18362.752

      When issuing a get-process, I get output like the following:

      Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id SI ProcessName
      ——- —— —– —– —– —— — — ———–
      2776 104 478080 513680 812 346.59 7964 2 AcroRd32

      Note that there is no VM column listed anymore.  If you examine the contents of DotNetTypes.format.ps1xml you will see that under the System.Diagnostics.ProcessModule there is formatting for this column that should appear.  I don’t know why it doesn’t.  If you make a copy of this ps1xml file to an alternate location and import it like:

      Update-FormatData -PrependPath .\myformat.ps1xml

      Then immediately, the display issue is fixed:

      Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id SI ProcessName
      ——- —— —– —– —– —— — — ———–
      2776 104 478080 513680 812 346.59 7964 2 AcroRd32

      Can’t explain it.  Don’t understand it.

      Help?

    • #249905
      Senior Moderator
      Topics: 9
      Replies: 1310
      Points: 4,789
      Helping Hand
      Rank: Community Hero

      Crazy, I didn’t notice this yet. Mostly a bug.

      • This reply was modified 1 month, 1 week ago by kvprasoon. Reason: post correction
Viewing 1 reply thread
  • You must be logged in to reply to this topic.