DPM Powershell script to show offsite ready tapes

By |2017-12-04T14:47:23+00:00April 9th, 2010|PowerShell|0 Comments

Just a quick PowerShell script to show you tapes that are offsite ready in your tape library. If you save the below into notepad and save it as a PS1 file then run from DPM management shell this should work with no errors

$AllLibraries = get-dpmlibrary -dpmservername servername

$AllTapes = Get-Tape -DPMLibrary $AllLibraries

$outfile = “c:DPMScriptsOffsite-Ready-Tapes.txt”

“DPM Offsite Ready Tapes” | out-file $outfile

$AllTapes |sort-object location | Where-Object {$_.isoffsiteready} | format-table location, barcode ,isoffsiteready | out-file -append C:dpmscriptsOffsite-Ready-Tapes.txt

This PowerShell will output the information needed to a text file in the following location “C:dpmscriptsOffsite-Ready-Tapes.txt “ which will look like below

DPM Offsite Ready Tapes

Location                Barcode                        IsOffsiteReady

——–                   ——-                          ————–

Slot 1                    AIS783L3                    True

Slot 2                    YB2417L3                   True

Daniel Davies

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
Give it a try, you can unsubscribe anytime.