Veritas Enterprise Vault™ PowerShell Cmdlets for Managing FSA Volumes
Creating PowerShell scripts using File System Archiving cmdlets
Administrators can create scripts using the File System Archiving cmdlets to automate the following tasks:
Configuring multiple shares having archive point at the root of the share by listing the shares in a CSV file.
Removing all the shares associated with a file server.
Specify the details of shares in a CSV file, each on a separate line, in the following format:
FileServerName,VolumeName,PolicyName,TaskName,VaultStoreName,Archiving
Note the following:
Enterprise Vault considers the first line as the header row and ignores it during processing.
The Archiving column is optional. If you include this in the CSV file, then you must specify values as On or Off.
If any of the parameters specified is not found, the cmdlet writes appropriate errors for that share on the PowerShell host.
To create the script, run PowerShell, or the Enterprise Vault Management Shell. At the command prompt, run the following command:
Import-Csv <CSV file> | % { New-EVFSAVolume $_.VolumeName $_.FileServerName $_.VaultStoreName $_.TaskName $_.PolicyName -DisableArchiving:($_.Archiving -eq $null -or $_.Archiving -eq 'Off') }
Import-Csv <CSV file> | % { &"C:\Program Files (x86)\Enterprise Vault\ArchivePoints.exe" "Create" ("\\{0}\{1}" -f $_.FileServerName,$_.VolumeName)}
To remove all shares associated with a file server, run the following command:
Get-EVFSAVolume <FileServerName> | Remove-EVFSAVolume
This script prompts for confirmation of removal. To avoid the confirmation prompt, use -Confirm:$false