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


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

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 06:37 -0400
Organization A noiseless patient Spider
Message-ID <vt870o$2qqsd$1@dont-email.me> (permalink)
References <vt7avq$1hkgt$5@dont-email.me> <vt7gqk$27shn$1@dont-email.me> <vt7n5p$1hkgt$6@dont-email.me>

Show all headers | View raw


On Thu, 4/10/2025 2:06 AM, T wrote:
> On 4/9/25 9:18 PM, Paul wrote:
>> Get-WmiObject -Class Win32_LogicalDisk | Format-Table VolumeName, DeviceID, ProviderName, FreeSpace, Size -Autosize
> 
> 
> Just out of curiosity, what is "DriveType    : 4"?

When Microsoft does that, you'll need to find an article
with the secret decoder ring.

Remember, that historically, Microsoft hasn't known what your storage
device is. On this machine, it calls my RAMDrive "Fiber channel" (that's the
name this week). I'm sure one of the storage types is "Station wagon full of 9 track tape".

https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-logicaldisk

DriveType

Unknown (0)
No Root Directory (1)
Removable Disk (2)
Local Disk (3)
Network Drive (4)
Compact Disc (5)
RAM Disk (6)

And you can tell that list is not even remotely up to date.
There are bound to be new values, undocumented.

For example "Stone Tablet and Chisel" is missing.

Get-WmiObject -Class Win32_LogicalDisk | Format-Table VolumeName, DriveType

VolumeName DriveType
---------- ---------
W11HOME            3
RAMDrive           3   <=== See, it blends right in.
WIN10AMD           3
SHARED             3

Task Manager performance tab, lists the RAMDrive as Fiber Channel.
The Optimize dialog calls it "HDD" this week, which means
I can defrag the RAMDrive if I want.

   Paul

Back to alt.comp.os.windows-11 | Previous | NextPrevious in thread | Next 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