Why is my D drive missing information on Windows 11 but not on Windows 10?

0
0
Asked By CodeSlinger87 On

I've got a PowerShell script that's supposed to fetch disk info using the command Get-WmiObject -ComputerName win10PC -Class Win32_LogicalDisk -Filter 'DriveType = "3"'. On my Windows 10 PC, it returns details for both C and D drives just fine. However, when I run this on my Windows 11 PC, I'm only getting results for the C drive. The D drive shows up, but there's no information available (no free space, size, or volume name). I've checked the permissions, and they seem to match on both systems, and the firewall is wide open. I'm really puzzled as to why the D drive info isn't showing up on the Win11 PC. Any suggestions on what could be the issue or how to fix it? Thanks!

4 Answers

Answered By PowerNerd15 On

I just tested your command on a Windows 11 machine and got data for both drives without issues. You might want to add '| select *' to your command; it could reveal hidden data for the D drive that’s not showing up currently.

Answered By TechWhiz42 On

It seems like WMI might not be fully supported in Windows 11 anymore. You should try using `Get-CIMInstance` instead of `Get-WmiObject`. It's the newer method and should work better. Also, consider wrapping it in an `Invoke-Command` to see if that helps too!

ScriptGopher99 -

I heard `WMIC.exe` has been removed, but WMI itself isn’t going anywhere. Just definitely make that switch to CIM in your scripts.

Answered By AdminTweaker On

You’ve tried `Get-CIMInstance`, but it sounds like the issue may not be with the command itself. Make sure you’re checking the right permissions and firewall settings. Sometimes remote systems behave differently based on security settings set on the network.

Answered By DriveDetective On

I suspect that there might be a configuration issue with the disk itself. Have you tested running the command directly on the Win11 machine? If the D drive is a Dynamic Disk, it may not show up the same way as in the Win32_LogicalDisk Class. Consider also using `Get-Disk` or `Get-Volume` for different results.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.