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.3KViews0likes2Commentsthe same GUID on two computers
I have two computers with the same GUID in Altiris Agent. So I deleted them from SSR-MS, then reset Guid (AeXAgentUtil.exe /resetguid), and then restart agent. But when I checked them it had again the same new GUID. So I've found on Altiris KB some script: 'vbscript Change GUID then force client to update configuratin and send basic inventory Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell" ) Dim TypeLib, sNewGuid Set TypeLib = CreateObject("Scriptlet.TypeLib" ) sNewGUID = TypeLib.Guid Set TypeLib = Nothing sNewGuid = left(sNewGUID, len(sNewGUID)-2) ' wscript.echo " # Guid Generated " + sNewGuid WshShell.RegWrite "HKLM\Software\Altiris\Altiris Agent\MachineGuid" ,sNewGuid, "REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Altiris\Client Service\NSMachineGuid" ,sNewGuid, "REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Altiris\eXpress\MachineGuid" ,sNewGuid, "REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Altiris\eXpress\NS Client\MachineGuid" ,sNewGuid, "REG_SZ" WshShell.RegWrite "HKLM\SOFTWARE\Computing Edge\Notification Server\MachineGuid" ,sNewGuid, "REG_SZ" Dim client Set client=WScript.CreateObject ("Altiris.AeXNSClient" ) ignoreBlockouts=1 sendIfUnchanged = 1 client.SendBasicInventory sendIfUnchanged, ignoreBlockouts client.UpdatePolicies ignoreBlockouts Probably it works well/better. Now in Resource Manager I see both computers. But when I click "Symantec System Recovery Details" in SSR-MS I have information that "The Symantec System Recovery configuration data is not available" What to do with this?2KViews1like13CommentsNeed a script to do an specific schedule job
Hi all! I have a Sym Backup Exec System Recovery 2010 and I´m trying to run a job at a specific time on the 1st Tuesday of each month. Well, turns out that it is not possible to do such selection in the program scheduler. So I´m thinking that it may be possible to do by a script (vbs or batch file), but I can´t think in a way of doing it by a batch file and I don´t know how to build a vbs script. The job is already created, lets call it “Tuesdayjob”, and it is programed to create a single image of the whole system in “c:\backup\”. Is there a way to do this?Solved1.6KViews1like10CommentsSSR 2013 - Using command line to run a remote backup
Hello, We are migrating to Win7 from XP we can use the backup policies to run backups at scheduled times though what we would like to do is create a job in Deployment Consoleto run a script immediately on the PC's we plan to migrate that day. Has anyone tried this or know if using command line is possible to run a remote backup?874Views0likes6CommentsMonitoring Symantec System Recovery Through Automation
Good Afternoon- I love the SSR product (500+ active deployments), but unfortunaltey, management options for large-to-enterprise installations just do not exist.And yes, I am aware Symantec has an Altiris-based Management Solution, however, in my environment, installing an agent on remote PC's is simply not an option (due in part tosoftware compatibility and support restrictions). That said, I have come to the conclusion that I will have to write a custom reporting module to get the data I need and so far I have made some significant progress, but I still have a few roadblocks. My goal is to create a roll-up reporting system -- my SSR backup server at each site will run a small custom application to poll each SSR instance at the site, grab a handful of information about the backups and push the data to a central SQL database. From this SQL database, I will write acustom reports/dashboards/etc... to be able to have an enterprise view of the backup status. As I said earlier, I have made some progress -- I am gathering /some/ data, as shown in the examples below and the data is reporting up to the SQL database as designed. My troubles come with getting /detailed/ information from SSR... Let's look at some examples: ----------------- Example #1 My first attempt at this was to start at the image level... Get a list of JOBS from SSR and (hopefully) find the last time the job ran and the status. This example returns a LOT of good information, however, I cannot seem to find a last image time or last image result. As you can see, I have tried to use the "Next Backup Expected" and "Last Backup Expected" options and the output of those objects makes no sense (in my environment, they both return the same value of 3:00:00 AM, which is not specified as a backup time and does not match what the GUI says the Next/Last Backup times are). I would probably PREFER to use this method in my application. Call oBESRApp.Connect(sComputerName) For Each oImageJob In oBESRApp.ImageJobs If oImageJob.Enabled Then Console.WriteLine("Backup Job ID: " & vbTab & oImageJob.ID) Console.WriteLine("Backup Job Display Name: " & vbTab & oImageJob.DisplayName) Console.WriteLine("Type: " & vbTab & oImageJob.Type) Console.WriteLine("Description: " & vbTab & oImageJob.Description) Console.WriteLine("Next Backup: " & vbTab & oImageJob.NextExpectedBackup) Console.WriteLine("Last Backup: " & vbTab & oImageJob.LastExpectedBackup) For Each oVolume In oImageJob.Volumes Console.WriteLine("Volumes: " & vbTab & oVolume) Next End If Next ----------------- Example #2 Since I have not been able to get the data I was hoping to find, I figured I would try from the volume level... Use the API to get a list of ALL volumes on the SSR instance and get the LastImage.TimeStamp for each. This works, but creates a few technical challenges: - In /some/ cases, I need to be able to exclude drives from reportingbased on the SSR instance -- an example here would be, on my SSR backup server, I would not want to report the image status of my iSCSI SAN attached as D:(because I am not backing it up using SSR), but I would want other D: drives, on other SSR instances to report - This method forces me to use an On Error statement (which I hate to have to do), because SSR will not have a Last Image Time Stamp for a drive it does not have an image for. This must be trapped, or a Null Exception is returned. Call oBESRApp.Connect(sComputerName) For Each oVolume In oBESRApp.Volumes(False) If (oVolume.Valid) Then Console.WriteLine(vbTab & "Mount Point: " & vbTab & oVolume.MountPoint) Console.WriteLine(vbTab & "Mounted: " & vbTab & oVolume.Mounted) Console.WriteLine(vbTab & "Type: " & vbTab & vbTab & oVolume.Type) Console.WriteLine(vbTab & "File System: " & vbTab & oVolume.FileSystem) Console.WriteLine(vbTab & "Display Name: " & vbTab & oVolume.DisplayName) Console.WriteLine(vbTab & "Boot Volume: " & vbTab & oVolume.Active) Console.WriteLine(vbTab & "System Volume: " & vbTab & oVolume.System) Console.WriteLine(vbTab & "Machine: " & vbTab & oVolume.Machine) Console.WriteLine(vbTab & "Label: " & vbTab & vbTab & oVolume.Label) Console.WriteLine(vbTab & "Hidden: " & vbTab & oVolume.Hidden) sVolumeLastImage = "10/10/10 10:10:10 AM" On Error Resume Next sVolumeLastImage = oVolume.LastImage.TimeStamp Console.WriteLine(vbTab & "Last Image: " & vbTab & sVolumeLastImage) End If Next ------------------------------------------------------------------------------------- My preference would be to find a way to make example #1 work... Hoping this makes sense to someone? Thanks, J730Views0likes5CommentsSSR2011 VBScript for backup system volume which included hidden volume?
Hi All, I would like to ask you about what is a VBScript for backing up system volume which included hidden volume on Windows Server 2008 R2? I don't know how to pass the array of volumes (hidden (*:\) and system (C:\)) to backup job. Do you have any ideas?, please share Thank you.987Views1like3Comments