VSR Scripting - How to get Image Job Network User
Hi, I have successfully used the example powershell scripts that come with VSR 18 to script creating backup jobs, that back up to a network drive. I am now trying to write a script to get each ImageJobs NetworkUser and then change the NetworkPassword. I have spent a day trying to find how to get an ImageJobs NetworkUser but have failed. Please will someone help me out. See below for the script I am trying to get to work. Many Thanks, Josonic # I have got the system volume as $oVolume, and therefore its ID ForEach($ImageJob in $v2iAuto.ImageJobs) { Write-Host $ImageJob.Displayname # shows displayname correctly Write-Host $ImageJob.Location # shows 'IImageLocation Location (string) {get} {set}' Write-Host $ImageJob.Location($oVolume.ID) # shows 'The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))' Write-Host $ImageJob.Location($oVolume.ID).Path # shows 'The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))' }Solved1.4KViews0likes1CommentAutomate / Script System Recovery Policy Creation
Hi Gurus, Would like to seek for your advice regarding our current situation - deploy VSR 2016 on 3 sites with about 80 - 200 machines each. No VSR central management. Backup will be dumped to shared drive. We've gone past the installation part, but I would like to ask for your advice / suggestions how to go about automating / scripting creation of backup policies. Only a handful will have peculiar backup selection/destination/retention, so it would be extremely helpful if we can automate creation of policies for similar machines.2.1KViews0likes7CommentsHow to use SSR 2013 R2 SP3 with PowerShell ?
Hello, I want to use symantec system recovery 2013 R2 SP3 with PowerShell. I use the following Management Console : SSR 2013 R2 SP3 MS. I saw the script on ...\SSR 2013 R2 SP3\Sym_System_Recovery_2013R2_11.1.3.55088_Multilingual_Product\Docs\Automation\PowershellScripts but how is it possible to run successfully ? I want use the scripts to running the backups failed. Thanks for your response. SamirSolved1.3KViews0likes2CommentsBEMCLI Submit-BELinuxMacRestoreJob Use Backup Set From tape
Hi, We have a backup job that backups to disk. Then we have a stage that duplicate the data to tape. This works perfectly well. We are trying to make a daily script that will restore the backup set that was duplicated to the tape and run a validation script on it. Right now we have this: $sGUID = [System.Guid]::NewGuid().toString() $x = Get-BEStorage -name "Drive 01" $objBEJobhistory = GET-BEjobhistory -JobStatus Succeeded -JobType Duplicate -Name "xxxxxx" -FromLastJobRun â $objBEjob = Submit-BELinuxMacRestoreJob -JobHistory $objBEJobhistory -Storage $x -LinuxMacSelection "/" -RedirectToPath "e:\temp\$sGUID" -AutomaticallyDeleteJob WhenComplete | Wait-BEJob The first problem we have is that the restore is made from the disk instead of the tape. Even if we fed the cmdlet with the job history of the duplicate job and even by forcing the -Storage param. What are we de doing wrong ? What we are trying to achieve with the cli, is easily doable in the GUI. If we click restore, I choose "Files and folder backups from a backup set". Basically, I want to choose a specific backup set and restore only the files that are in that specific backup set. Not all the files up to that point in time... Any help wouldbe appreciated. Thanks in advance â â306Views0likes0CommentsBackup Exec 2015 Post command XML Report
Hi, I am trying to implement a custom "verify job" using a BEMCLI in the "POST COMMAND" config option. I call it using "powershell c:\bat\myscript.ps1" and it gets called so everything works fine. The problem I am having is that I need to be able to parse the xml report that is generated during the job I saw the job ID was set as an environment variable so I read it using sJobID = $env:BE_JOB_ID There is also a second environment variable which is $sXmlFileName = $env:VSR_LOG_FILE_NAME which seems to be the temporary xml report (The name looks like C:\Program Files\Symantec\Backup Exec\Data\VSR_Log_File1.xml" But I can't find the data I need in the reports. It seems the report gets saved AFTER the post command is completed so the file BEX_SERVER06_00025.xml (number gets incremented on each run) is not available... I've been playing with Get-BEJob -id $sJobID | Get-BEJobHistory -FromLastJobRun | Get-BEJobLog Without success... Is there a way to retrieve what files were backuped during the post command phase ? I need to return an error if my custom verify finds something invalid so that the job state is switched to "failed". Any help would be appreciated. Regards800Views0likes5CommentsAfter PST Migration Completed End User Can't Open Outlook
Enterprise Vault 11.0.1 CHF1, On Windows 2008 R2, Exhange 2013 CU8, End user uses outlook 2013. After PST migration completed when end user trys to open his outlook he faces with error which PST Outlook data file can not be found. By manuelly I can remove PST file which is migrated and solve this issue. But this is "Server driven pst migration" method and more than thousand end users. Are there any settings, policy or parameters on Enterprise Vault side to solve this issue automatically.Solved668Views2likes2CommentsBEMCLI / Powershell /Backup Exec 2014 / Submit-BEFileSystemRestoreJob
My fileserve backup selections are done using \\SERVER\ShareName Is there a way restore using BEMCPLI LI with Pointing to the share as a Path? As of Now, only wat i found to do a restore is this way (But it means I must change all my jobs) $File=(Get-Childitem -path "\\Server\D$\Folder\Folder" ` | Get-Random -Count 1).FullName.ToUpper().Replace("\\SERVER\D$","D:") Get-BEJob -Name *00058* ` | Get-BEJobHistory -FromLastJobRun ` | Submit-BEFileSystemRestoreJob $file ` -RedirectToPath D:\RestoreTestJobsFolder Looking for a way to restore using a "share path instead" if possible (This does not work) $File=(Get-Childitem -path "\\Server\Share\Folder\Folder" ` | Get-Random -Count 1).FullName Get-BEJob -Name *00058* ` | Get-BEJobHistory -FromLastJobRun ` | Submit-BEFileSystemRestoreJob $file ` -RedirectToPath D:\RestoreTestJobsFolder Thank you for your help!516Views1like0CommentsModifying all job properties via scripts?
Hi y'all. We're running Backup Exec 2014 (14.1, Rev. 1786) on Windows Server 2008 R2 Std. x64. My team inherited a number of backup jobs created by folks who moved on. One of the things we'd like to do is modify all the jobs so they email and/or page us when there is a job error or failure. There are about 100 different jobs, hence the desire for a script. The only properties of the jobs we want to change at this time is to add 2 users and a pager to the job notification properties. Can this be done via powershell or BEMCLI? Anyone have any examples of a script which does something like this? Thanks, in advance, for the advice. GarySolved516Views0likes1Comment