Used Powershell 4 on NetVault Server's Operating System:
1. Created a Report in NetVault that displays the desired Media labels that should be deleted.
- Exported the list to Notepad
- Saved the file in NetVault util folder
labels.txt example (Note: No ',`," needed)
cnv-nv92 07 May 17:18-1
cnv-nv92 14 Jul 16:05-1
2. Install PowerShell 4.0 and open ISE (or run the script in one line directly in PowerShell)
# Define the location of the executable to run
$exe = "C:\Program Files (x86)\Quest Software\NetVault Backup\util\nvremovemedia.exe"
# Define medialable parameter
$param = "-medialabel"
# Run the command for each object in labels.txt
foreach($object in get-content .\labels.txt) { &$exe $param $object }
This will delete all items in the list labels.txt.
Script could be extended to generate the list given by NetVault's Report.