Post problem reports here for Batch files for use in BSOD debugging


  1. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1321

    Matthew Wai said:
    Run the following and post the output:

    Code:
    PowerShell GWMI -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage^|Select FriendlyName,MediaType
    Code:
    
    PowerShell "GWMI -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage | Select FriendlyName, MediaType"
    
    FriendlyName      MediaType
    ------------      ---------
    TOSHIBA MK6034GSX         0
      My Computer


  2. Posts : 7,606
    Windows 10 Home 20H2
       #1322

    Run the following and post the output:

    Code:
    PowerShell Get-PhysicalDisk^|Select DeviceID, MediaType, BusType, FriendlyName^|Sort DeviceID


    MediaType seems unable to produce correct output occasionally.
      My Computer


  3. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1323

    Matthew Wai said:
    Run the following and post the output:

    Code:
    PowerShell Get-PhysicalDisk^|Select DeviceID, MediaType, BusType, FriendlyName^|Sort DeviceID
    Code:
    PowerShell "Get-PhysicalDisk | Select DeviceID, MediaType, BusType, FriendlyName | Sort DeviceID"
    
    DeviceID MediaType   BusType FriendlyName
    -------- ---------   ------- ------------
    0        Unspecified SATA    TOSHIBA MK6034GSX
      My Computer


  4. Posts : 7,606
    Windows 10 Home 20H2
       #1324

    It considers your HDD to be "Unspecified", which is the problem.
    MediaType is unreliable in some cases.
      My Computer


  5. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1325

    Matthew Wai said:
    It considers your HDD to be "Unspecified", which is the problem.
    Surely this is also likely to apply to SOME USBs and External HDDs/SSDs.
      My Computer


  6. Posts : 1,777
    Windows 11 [21H2]
       #1326

    Paul Black said:
    Code:
    
    PowerShell "GWMI -Class MSFT_PhysicalDisk -Namespace root\Microsoft\Windows\Storage | Select FriendlyName, MediaType"
    
    FriendlyName      MediaType
    ------------      ---------
    TOSHIBA MK6034GSX         0
    Paul Black said:
    Code:
    PowerShell "Get-PhysicalDisk | Select DeviceID, MediaType, BusType, FriendlyName | Sort DeviceID"
    
    DeviceID MediaType   BusType FriendlyName
    -------- ---------   ------- ------------
    0        Unspecified SATA    TOSHIBA MK6034GSX
    0 [USB] and SATA?
      My Computers


  7. Posts : 7,606
    Windows 10 Home 20H2
       #1327

    BusType never lies, while MediaType sometimes lies.
      My Computer


  8. Posts : 7,606
    Windows 10 Home 20H2
       #1328

    @Paul Black and @zbook and @jbcarreon123,

    Please run the following command and post the output:

    PowerShell Get-PhysicalDisk^|Select MediaType, BusType, SpindleSpeed, FriendlyName

    The following is my example:
    Code:
    C:\Users\Matthew_Wai>PowerShell Get-PhysicalDisk^|Select MediaType, BusType, SpindleSpeed, FriendlyName
    
    MediaType   BusType SpindleSpeed FriendlyName
    ---------   ------- ------------ ------------
    Unspecified USB                0 Kingston DataTraveler 2.0
    HDD         SATA         Unknown ST500DM002-1BD142
    Unspecified USB                0 PNY OU3 3.0
      My Computer


  9. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1329

    Matthew Wai said:
    @Paul Black,

    Please run the following command and post the output:

    PowerShell Get-PhysicalDisk^|Select MediaType, BusType, SpindleSpeed, FriendlyName

    Code:
    
    PowerShell "Get-PhysicalDisk | Select MediaType, BusType, SpindleSpeed, FriendlyName"
    
    MediaType   BusType SpindleSpeed FriendlyName
    ---------   ------- ------------ ------------
    Unspecified SATA               0 TOSHIBA MK6034GSX

    I then inserted a USB:

    Code:
    
    PowerShell "Get-PhysicalDisk | Select MediaType, BusType, SpindleSpeed, FriendlyName"
    
    MediaType   BusType SpindleSpeed FriendlyName
    ---------   ------- ------------ ------------
    Unspecified SATA               0 TOSHIBA MK6034GSX
    Unspecified USB                0 Kingston DataTraveler G3

    It proves that BusType is more reliable than MediaType.
      My Computer


  10. Posts : 1,777
    Windows 11 [21H2]
       #1330

    Matthew Wai said:
    @Paul Black and @zbook and @jbcarreon123,

    Please run the following command and post the output:

    PowerShell Get-PhysicalDisk^|Select MediaType, BusType, SpindleSpeed, FriendlyName

    The following is my example:
    Code:
    C:\Users\Matthew_Wai>PowerShell Get-PhysicalDisk^|Select MediaType, BusType, SpindleSpeed, FriendlyName
    
    MediaType   BusType SpindleSpeed FriendlyName
    ---------   ------- ------------ ------------
    Unspecified USB                0 Kingston DataTraveler 2.0
    HDD         SATA         Unknown ST500DM002-1BD142
    Unspecified USB                0 PNY OU3 3.0
    Code:
    Microsoft Windows [Version 10.0.22000.438]
    (c) Microsoft Corporation. All rights reserved.
    
    ==============================
      jbcarreon123's CMD AutoRun
    ------------------------------
      PC Name: JB-PC
      RunAs Admin? True
      Windows Version:
      Microsoft Windows 11 Pro
    ==============================
    
    C:\Users\jbcarreon123>PowerShell Get-PhysicalDisk^|Select MediaType, BusType, SpindleSpeed, FriendlyName
    
    MediaType   BusType SpindleSpeed FriendlyName
    ---------   ------- ------------ ------------
    SSD         SATA               0 Patriot Burst
    Unspecified USB                0 Flash USB Disk
    Unspecified USB                0 Generic Flash Disk
    Unspecified USB                0 USB DISK 2.0
    
    
    
    C:\Users\jbcarreon123>
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:09.
Find Us




Windows 10 Forums