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
       #1261

    I also use this one . . .

    Code:
    
    PowerShell "Get-Volume | Sort-Object -Property DriveLetter | Format-Table -Autosize | Out-String -Width 1000"
    
    DriveLetter FriendlyName    FileSystemType DriveType HealthStatus OperationalStatus SizeRemaining     Size
    ----------- ------------    -------------- --------- ------------ ----------------- -------------     ----
                System Reserved NTFS           Fixed     Healthy      OK                    121.37 MB   579 MB
    C                           NTFS           Fixed     Healthy      OK                     15.48 GB 30.03 GB
    D           Data            NTFS           Fixed     Healthy      OK                      6.89 GB 17.79 GB
    E                           Unknown        CD-ROM    Healthy      Unknown                     0 B      0 B
    S           System_Image    NTFS           Fixed     Healthy      OK                      6.04 GB     7 GB
    
    
      My Computer


  2. Posts : 41,459
    windows 10 professional version 1607 build 14393.969 64 bit
       #1262

    Ideally the commands/results would display:

    a) all drives (whether they do or do not have designated drive letters)
    b) drive size in GB
    c) free space in GB
    d) % free


    The results in post #1264 did not display:
    a) all drives (missing recovery partition)
    d) % free space


    The aim is to develop a command that has results similar to:
    a) dxdiag disk info
    b) disk management disk info
      My Computer


  3. Posts : 1,777
    Windows 11 [21H2]
       #1263

    zbook said:
    Ideally the commands/results would display:

    a) all drives (whether they do or do not have designated drive letters)
    b) drive size in GB
    c) free space in GB
    d) % free


    The results in post #1264 did not display:
    a) all drives (missing recovery partition)
    d) % free space


    The aim is to develop a command that has results similar to:
    a) dxdiag disk info
    b) disk management disk info
    Ok. I do not have access yet to my PC but it may be later.
      My Computers


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

    zbook said:
    The results in post #1264 did not display:

    a) all drives (missing recovery partition)

    OK, I do NOT have a Recovery Partition so I couldn't test that.

    I am just trying to help, like I do with testing, to get the information you want, and in a neat format.



    zbook said:
    Ideally the commands/results would display:

    a) all drives (whether they do or do not have designated drive letters)
    b) drive size in GB
    c) free space in GB
    d) % free
    I have adapted my Command to align the output for Size (GB), Used (GB), and FreeSpace . . .

    Code:
    
    PowerShell "Get-Volume | Select DriveLetter, FileSystemLabel, FileSystemType, DriveType, HealthStatus, OperationalStatus, @{Name='Toyal (GB)';Expression={[math]::Round($_.Size/1GB,2,00).ToString('#.00').PadLeft(9,' ')}}, @{Name='Used (GB)';Expression={[math]::Round(($_.Size-$_.SizeRemaining)/1GB,2,00).ToString('#.00').PadLeft(9,' ')}}, @{Name='Free (GB)';Expression={[math]::Round($_.SizeRemaining/1GB,2,00).ToString('#.00').PadLeft(9,' ')}} | Sort-Object -Property DriveLetter | Format-Table -Autosize | Out-String -Width 1000"
    
    DriveLetter FileSystemLabel FileSystemType DriveType HealthStatus OperationalStatus Toyal (GB) Used (GB) Free (GB)
    ----------- --------------- -------------- --------- ------------ ----------------- ---------- --------- ---------
                System Reserved NTFS           Fixed     Healthy      OK                      .57        .45       .12
    C           Win_10          NTFS           Fixed     Healthy      OK                    30.03      14.58     15.45
    D           Data            NTFS           Fixed     Healthy      OK                    17.79      10.89      6.89
    E                           Unknown        CD-ROM    Healthy      Unknown                 .00        .00       .00
    S           System_Image    NTFS           Fixed     Healthy      OK                     7.00        .96      6.04
    
    
    

    I will now try and get the Percentage at the end for you.

    DONE . . .

    Code:
    
    PowerShell "Get-Volume | Select DriveLetter, FileSystemLabel, FileSystemType, DriveType, HealthStatus, OperationalStatus, @{Name='Total (GB)';Expression={[math]::Round($_.Size/1GB,2,00).ToString('#.00').PadLeft(9,' ')}}, @{Name='Used (GB)';Expression={[math]::Round(($_.Size-$_.SizeRemaining)/1GB,2,00).ToString('#.00').PadLeft(9,' ')}}, @{Name='Free (GB)';Expression={[math]::Round($_.SizeRemaining/1GB,2,00).ToString('#.00').PadLeft(9,' ')}}, @{Name='Free %';Expression={[math]::Round(($_.SizeRemaining/$_.Size)*100,2)}} | Sort-Object -Property DriveLetter | Format-Table -Autosize | Out-String -Width 1000"
    
    DriveLetter FileSystemLabel FileSystemType DriveType HealthStatus OperationalStatus Total (GB) Used (GB) Free (GB) Free %
    ----------- --------------- -------------- --------- ------------ ----------------- ---------- --------- --------- ------
                System Reserved NTFS           Fixed     Healthy      OK                      .57        .45       .12  20.96
    C           Win_10          NTFS           Fixed     Healthy      OK                    30.03      14.58     15.45  51.45
    D           Data            NTFS           Fixed     Healthy      OK                    17.79      10.89      6.89  38.75
    E                           Unknown        CD-ROM    Healthy      Unknown                 .00        .00       .00
    S           System_Image    NTFS           Fixed     Healthy      OK                     7.00        .96      6.04  86.34
    
    
    
    Last edited by Paul Black; 21 Jan 2022 at 11:50.
      My Computer


  5. Posts : 1,777
    Windows 11 [21H2]
       #1265

    @zbook
    This one:

    Code:
    powershell get-volume^|sort DriveLetter^|format-table @{l='Drive Letter';e={($_.DriveLetter)};align='Left'},@{l='Drive Label';e={($_.FileSystemLabel)};align='Left'},@{l='File System';e={($_.FileSystemType)}},@{l='Free Space';e={[math]::round($_.SizeRemaining / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Used Space';e={[Math]::Round(($_.Size - $_.SizeRemaining) / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Total Space';e={[math]::round($_.Size / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Free (%)';e={[math]::round(($_.sizeremaining / $_.size)*100, 2).ToString('0.00')};a='Right'}
    A bit too long...

    Code:
    Microsoft Windows [Version 10.0.22000.434]
    (c) Microsoft Corporation. All rights reserved.
    
    ==============================
      jbcarreon123's CMD AutoRun
    ------------------------------
      PC Name: JB-PC
      RunAs Admin? False
    ==============================
    
    C:\Users\jbcarreon123>powershell get-volume^|sort DriveLetter^|format-table @{l='Drive Letter';e={($_.DriveLetter)};align='Left'},@{l='Drive Label';e={($_.FileSystemLabel)};align='Left'},@{l='File System';e={($_.FileSystemType)}},@{l='Free Space';e={[math]::round($_.SizeRemaining / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Used Space';e={[Math]::Round(($_.Size - $_.SizeRemaining) / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Total Space';e={[math]::round($_.Size / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Free (%)';e={[math]::round(($_.sizeremaining / $_.size)*100, 2).ToString('0.00')};a='Right'}
    
    Drive Letter Drive Label       File System Free Space Used Space Total Space Free (%)
    ------------ -----------       ----------- ---------- ---------- ----------- --------
                                   NTFS            .08 GB     .51 GB      .60 GB    13.93
    C            Windows 11        NTFS          76.70 GB   34.39 GB   111.09 GB    69.04
    D            Data              NTFS          82.46 GB   28.75 GB   111.22 GB    74.15
    E                              Unknown         .00 GB     .00 GB      .00 GB
    F            Test Volume [SSD] NTFS            .50 GB     .05 GB      .55 GB    90.51
    H                              Unknown         .00 GB     .00 GB      .00 GB
    
    
    
    C:\Users\jbcarreon123>
      My Computers


  6. Posts : 41,459
    windows 10 professional version 1607 build 14393.969 64 bit
       #1266

    The results look good although it stressed the fan.


    Code:
    Microsoft Windows [Version 10.0.19043.1466]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>powershell get-volume^|sort DriveLetter^|format-table @{l='Drive Letter';e={($_.DriveLetter)};align='Left'},@{l='Drive Label';e={($_.FileSystemLabel)};align='Left'},@{l='File System';e={($_.FileSystemType)}},@{l='Free Space';e={[math]::round($_.SizeRemaining / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Used Space';e={[Math]::Round(($_.Size - $_.SizeRemaining) / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Total Space';e={[math]::round($_.Size / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Free (%)';e={[math]::round(($_.sizeremaining / $_.size)*100, 2).ToString('0.00')};a='Right'}
    
    Drive Letter Drive Label     File System Free Space Used Space Total Space Free (%)
    ------------ -----------     ----------- ---------- ---------- ----------- --------
                 Recovery        NTFS           6.26 GB     .72 GB     6.98 GB    89.62
    C            Windows         NTFS         472.59 GB  216.57 GB   689.16 GB    68.57
    D            HP_TOOLS        FAT32          1.91 GB     .09 GB     2.00 GB    95.45
    G                            Unknown         .00 GB     .00 GB      .00 GB
    K            System Reserved NTFS            .45 GB     .04 GB      .49 GB    92.72
    
    
    
    C:\WINDOWS\system32>
      My Computer


  7. Posts : 1,777
    Windows 11 [21H2]
       #1267

    zbook said:
    The results look good although it stressed the fan.


    Code:
    Microsoft Windows [Version 10.0.19043.1466]
    (c) Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>powershell get-volume^|sort DriveLetter^|format-table @{l='Drive Letter';e={($_.DriveLetter)};align='Left'},@{l='Drive Label';e={($_.FileSystemLabel)};align='Left'},@{l='File System';e={($_.FileSystemType)}},@{l='Free Space';e={[math]::round($_.SizeRemaining / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Used Space';e={[Math]::Round(($_.Size - $_.SizeRemaining) / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Total Space';e={[math]::round($_.Size / 1GB, 2, 00).ToString('#.00 GB')};a='Right'},@{l='Free (%)';e={[math]::round(($_.sizeremaining / $_.size)*100, 2).ToString('0.00')};a='Right'}
    
    Drive Letter Drive Label     File System Free Space Used Space Total Space Free (%)
    ------------ -----------     ----------- ---------- ---------- ----------- --------
                 Recovery        NTFS           6.26 GB     .72 GB     6.98 GB    89.62
    C            Windows         NTFS         472.59 GB  216.57 GB   689.16 GB    68.57
    D            HP_TOOLS        FAT32          1.91 GB     .09 GB     2.00 GB    95.45
    G                            Unknown         .00 GB     .00 GB      .00 GB
    K            System Reserved NTFS            .45 GB     .04 GB      .49 GB    92.72
    
    
    
    C:\WINDOWS\system32>
    zbook said:
    On this computer the script stressed tested the CPU, Disk, and fans.
    During therun CPU and Disk each rose close to or at 100%.
    The fan was working making noise (typically nearly silent).

    Code:
    Found Boot.bat
    Found CPUCC.bat
    Found CPUCheck.bat
    Found CPUFreq.bat
    Found CPUOSArch.bat
    Found DiskParMthd.bat
    Found DXWDDM.bat
    Found FreeSpace.bat
    Found InternetConn.bat
    Found MonitorRes.bat
    Found RAM.bat
    Found SecureBoot.bat
    Found TPM.bat
    Found TPMVers.bat
    FC = 0
    FC = 0
    FC = 0
    FC = 0
    FC = 2
    FC = 2
    FC = 2
    FC = 2
    FC = 2
    FC = 3
    FC = 7
    FC = 7
    FC = 7
    FC = 7
    FC = 7
    FC = 7
    FC = 7
    FC = 7
    FC = 7
    FC = 8
    FC = 10
    FC = 10
    FC = 12
    FC = 12
    FC = 12
    FC = 12
    FC = 12
    ...
    FC = 31
    
    Win11CompChkRes.zip is created on the Desktop.
    This took 00 :40.
    
    PRESS ANY KEY TO EXIT


    There were 31 files in the desktop folder.
    Is your PC/Laptop heats more when it stressed the fan?
      My Computers


  8. Posts : 41,459
    windows 10 professional version 1607 build 14393.969 64 bit
       #1268

    The temp was not monitored.
    The increased noise was noticeable.
      My Computer


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

    zbook said:
    The temp was not monitored.
    The increased noise was noticeable.
    The codes doesn't stress test my fan, but it made my CPU 100%, maybe it depends to the CPU, and airflow.
      My Computers


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

    I must admit that it did NOT have any great impact on my computer and took less than about 5 seconds [ other things were running ] to return the results.
      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 18:12.
Find Us




Windows 10 Forums