Scripting Disk Usage Report for Co-Located Laptops DPM 2012 R2 RRS feed

  • Question

  • Hi again!

    I don't know of I'm being blind but I can't seem to find a dataset/attribute that I can interrogate for actual disk spaced used per client from the DPM CLI. 

    I can find DiskAllocation against a computer using: 

    Get-DPMDatasource -DPMServerName DPMSERVER |?{$ -like "USERLAPTOP"} | select DiskAllocation

    But as the laptops are co-located this isn't much use. I can run the SQL Disk Utilization report by client and get the accurate usage per client (as show in the client agent) but was wondering if there is a way to script it using PowerShell?

    • Edited by [Malco] Friday, May 29, 2015 2:51 AM
    Friday, May 29, 2015 2:44 AM

All replies

  • Hi,

    I'm searching on this topic and will post back if there is any update.

    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Support, contact

    Sunday, May 31, 2015 8:55 AM
  • Hi,

    DPM does not keep track of space used on the replica for each co-located datasource because that would mean DPM would need to traverse each data sources subfolder on the replica and total up the disk space used.  This could be very io intensive and time consuming especially for client protection.  Consequently - there is no powershell command to query disk space allocated per co-located datasource.

    For client protection, you can enable disk quotas and set the warning threshold very low, but not block, then look at the resulting warning events per client.

    A script to set or remove disk quotas for protected client computers in System Center Data Protection Manager

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, June 1, 2015 6:43 PM
  • Thanks Mike, I'm not too bothered by quotas. I just wanted to see if I could get the info out of the CLI as it is there in the SQL based reports.

    If I run the standard SQL based Disk utilization report by client it shows me how much each is using and seems to match up with the data on disk on the client. It's a shame you can't pull this metric from PowerShell.

    Thanks for coming back though!

    Tuesday, June 2, 2015 1:49 AM