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.4KViews0likes1CommentTrying to get job history of a job when the verify is running as a separate job via powershell
I am running a powershell script from the post-job command. It calls powershell.exe and then uses -file and -noninteractive to run the script. The script calls get-bejobhistory on the currently running job to get it's completion status. The script runs on the media server, and is supposed to run after the verify, which is a separate job. The purpose is to re-run the job up to three times, then fail out. To get started I am just get the history of the job and saving it to a .CSV file. The problem is after the job runs regardless of status, I have a blank file, 0 bytes. When I run it from powershell it works perfectly. Obviusly when I run the script the job is not running. Is there a way to get this working? Here is the very simple script: $LastRun = Get-BEJobHistory -name "BAUERDB2 VIRTUAL SERVER BACKUP-differential" -FromStartTime $(get-date -uformat "%m/%d/%y") -FromLastJobRun $LastRun | export-csv -path C:\Users\public\Documents\BAUERDB2-Diff.csv -notypeinformation927Views0likes1CommentPowerShell Take Jobs Off Hold
I need to take a group of jobs off hold. I'm looking for a way to do this via PoSH script, but have not yet stumbled across a feature to do this. Do you have any suggestions on how to do this? I'm not sure how the jobs got put on hold. The Job Engine System Service stopped responding, don't know why.I would like to: 1) query which jobs have been suspended / superceded / are awaiting for the next Full Backup to run first. 2) if appropriate, reactivate the job Thanks much - Ray1.3KViews0likes2CommentsGet-BEBackupDefinition Times Out, Aggravating
When I launch Get-BEBackupDefinition19 times out of 20 it fails with a 'time out' error; this makes it difficult to modify Backup Jobs via PoSH. Can you help? To this point, every script I have found via Google on how to modify a backup job first needs output fromGet-BEBackupDefinition. Is there another PoSH method to modify backup jobs? Please, Please? If not, any idea whyGet-BEBackupDefinitiontimes out on me. I have been playing with it for two months and it has returned job definition less than 10 times. Because we have 70 backup definitions, I cannot wait for it to work. I really prefer to script wholesale modifications instead of do them by hand. I have tried to runGet-BEBackupDefinition: via BE Management Command Line Interface on the server (via RD Desktop); in a remote PoSH session in PoSH ISE from my workstation desktop (loading BEMCLI first); run it immediately after restarting the backup host server; made sure not to have the Backup Exec management application open anywhere at all. A 'timeout' error is usually either cannot connect, or the data set is too large to read within a preset period.Is part of the problem that our definition database is too big? I appreciate any help you can give. Thanks much. - Ray481Views0likes0CommentsBackup exec 2016 & Dell Compellent
Is there a way to backup Dell Compellent volumes, directly i did hear a while ago that you could do this by copying/mounting the volume/snapshot to the backup server and backing it up from there, i think it is all powershell scripting but wouldnt knwo where to start.1.5KViews0likes2CommentsBEMCLI
In the GUI you can backup a DFS file structure by making sure user defined shares is ticked. Is there a way you can get BEMCLI to see the DFS tree to backup or a UNC path, as everytime, i try to run a command with -path \\servername\share\folder\ it thinks the share is a volume when executing and fails. is it even possible via BEMCLI, as there is nothing on the help files or the good old internet.1.1KViews0likes2CommentsBEMCLI - Get Jobs with "DeleteSelectedFilesAfterSuccessfulBackup"
Hi, Im trying with BEMCLI over Powershell to get all Jobs where "DeleteSelectedFilesAfterSuccessfulBackup" is set. It easy to set witthSet-BEFullBackupTask, but which Get command I have to use? Thanks and best regards, Kurt1KViews0likes2CommentsPowershell to import multiple PSTS
Hi I have been looking to imports hundreds of PSTs that are stored on a flat file system. I ended up developing a powershell script to perform the job. It takes a template ini file or an existing ini file as input. Based on the type of ini file provided it will either generate a new ini file to be used for importing or just use existing ini file provided. It will target a folder containing all the PSTs. Detailed help provided within the script. I have attached, the script, template ini and ini generated by the script. Hopefully this helps the EV community. Any suggestions are welcome. Thanks Raj1.4KViews1like1CommentBackup Exec 2014 BEMCLI Enhancements
Today's release of Backup Exec 2014 nearly doubles the size of BEMCLI from 222 to 395 cmdlets, with 72 of the original cmdlets enhanced with new parameters and functionality. Here's a quick list of what's new: - Native PowerShell v2 and v3+ support1.6KViews2likes4Comments