This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to script data date range deletion for Recovery Points Only ?

Hi all,

We need to do some Repository clean-up and so far it's working fine. But we haven't found any solution to script (powershell) the delete action for "Recovery Points Only". Is there a similar powershell cmdlet such as Get-ProtectedServers for this?

PS - Get-ProtectedServers returns only active protected agents, unfortunately.

Thank you.

  • Hi vendor.support:
    If you want to get all agent type objects please try the following code (I wrote if without a chance to test it as my lab environment is down due to the weather related power outage):

    $url = "https://$($corename):8006/apprecovery/api/core/agents"
    $wc = New-Object System.Net.WebClient
    [System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
    [xml]$xagents = $wc.DownloadString($url)
    [System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $null }
    $allagents = $(xagents).agents.agent | select-object displayname,agenttype,id | sort-object -property displayname,agenttype
    $allagents | ft -auto

    The last line is obviously just to show the results.
    Please let me know how it works for you.