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


  1. Posts : 41,452
    windows 10 professional version 1607 build 14393.969 64 bit
       #1281

    #1276 looks good.


    Code:
    Drive Letter Drive Label     File System Free Space Used Space Total Space Free (%)
    ------------ -----------     ----------- ---------- ---------- ----------- --------
                 Recovery        NTFS           6.26 GB  741.75 MB     6.98 GB     90 %
         C       Windows         NTFS         471.83 GB  217.32 GB   689.16 GB     68 %
         D       HP_TOOLS        FAT32          1.91 GB   93.10 MB     2.00 GB     95 %
         G                                       .00 MB     .00 MB      .00 MB         
         K       System Reserved NTFS         462.69 MB   36.30 MB   499.00 MB     93 %



    Add to disk par info?
    Beginning , end. middle?

    Maintain sequence with alphabetical order with no drive letter on top?

    Add more width to drive label?
    Reduce width drive letter? drive on top of letter?

    Anybody with TB drive for testing purposes?

    Batch files for use in BSOD debugging

    View / Change / Remove drive letters assignment in your system
      My Computer


  2. Posts : 1,777
    Windows 11 [21H2]
       #1282

    zbook said:
    #1276 looks good.


    Code:
    Drive Letter Drive Label     File System Free Space Used Space Total Space Free (%)
    ------------ -----------     ----------- ---------- ---------- ----------- --------
                 Recovery        NTFS           6.26 GB  741.75 MB     6.98 GB     90 %
         C       Windows         NTFS         471.83 GB  217.32 GB   689.16 GB     68 %
         D       HP_TOOLS        FAT32          1.91 GB   93.10 MB     2.00 GB     95 %
         G                                       .00 MB     .00 MB      .00 MB         
         K       System Reserved NTFS         462.69 MB   36.30 MB   499.00 MB     93 %



    Add to disk par info?
    Beginning , end. middle?

    Maintain sequence with alphabetical order with no drive letter on top?

    Add more width to drive label?
    Reduce width drive letter? drive on top of letter?

    Anybody with TB drive for testing purposes?

    Batch files for use in BSOD debugging

    View / Change / Remove drive letters assignment in your system
    Check out Post 1281
      My Computers


  3. Posts : 41,452
    windows 10 professional version 1607 build 14393.969 64 bit
       #1283

    Code:
    Microsoft Windows [Version 10.0.19043.1466]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>powershell "Get-volume | Sort DriveLetter | FT -A @{l="""Drive Letter""";E={;If ($_.DriveLetter -eq $NULL) {'Hidden'} else {($_.DriveLetter)}};align='Center'}, @{l='Drive Label';E={;If ($_.FileSystemLabel -eq '') {'NO LABEL'} else {($_.FileSystemLabel)}};align='left'}, @{l='File System';E={;If ($_.FileSystemType -eq '') {'Unknown'} else {($_.FileSystemType)}};align='center'}, @{l='Free Space';E={;If ($_.SizeRemaining -eq '0') {''} else {If ($_.Size -eq '0') {''} else {If ($_.SizeRemaining -lt 1073741824) {;[Math]::round($_.SizeRemaining / 1MB, 2, 00).ToString('#.00 MB')} else {;[Math]::round($_.SizeRemaining / 1GB, 2, 00).ToString('#.00 GB')}}}};A='Right'}, @{l='Used Space';E={;If ($_.SizeRemaining -eq '0') {''} else {If ($_.Size - $_.SizeRemaining -lt 1073741824) {;[Math]::round(($_.Size - $_.SizeRemaining) / 1MB, 2, 00).ToString('#.00 MB')} else {;[Math]::round(($_.Size - $_.SizeRemaining) / 1GB, 2, 00).ToString('#.00 GB')}}};A='Right'}, @{l='Total Space';E={;If ($_.Size -eq '0') {''} else {If ($_.Size -lt 1073741824) {;[Math]::round($_.Size / 1MB, 2, 00).ToString('#.00 MB')} else {;[Math]::round($_.Size / 1GB, 2, 00).ToString('#.00 GB')}}};A='Right'}, @{l='Free (%)';E={;[Math]::round(($_.Sizeremaining / $_.Size)*100, 2).ToString('#.00') };A='Right'}"
    
    Drive Letter Drive Label     File System Free Space Used Space Total Space Free (%)
    ------------ -----------     ----------- ---------- ---------- ----------- --------
       Hidden    Recovery           NTFS        6.26 GB  741.75 MB     6.98 GB    89.62
         C       Windows            NTFS      471.73 GB  217.43 GB   689.16 GB    68.45
         D       HP_TOOLS           FAT32       1.91 GB   93.10 MB     2.00 GB    95.45
         G       NO LABEL          Unknown
         K       System Reserved    NTFS      462.69 MB   36.30 MB   499.00 MB    92.72
    
    
    
    C:\WINDOWS\system32>



    Disk par info:

    Code:
        Disk 0 : SSD. It has 4 partition(s). Model: Hitachi HTS727575A9E364   
    
        The script has found the above 1 storage device(s) in total.
    =======================================================================
    
    Microsoft DiskPart version 10.0.19041.964
    
    Copyright (C) Microsoft Corporation.
    On computer: DESKTOP-K2CP43S
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          698 GB      0 B         
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0     G                       DVD-ROM         0 B  No Media           
      Volume 1     K   System Rese  NTFS   Partition    499 MB  Healthy    System  
      Volume 2     C   Windows      NTFS   Partition    689 GB  Healthy    Boot    
      Volume 3     D   HP_TOOLS     FAT32  Partition   2056 MB  Healthy            
      Volume 4         Recovery     NTFS   Partition   7148 MB  Healthy    Hidden  
    
    Disk 0 is now the selected disk.
    
    Hitachi HTS727575A9E364
    Disk ID: 2CE38090
    Type   : RAID
    Status : Online
    Path   : 0
    Target : 1
    LUN ID : 0
    Location Path : PCIROOT(0)#PCI(1F02)#RAID(P00T01L00)
    Current Read-only State : No
    Read-only  : No
    Boot Disk  : Yes
    Pagefile Disk  : Yes
    Hibernation File Disk  : No
    Crashdump Disk  : Yes
    Clustered Disk  : No
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 1     K   System Rese  NTFS   Partition    499 MB  Healthy    System  
      Volume 2     C   Windows      NTFS   Partition    689 GB  Healthy    Boot    
      Volume 3     D   HP_TOOLS     FAT32  Partition   2056 MB  Healthy            
      Volume 4         Recovery     NTFS   Partition   7148 MB  Healthy    Hidden  
    
      Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
      Partition 1    Primary            499 MB  1024 KB
      Partition 2    Primary            689 GB   500 MB
      Partition 3    Primary           2056 MB   689 GB
      Partition 4    Recovery          7148 MB   691 GB
    
    Partition 1 is now the selected partition.
    
    Partition 1
    Type  : 07
    Hidden: No
    Active: Yes
    Offset in Bytes: 1048576
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 1     K   System Rese  NTFS   Partition    499 MB  Healthy    System  
    
    Partition 2 is now the selected partition.
    
    Partition 2
    Type  : 07
    Hidden: No
    Active: No
    Offset in Bytes: 524288000
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 2     C   Windows      NTFS   Partition    689 GB  Healthy    Boot    
    
    Partition 3 is now the selected partition.
    
    Partition 3
    Type  : 0C
    Hidden: No
    Active: No
    Offset in Bytes: 740501225472
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 3     D   HP_TOOLS     FAT32  Partition   2056 MB  Healthy            
    
    Partition 4 is now the selected partition.
    
    Partition 4
    Type  : 27
    Hidden: No
    Active: No
    Offset in Bytes: 742657097728
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 4         Recovery     NTFS   Partition   7148 MB  Healthy    Hidden  
    
    ===============================================================================
    
    Windows Recovery Environment (Windows RE) and system reset configuration
    Information:
    
        Windows RE status:         Enabled
        Windows RE location:       \\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
        Boot Configuration Data (BCD) identifier: d1db91ed-1a87-11ec-83fa-99fc2db626b5
        Recovery image location:   
        Recovery image index:      0
        Custom image location:     
        Custom image index:        0
    
    REAGENTC.EXE: Operation Successful.
        
    ===============================================================================
    
    Windows Boot Manager
    --------------------
    identifier              {bootmgr}
    device                  partition=K:
    description             Windows Boot Manager
    locale                  en-US
    inherit                 {globalsettings}
    default                 {current}
    resumeobject            {79baf053-1a87-11ec-83f8-fcf8ae13c094}
    displayorder            {current}
    toolsdisplayorder       {memdiag}
    timeout                 0
    
    Windows Boot Loader
    -------------------
    identifier              {current}
    device                  partition=C:
    path                    \WINDOWS\system32\winload.exe
    description             Windows 10
    locale                  en-US
    inherit                 {bootloadersettings}
    recoverysequence        {d1db91ed-1a87-11ec-83fa-99fc2db626b5}
    displaymessageoverride  Recovery
    recoveryenabled         Yes
    allowedinmemorysettings 0x15000075
    osdevice                partition=C:
    systemroot              \WINDOWS
    resumeobject            {79baf053-1a87-11ec-83f8-fcf8ae13c094}
    nx                      OptIn
    bootmenupolicy          Standard
    
    Windows Boot Loader
    -------------------
    identifier              {d1db91ed-1a87-11ec-83fa-99fc2db626b5}
    device                  ramdisk=[\Device\HarddiskVolume4]\Recovery\WindowsRE\Winre.wim,{d1db91ee-1a87-11ec-83fa-99fc2db626b5}
    path                    \windows\system32\winload.exe
    description             Windows Recovery Environment
    locale                  en-US
    inherit                 {bootloadersettings}
    displaymessage          Recovery
    osdevice                ramdisk=[\Device\HarddiskVolume4]\Recovery\WindowsRE\Winre.wim,{d1db91ee-1a87-11ec-83fa-99fc2db626b5}
    systemroot              \windows
    nx                      OptIn
    bootmenupolicy          Standard
    winpe                   Yes
    
    Resume from Hibernate
    ---------------------
    identifier              {79baf053-1a87-11ec-83f8-fcf8ae13c094}
    device                  partition=C:
    path                    \WINDOWS\system32\winresume.exe
    description             Windows Resume Application
    locale                  en-US
    inherit                 {resumeloadersettings}
    recoverysequence        {d1db91ed-1a87-11ec-83fa-99fc2db626b5}
    recoveryenabled         Yes
    allowedinmemorysettings 0x15000075
    filedevice              partition=C:
    filepath                \hiberfil.sys
    bootmenupolicy          Standard
    debugoptionenabled      No
    
    Windows Memory Tester
    ---------------------
    identifier              {memdiag}
    device                  partition=K:
    path                    \boot\memtest.exe
    description             Windows Memory Diagnostic
    locale                  en-US
    inherit                 {globalsettings}
    badmemoryaccess         Yes
    
    EMS Settings
    ------------
    identifier              {emssettings}
    bootems                 No
    
    Debugger Settings
    -----------------
    identifier              {dbgsettings}
    debugtype               Local
    
    RAM Defects
    -----------
    identifier              {badmemory}
    
    Global Settings
    ---------------
    identifier              {globalsettings}
    inherit                 {dbgsettings}
                            {emssettings}
                            {badmemory}
    
    Boot Loader Settings
    --------------------
    identifier              {bootloadersettings}
    inherit                 {globalsettings}
                            {hypervisorsettings}
    
    Hypervisor Settings
    -------------------
    identifier              {hypervisorsettings}
    hypervisordebugtype     Serial
    hypervisordebugport     1
    hypervisorbaudrate      115200
    
    Resume Loader Settings
    ----------------------
    identifier              {resumeloadersettings}
    inherit                 {globalsettings}
    
    Device options
    --------------
    identifier              {d1db91ee-1a87-11ec-83fa-99fc2db626b5}
    description             Windows Recovery
    ramdisksdidevice        partition=\Device\HarddiskVolume4
    ramdisksdipath          \Recovery\WindowsRE\boot.sdi
      My Computer


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

    zbook said:
    Add to disk par info?
    Beginning , end. middle?

    Maintain sequence with alphabetical order with no drive letter on top?

    Add more width to drive label?
    Reduce width drive letter? drive on top of letter?
    Run the attached script. BTW, I have not seen BSOD for eight days.

    Paul Black said:
    I REALLY like the addition of the Hidden and NO LABEL entries. That suits my OCD to no end.
    I REALLY don't think the cool-headed BSOD analysts have OCD.
    Last edited by Matthew Wai; 24 Jan 2022 at 02:39.
      My Computer


  5. Posts : 41,452
    windows 10 professional version 1607 build 14393.969 64 bit
       #1285

    The new text at the top of disk par info to partition size was incorrect as it used SSD instead of HD.

    Code:
        Disk 0 : SSD. It has 4 partition(s). Model: Hitachi HTS727575A9E364   
     
        The script has found the above 1 storage device(s) in total.
    =============================================================================
    Drive 
    Letter   Drive Label   File System Free Space Used Space Total Space Free (%)
    ------ --------------- ----------- ---------- ---------- ----------- --------
           Recovery           NTFS        6.26 GB  741.75 MB     6.98 GB     90 %
      C    Windows            NTFS      469.82 GB  219.34 GB   689.16 GB     68 %
      D    HP_TOOLS           FAT32       1.91 GB   93.10 MB     2.00 GB     95 %
      G                                      0 MB       0 MB        0 MB         
      K    System Reserved    NTFS      462.69 MB   36.30 MB   499.00 MB     93 %
    
    =============================================================================
    
    Microsoft DiskPart version 10.0.19041.964
    
    Copyright (C) Microsoft Corporation.
    On computer: DESKTOP-K2CP43S
    
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          698 GB      0 B         
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0     G                       DVD-ROM         0 B  No Media           
      Volume 1     K   System Rese  NTFS   Partition    499 MB  Healthy    System  
      Volume 2     C   Windows      NTFS   Partition    689 GB  Healthy    Boot    
      Volume 3     D   HP_TOOLS     FAT32  Partition   2056 MB  Healthy            
      Volume 4         Recovery     NTFS   Partition   7148 MB  Healthy    Hidden  
    
    Disk 0 is now the selected disk.
    
    Hitachi HTS727575A9E364
    Disk ID: 2CE38090
    Type   : RAID
    Status : Online
    Path   : 0
    Target : 1
    LUN ID : 0
    Location Path : PCIROOT(0)#PCI(1F02)#RAID(P00T01L00)
    Current Read-only State : No
    Read-only  : No
    Boot Disk  : Yes
    Pagefile Disk  : Yes
    Hibernation File Disk  : No
    Crashdump Disk  : Yes
    Clustered Disk  : No
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 1     K   System Rese  NTFS   Partition    499 MB  Healthy    System  
      Volume 2     C   Windows      NTFS   Partition    689 GB  Healthy    Boot    
      Volume 3     D   HP_TOOLS     FAT32  Partition   2056 MB  Healthy            
      Volume 4         Recovery     NTFS   Partition   7148 MB  Healthy    Hidden  
    
      Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
      Partition 1    Primary            499 MB  1024 KB
      Partition 2    Primary            689 GB   500 MB
      Partition 3    Primary           2056 MB   689 GB
      Partition 4    Recovery          7148 MB   691 GB
    
    Partition 1 is now the selected partition.
    
    Partition 1
    Type  : 07
    Hidden: No
    Active: Yes
    Offset in Bytes: 1048576
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 1     K   System Rese  NTFS   Partition    499 MB  Healthy    System  
    
    Partition 2 is now the selected partition.
    
    Partition 2
    Type  : 07
    Hidden: No
    Active: No
    Offset in Bytes: 524288000
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 2     C   Windows      NTFS   Partition    689 GB  Healthy    Boot    
    
    Partition 3 is now the selected partition.
    
    Partition 3
    Type  : 0C
    Hidden: No
    Active: No
    Offset in Bytes: 740501225472
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 3     D   HP_TOOLS     FAT32  Partition   2056 MB  Healthy            
    
    Partition 4 is now the selected partition.
    
    Partition 4
    Type  : 27
    Hidden: No
    Active: No
    Offset in Bytes: 742657097728
    
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
    * Volume 4         Recovery     NTFS   Partition   7148 MB  Healthy    Hidden  
    
    ===============================================================================
    
    Windows Recovery Environment (Windows RE) and system reset configuration
    Information:
    
        Windows RE status:         Enabled
        Windows RE location:       \\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
        Boot Configuration Data (BCD) identifier: d1db91ed-1a87-11ec-83fa-99fc2db626b5
        Recovery image location:   
        Recovery image index:      0
        Custom image location:     
        Custom image index:        0
    
    REAGENTC.EXE: Operation Successful.
        
    ===============================================================================
    
    Windows Boot Manager
    --------------------
    identifier              {bootmgr}
    device                  partition=K:
    description             Windows Boot Manager
    locale                  en-US
    inherit                 {globalsettings}
    default                 {current}
    resumeobject            {79baf053-1a87-11ec-83f8-fcf8ae13c094}
    displayorder            {current}
    toolsdisplayorder       {memdiag}
    timeout                 0
    
    Windows Boot Loader
    -------------------
    identifier              {current}
    device                  partition=C:
    path                    \WINDOWS\system32\winload.exe
    description             Windows 10
    locale                  en-US
    inherit                 {bootloadersettings}
    recoverysequence        {d1db91ed-1a87-11ec-83fa-99fc2db626b5}
    displaymessageoverride  Recovery
    recoveryenabled         Yes
    allowedinmemorysettings 0x15000075
    osdevice                partition=C:
    systemroot              \WINDOWS
    resumeobject            {79baf053-1a87-11ec-83f8-fcf8ae13c094}
    nx                      OptIn
    bootmenupolicy          Standard
    
    Windows Boot Loader
    -------------------
    identifier              {d1db91ed-1a87-11ec-83fa-99fc2db626b5}
    device                  ramdisk=[\Device\HarddiskVolume4]\Recovery\WindowsRE\Winre.wim,{d1db91ee-1a87-11ec-83fa-99fc2db626b5}
    path                    \windows\system32\winload.exe
    description             Windows Recovery Environment
    locale                  en-US
    inherit                 {bootloadersettings}
    displaymessage          Recovery
    osdevice                ramdisk=[\Device\HarddiskVolume4]\Recovery\WindowsRE\Winre.wim,{d1db91ee-1a87-11ec-83fa-99fc2db626b5}
    systemroot              \windows
    nx                      OptIn
    bootmenupolicy          Standard
    winpe                   Yes
    
    Resume from Hibernate
    ---------------------
    identifier              {79baf053-1a87-11ec-83f8-fcf8ae13c094}
    device                  partition=C:
    path                    \WINDOWS\system32\winresume.exe
    description             Windows Resume Application
    locale                  en-US
    inherit                 {resumeloadersettings}
    recoverysequence        {d1db91ed-1a87-11ec-83fa-99fc2db626b5}
    recoveryenabled         Yes
    allowedinmemorysettings 0x15000075
    filedevice              partition=C:
    filepath                \hiberfil.sys
    bootmenupolicy          Standard
    debugoptionenabled      No
    
    Windows Memory Tester
    ---------------------
    identifier              {memdiag}
    device                  partition=K:
    path                    \boot\memtest.exe
    description             Windows Memory Diagnostic
    locale                  en-US
    inherit                 {globalsettings}
    badmemoryaccess         Yes
    
    EMS Settings
    ------------
    identifier              {emssettings}
    bootems                 No
    
    Debugger Settings
    -----------------
    identifier              {dbgsettings}
    debugtype               Local
    
    RAM Defects
    -----------
    identifier              {badmemory}
    
    Global Settings
    ---------------
    identifier              {globalsettings}
    inherit                 {dbgsettings}
                            {emssettings}
                            {badmemory}
    
    Boot Loader Settings
    --------------------
    identifier              {bootloadersettings}
    inherit                 {globalsettings}
                            {hypervisorsettings}
    
    Hypervisor Settings
    -------------------
    identifier              {hypervisorsettings}
    hypervisordebugtype     Serial
    hypervisordebugport     1
    hypervisorbaudrate      115200
    
    Resume Loader Settings
    ----------------------
    identifier              {resumeloadersettings}
    inherit                 {globalsettings}
    
    Device options
    --------------
    identifier              {d1db91ee-1a87-11ec-83fa-99fc2db626b5}
    description             Windows Recovery
    ramdisksdidevice        partition=\Device\HarddiskVolume4
    ramdisksdipath          \Recovery\WindowsRE\boot.sdi
      My Computer


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

    zbook said:
    The new text at the top of disk par info to partition size was incorrect as it used SSD instead of HD.
    Run the following line from Command Prompt and post the output.

    PowerShell Get-PhysicalDisk^|Select DeviceID, MediaType, BusType, FriendlyName^|Sort DeviceID
      My Computer


  7. Posts : 41,452
    windows 10 professional version 1607 build 14393.969 64 bit
       #1287

    Hitachi HTS727575A9E364 - 750GB 7.2K SATA 3.0Gbps 2.5Inch 16MB Cache Hard Drive



    Code:
    Description	Disk drive
    Manufacturer	(Standard disk drives)
    Model	Hitachi HTS727575A9E364
    Bytes/Sector	512
    Media Loaded	Yes
    Media Type	Fixed hard disk
    Partitions	4
    SCSI Bus	0
    SCSI Logical Unit	0
    SCSI Port	0
    SCSI Target ID	1
    Sectors/Track	63
    Size	698.64 GB (750,153,761,280 bytes)
    Total Cylinders	91,201
    Total Sectors	1,465,144,065
    Total Tracks	23,256,255
    Tracks/Cylinder	255
    Partition	Disk #0, Partition #0
    Partition Size	499.00 MB (523,239,424 bytes)
    Partition Starting Offset	1,048,576 bytes
    Partition	Disk #0, Partition #1
    Partition Size	689.16 GB (739,976,937,472 bytes)
    Partition Starting Offset	524,288,000 bytes
    Partition	Disk #0, Partition #2
    Partition Size	2.01 GB (2,155,872,256 bytes)
    Partition Starting Offset	740,501,225,472 bytes
    Partition	Disk #0, Partition #3
    Partition Size	6.98 GB (7,495,221,248 bytes)
    Partition Starting Offset	742,657,097,728 bytes


    Code:
    Microsoft Windows [Version 10.0.19043.1466]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>PowerShell Get-PhysicalDisk^|Select DeviceID, MediaType, BusType, FriendlyName^|Sort DeviceID
    
    DeviceID MediaType BusType FriendlyName
    -------- --------- ------- ------------
    0        SSD       RAID    Hitachi HTS727575A9E364
    
    
    
    C:\WINDOWS\system32>

    Code:
    Microsoft Windows [Version 10.0.19043.1466]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>wmic diskdrive get Name,Model,SerialNumber,Size,Status
    Model                    Name                SerialNumber    Size          Status
    Hitachi HTS727575A9E364  \\.\PHYSICALDRIVE0  J3340084K1LYTA  750153761280  OK
    
    
    C:\WINDOWS\system32>wmic diskdrive get model,index,firmwareRevision,status,interfaceType,totalHeads,totalTracks,totalCylinders,totalSectors,partitions
    FirmwareRevision  Index  InterfaceType  Model                    Partitions  Status  TotalCylinders  TotalHeads  TotalSectors  TotalTracks
    JF4O              0      SCSI           Hitachi HTS727575A9E364  4           OK      91201           255         1465144065    23256255
    
    
    C:\WINDOWS\system32>

    Code:
    Microsoft Windows [Version 10.0.19043.1466]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>wmic diskdrive get Name,Model,SerialNumber,Size,Status
    Model                    Name                SerialNumber    Size          Status
    Hitachi HTS727575A9E364  \\.\PHYSICALDRIVE0  J3340084K1LYTA  750153761280  OK
    
    
    C:\WINDOWS\system32>wmic diskdrive get model,index,firmwareRevision,status,interfaceType,totalHeads,totalTracks,totalCylinders,totalSectors,partitions
    FirmwareRevision  Index  InterfaceType  Model                    Partitions  Status  TotalCylinders  TotalHeads  TotalSectors  TotalTracks
    JF4O              0      SCSI           Hitachi HTS727575A9E364  4           OK      91201           255         1465144065    23256255
    
    
    C:\WINDOWS\system32>wmic diskdrive get manufacturer, lasterrorcode, interfacetype, installdate, index, errormethodology, errordescription, errorcleared
    ErrorCleared  ErrorDescription  ErrorMethodology  Index  InstallDate  InterfaceType  LastErrorCode  Manufacturer
                                                      0                   SCSI                          (Standard disk drives)
    
    
    C:\WINDOWS\system32>wmic diskdrive get deviceid, description, defaultblocksize, creationclassname, configmanageruserconfig, configmanagererrorcode, compressionmethod
    CompressionMethod  ConfigManagerErrorCode  ConfigManagerUserConfig  CreationClassName  DefaultBlockSize  Description  DeviceID
                       0                       FALSE                    Win32_DiskDrive                      Disk drive   \\.\PHYSICALDRIVE0
    
    
    C:\WINDOWS\system32>wmic diskdrive get availability, bytespersector, capabilities, capabilitydescriptions, caption
    Availability  BytesPerSector  Capabilities  CapabilityDescriptions                                       Caption
                  512             {3, 4, 10}    {"Random Access", "Supports Writing", "SMART Notification"}  Hitachi HTS727575A9E364
    
    
    C:\WINDOWS\system32>

    Code:
    Microsoft Windows [Version 10.0.19043.1466]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>wmic diskdrive get trackspercylinder, totaltracks, totalsectors, totalheads, totalcylinders
    TotalCylinders  TotalHeads  TotalSectors  TotalTracks  TracksPerCylinder
    91201           255         1465144065    23256255     255
    
    
    C:\WINDOWS\system32>wmic diskdrive get systemname, systemcreationclassname, statusinfo, status, size, signature
    Signature  Size          Status  StatusInfo  SystemCreationClassName  SystemName
    753107088  750153761280  OK                  Win32_ComputerSystem     DESKTOP-K2CP43S
    
    
    C:\WINDOWS\system32>wmic diskdrive get sectorspertrack, scsitargetid, scsiport, scsilogicalunit, scsibus
    SCSIBus  SCSILogicalUnit  SCSIPort  SCSITargetId  SectorsPerTrack
    0        0                0         1             63
    
    
    C:\WINDOWS\system32>wmic diskdrive get powermanagementsupported, powermanagementcapabilities, pnpdeviceid, partitions
    Partitions  PNPDeviceID                                                     PowerManagementCapabilities  PowerManagementSupported
    4           SCSI\DISK&VEN_HITACHI&PROD_HTS727575A9E364\4&2E35F34E&0&000100                                              
    
    
    C:\WINDOWS\system32>wmic diskdrive get numberofmediasupported, needscleaning, name, minblocksize, mediatype
    MediaType              MinBlockSize  Name                NeedsCleaning  NumberOfMediaSupported
    Fixed hard disk media                \\.\PHYSICALDRIVE0
    
    
    C:\WINDOWS\system32>wmic diskdrive get medialoaded, maxmediasize, maxblocksize, manufacturer, lasterrorcode
    LastErrorCode  Manufacturer            MaxBlockSize  MaxMediaSize  MediaLoaded
                   (Standard disk drives)                              TRUE
    
    
    C:\WINDOWS\system32>


    Code:
    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    Try the new cross-platform PowerShell https://aka.ms/pscore6
    
    PS C:\WINDOWS\system32> (get-physicaldisk).MediaType
    SSD
    PS C:\WINDOWS\system32> get-psdrive -psprovider filesystem
    
    Name           Used (GB)     Free (GB) Provider      Root                                               CurrentLocation
    ----           ---------     --------- --------      ----                                               ---------------
    C                 218.47        470.69 FileSystem    C:\                                               WINDOWS\system32
    D                   0.09          1.91 FileSystem    D:\
    G                                      FileSystem    G:\
    K                   0.04          0.45 FileSystem    K:\
    
    
    PS C:\WINDOWS\system32>
    Last edited by zbook; 22 Jan 2022 at 22:18.
      My Computer


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

    zbook said:
    Code:
        Disk 0 : SSD. It has 4 partition(s). Model: Hitachi HTS727575A9E364
    zbook said:
    Code:
    C:\WINDOWS\system32>PowerShell Get-PhysicalDisk^|Select DeviceID, MediaType, BusType, FriendlyName^|Sort DeviceID
    
    DeviceID MediaType BusType FriendlyName
    -------- --------- ------- ------------
    0        SSD       RAID    Hitachi HTS727575A9E364
    Code:
    PS C:\WINDOWS\system32> (get-physicaldisk).MediaType
    SSD
    It shows that PowerShell MediaType might produce incorrect output.
    Should MediaType be removed from "DiskParInfo.bat"? If so, all "HDD", "SDD", and "USB" shown after the disk numbers will be removed from the first line(s) of "DiskParInfo.log", and the first line(s) will look like the following:
    Code:
        Disk 0. It has 5 partition(s). Model: ST500DM002-1BD142    
        Disk 1. It has 2 partition(s). Model: PNY OU3 3.0  
        Disk 2. It has 1 partition(s). Model: Kingston DataTraveler 2.0
      My Computer


  9. Posts : 1,777
    Windows 11 [21H2]
       #1289

    Matthew Wai said:
    It shows that PowerShell MediaType might produce incorrect output.
    Should MediaType be removed from "DiskParInfo.bat"? If so, all "HDD", "SDD", and "USB" shown after the disk numbers will be removed from the first line(s) of "DiskParInfo.log", and the first line(s) will look like the following:
    Code:
        Disk 0. It has 5 partition(s). Model: ST500DM002-1BD142    
        Disk 1. It has 2 partition(s). Model: PNY OU3 3.0  
        Disk 2. It has 1 partition(s). Model: Kingston DataTraveler 2.0
    We need other ways to determine if the drive is a SSD, or HDD, or a USB.
    @zbook,
    Try this:
    Code:
    wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber
      My Computers


  10. Posts : 41,452
    windows 10 professional version 1607 build 14393.969 64 bit
       #1290

    Code:
    Microsoft Windows [Version 10.0.19043.1466]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>wmic diskdrive get Name, Manufacturer, Model, InterfaceType, MediaType, SerialNumber
    InterfaceType  Manufacturer            MediaType              Model                    Name                SerialNumber 
    SCSI           (Standard disk drives)  Fixed hard disk media  Hitachi HTS727575A9E364  \\.\PHYSICALDRIVE0  J3340084K1LYTA
    
    
    C:\WINDOWS\system32>
      My Computer


 

  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 15:49.
Find Us




Windows 10 Forums