none
recovery points created in last 24 RRS feed

  • Question

  • Hello,

    I am looking for a script that can retrieve restore points created in last 24 hours. in case any failure, it would be great if can list that as well.


    i came found below commands from the URL https://docs.microsoft.com/en-us/powershell/module/dataprotectionmanager/get-dpmrecoverypoint?view=systemcenter-ps-2016

    $PGroup = Get-DPMProtectionGroup -DPMServerName "DPMServer02"
    $PObjects = Get-DPMDatasource -ProtectionGroup $PGroup
    Get-DPMRecoveryPoint -Datasource $PObjects

    but i am getting error when i m declaring second variable

    $DS = Get-DPMDatasource -ProtectionGroup $PG

    Get-DPMDatasource : Cannot convert 'System.Object[]' to the type
    'Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.ProtectionGroup' required by
    parameter 'ProtectionGroup'. Specified method is not supported.
    At line:1 char:42
    + $DS = Get-DPMDatasource -ProtectionGroup $PG
    +                                          ~~~
        + CategoryInfo          : InvalidArgument: (:) [Get-DPMDatasource], ParameterBindingException
        + FullyQualifiedErrorId : CannotConvertArgument,Microsoft.Internal.EnterpriseStorage.Dls.UI.Cmdlet
       .Common.GetDatasource

    I want my output should look similar to:

    Protection group Name       datasource name     date & time of recovery point

    Arun Kumar

    Saturday, February 17, 2018 10:24 AM

All replies

  • Hi,

    Take a look at my Gallery Download

    https://gallery.technet.microsoft.com/Check-DPM-for-last-96f12c86?redir=0


    Michael Seidl (MVP)

    SYSCTR Senior Consultant, Blogger, CEO

    Blog | Twitter | Facebook | LinkedIn | Xing | Youtube

    Note: Posts are provided "AS IS" without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

    Sunday, February 18, 2018 10:45 AM