none
Recovery partition free disk space RRS feed

  • Question

  •  I m running  sccm 1902 and clients has a recovery partition drive for cache content

    Is it possible to get the free disk space of that recovery partition like c: drive ? 


     Best Regards
    Tuesday, November 12, 2019 1:21 AM

All replies

  • Hi,

    You have to enable Free Space Hardware Inventory classes to get this, refer to the following article: 

    https://www.enhansoft.com/how-to-collect-free-disk-space-data-in-sccm/

    Regards,

    SAAD Youssef

    ______

    Please remember to mark the replies as answer if they help, thank you!

    Tuesday, November 12, 2019 7:41 AM
  • Hi,

    If I understand correctly, we want to get the free space of a partition without drive letter. To achieve this, we may consider deploying a PowerShell script.

    The difficulty is: How can we distinguish the recovery partition from other normal partitions? If we locate it according to the DeviceID, it varies from computer to computer. The following command get the free space of all partitions (which capacity is less than 1GB, including Reserverd partition and Recovery partition) and we may check if it meets our requirement.

    Get-WmiObject -Class Win32_Volume | ? {($_.Capacity/1GB) -lt 1} | select DeviceID, @{L='FreeSpaceGB';E={"{0:N2}" -f ($_.FreeSpace /1GB)}}, @{L="CapacityGB";E={"{0:N2}" -f ($_.Capacity/1GB)}}, Caption, DriveLetter, FileSystem, BootVolume, Compressed, IndexingEnabled, MaximumFileNameLength, PageFilePresent, SerialNumber, SystemVolume | ft




    Hope the above information helps.

    Regards,

    Alex Zhu
    -----------------------------------------------
    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
    Tuesday, November 12, 2019 8:46 AM
  • Thanks Alex

    So there is no other way than using powershell?  I m managing 60k computer so running a script to get all partitions could take time.

    Ideally i would like something similar to hardware inventory classes or any reg key... to be able to get a sccm report for that partition. 

    Thanks for your responses!!


    Tuesday, November 12, 2019 10:25 PM
  • As long as the FreeSpace attribute is enabled as described above by SAAD, then this info is automatically collected by ConfigMgr, in the DB, and queryable using WQL or SQL.

    Jason | https://home.configmgrftw.com | @jasonsandys

    Wednesday, November 13, 2019 3:28 AM
  • Hi Julian,

    As far as I know, even if the free space (MB) of client settings is selected (as described in the above article), it shows the total amount of all the free disk space of each volume with drive letter, for example, C, D, E, etc. That's make no sense to the problem.

    The accumulated amount free space includes all the volumes that we can see in the file explorer, excluding the preserved partition or recovery partition so that we are unable to know the free space of each volume. In the screenshot you provided, the recovery partition is 40 GB, perhaps, we may modify the filter: ? {($_.Capacity/1GB) -lt 45 -and ($_.Capacity/1GB) -gt 35}



    Hope the above information helps.

    Regards,

    Alex Zhu
    -----------------------------------------------
    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, November 13, 2019 5:19 AM
  • Hi,

    Some supplements:

    1, found the evidence that only volumes in file explorer (with drive letter) will be added as the total free space. The third line is 181060 and when we open resource explorer of the specified computer (which has another 500 MB partition w/o drive letter )

    78785 + 102275 = 181060




    2, the Get-WmiObject cmdlet can use the following parameter. If we want to automate the task, we can build a list of the 60k computers and build a script to loop the command with different computername. Just for your reference

    -ComputerName <computername>


    Hope the above information helps.

    Regards,

    Alex Zhu
    -----------------------------------------------
    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, November 13, 2019 9:19 AM
  • Sorry, I missed that this was the recovery partition. You can easily extended hardware inventory or use a Script to pull back this information. What's the end goal here? Simple reporting?

    Jason | https://home.configmgrftw.com | @jasonsandys

    Thursday, November 14, 2019 5:11 PM
  • Hi Julian,

    It seems there is no update for a couple of days. May we know the current status of the problem? Is there any other assistance we can provide?

    Regards,

    Alex Zhu
    -----------------------------------------------
    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
    Wednesday, November 20, 2019 6:17 AM
  • We want to know free space for this recovery partition 

    How can be extended hardware inventory if recovery partition does not have drive letter?

    Thursday, December 5, 2019 10:26 AM
  • Likely we will deploy an script to gather free space info in a reg key. Then we use RegKeyToMof
    Thursday, December 5, 2019 10:37 AM