<div> 
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2522 " id="quads-ad2522" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 <h2 class="wp-block-heading">The Story</h2><p>I have DPM server deployed and I got couple of Exchange Servers and with about 2 TB of data.</p><div> 
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2531 " id="quads-ad2531" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 </div><div> 
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2525 " id="quads-ad2525" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 </div><div> 
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2530 " id="quads-ad2530" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 </div><figure class="wp-block-image size-large"><img src="https://www.moh10ly.com/wp-content/uploads/2021/05/image-1.png" alt="" class="wp-image-7066"> 
<div> 
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2524 " id="quads-ad2524" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 </div> 
</figure><p>I scheduled DPM to backup Exchange four days a week, then I used the deduplication command to make a use of non used space. however that didn&rsquo;t give me enough space.</p><p>As an alternative I planned to delete the recovery points each start of every month. </p><p>The script provided by Microsoft&rsquo;s article about DPM <strong>here</strong> doesn&rsquo;t really provide anyhow on how to delete a protection group with multiple recovery points.</p><p>After spending lots of digging I tried to create my own script.</p><h2 class="wp-block-heading">Caution:</h2><p>Please use this script with caution as it delete every Protection Group&rsquo;s Recovery Points. </p><p>If you need custom script to delete recovery points for a specific date please don&rsquo;t hesitate to send me an email. </p><div> 
<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2526 " id="quads-ad2526" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 </div><h2 class="wp-block-heading">Script:</h2><pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">$pgList = Get-ProtectionGroup $env:COMPUTERNAME

ForEach($pg in $pgList) {

 $dsList = Get-Datasource -ProtectionGroup $pg

 ForEach($ds in $dsList) {

 $RP = Get-DPMRecoveryPoint -Datasource $ds; $RP
 foreach ($P in $RP){
 Remove-DPMRecoveryPoint -RecoveryPoint $p -Confirm:$false -forcedeletion
 } }

}</pre><p>If you think this script has a mistake or can be improved please leave a comment or drop me an email.</p><h2 class="wp-block-heading">References:</h2><figure class="wp-block-embed is-type-link is-provider-chuck-039-s-blog wp-block-embed-chuck-039-s-blog"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="UXcXj2Retq"><a href="https://murison.wordpress.com/2015/01/12/removing-a-dpm-recovery-point/">Removing a DPM recovery ;point</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" style="position: absolute; visibility: hidden;" title="&ldquo;Removing a DPM recovery ;point&rdquo; &mdash; Chuck's Blog" src="https://murison.wordpress.com/2015/01/12/removing-a-dpm-recovery-point/embed/#?secret=z5V6eHhBk7#?secret=UXcXj2Retq" data-secret="UXcXj2Retq" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure></div>

<!-- WP QUADS Content Ad Plugin v. 2.0.93 -->
<div class="quads-location quads-ad2528 " id="quads-ad2528" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>


Reset and manage your Active Directory users' Passwords Active Directory is one of the most…
Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…
If you're using a Proxy server in your firewall or in your network and have…
Story:I got some clients that have reported some of their users being locked out and…
Delegate Permissions This is a code that I have wrote recently to check if an…
Story: I got a request from a client who constantly gets CVs and have to…