Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-11 > #18409

Re: I need help with powershell select object

From Paul <nospam@needed.invalid>
Newsgroups alt.comp.os.windows-11
Subject Re: I need help with powershell select object
Date 2025-04-10 21:27 -0400
Organization A noiseless patient Spider
Message-ID <vt9r5n$9jh2$1@dont-email.me> (permalink)
References <vt7avq$1hkgt$5@dont-email.me> <vt7gqk$27shn$1@dont-email.me> <vt9oj9$2qfn$2@dont-email.me>

Show all headers | View raw


On Thu, 4/10/2025 8:43 PM, T wrote:
> On 4/9/25 9:18 PM, Paul wrote:
>> Get-WmiObject -Class Win32_LogicalDisk | Format-Table VolumeName, DeviceID, ProviderName, FreeSpace, Size -Autosize
>>
>> VolumeName DeviceID ProviderName   FreeSpace         Size
>> ---------- -------- ------------   ---------         ----
>> W11HOME    C:                    34634596352 127481671680
>> WIN10AMD   H:                    71373815808 138510688256
>> SHARED     S:                    43187482624 732331765760
>>
>> Almost like there is a columnar limitation on output,
> 
> It is the word "Size", even by itself, than goofs it.
> 
> Perhaps I stumbles on a "reserved word"?  Those are always a
> pain-in-the-neck when you stumble across them in your
> programming language.

Playing with it, it looks like "Format-Table" supports wider tables.
The -Autosize, it's good to know such an option exists, but I think
it is the default action and does not need to be included.

   Paul

Back to alt.comp.os.windows-11 | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

I need help with powershell select object T <T@invalid.invalid> - 2025-04-09 19:38 -0700
  Re: I need help with powershell select object Paul <nospam@needed.invalid> - 2025-04-10 00:18 -0400
    Re: I need help with powershell select object T <T@invalid.invalid> - 2025-04-09 22:59 -0700
    Re: I need help with powershell select object T <T@invalid.invalid> - 2025-04-09 23:06 -0700
      Re: I need help with powershell select object Paul <nospam@needed.invalid> - 2025-04-10 06:37 -0400
        Re: I need help with powershell select object Andy Burns <usenet@andyburns.uk> - 2025-04-10 11:42 +0100
          Re: I need help with powershell select object Frank Slootweg <this@ddress.is.invalid> - 2025-04-10 15:30 +0000
            Re: I need help with powershell select object Andy Burns <usenet@andyburns.uk> - 2025-04-10 17:33 +0100
        Re: I need help with powershell select object T <T@invalid.invalid> - 2025-04-10 04:12 -0700
        Re: I need help with powershell select object T <T@invalid.invalid> - 2025-04-10 04:13 -0700
        Re: I need help with powershell select object Java Jive <java@evij.com.invalid> - 2025-04-10 12:46 +0100
        Re: I need help with powershell select object T <T@invalid.invalid> - 2025-04-10 17:32 -0700
    Re: I need help with powershell select object T <T@invalid.invalid> - 2025-04-10 17:43 -0700
      Re: I need help with powershell select object Paul <nospam@needed.invalid> - 2025-04-10 21:27 -0400

csiph-web