Force Mark Tape As Free

Allows a user to mark any tape as free so that it is available for protection by DPM. Tapes which have unexpired data cannot be marked as free from the GUI but sometimes (esp. whi

Add to favorites
System Center
E-mail Twitter Digg Facebook
    3 Posts | Last post November 13, 2012
    • Hello,
      This is amazing script, but it does not work with DPM 2012. Can you please update of fix something to make it work in DPM 2012? It's time to move forward - we upgraded DPM to 2012 and all works great except this script that was very useful.
      When I try to run it, I get following error message:
      Add-PSSnapin : Cannot load Windows PowerShell snap-in Microsoft.DataProtectionM
      anager.PowerShell because of the following error: Could not load file or assemb
      ly 'file:///C:\Program Files\Microsoft DPM\DPM\bin\DpmCli.dll' or one of its de
      pendencies. The system cannot find the file specified.
      At C:\Scripts\MarkExpiredTapesAsFree.ps1:2 char:13
      + add-PSSnapin <<<<  Microsoft.DataProtectionManager.PowerShell
          + CategoryInfo          : InvalidArgument: (Microsoft.DataP...ager.PowerSh
         ell:String) [Add-PSSnapin], PSSnapInException
          + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.Ad
    • If you get that error look for a line looking like this :
      Add-PSSnapin -Name Microsoft.DataProtectionManager.PowerShell
      And replace it with this:
      #ensure we DPM cmdlets are loaded
      # Import the DPM PowerShell module
      $installPath = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Setup" "UIInstallPath").UIInstallPath
      $dpmModuleFullPath = $installPath + "Modules\DataProtectionManager\DataProtectionManager.psd1"
      Import-Module $dpmModuleFullPath
    • But to answer you question, there is a working ForceFree-Tape.ps1 delivered with DPM 2012.
  • script error
    1 Posts | Last post July 03, 2010
    • Win2008 with two HP MSL4048
      I have a DPM server with two libraries attached. When I used the script to mark as free slot-5 in second library, it marked as free slot-5 on both libraries !