Hi,
I've just upgraded my Veeam from 6.1 to 6.5 and during the up gradation, I have selected all the components including the PowerShell, but I'm surprised that the Task Scduler doesn't start the PowerShell Scripts to start the backup jobs. I have tried to run them manually using the scripts and I'm presented with an error but the job started
Welcome to the Veeam Backup PowerShell Toolkit!
To find out what commands are available, type: Get-VBRCommand
To show documentation for all available commands: Get-VBRToolkitDocumentatio
Copyright (C) 2012 Veeam, Inc. All rights reserved.
Backup job session
Job 'Critical VMs-1' '21,474,836,480' of '139,790,351,360' bytes processed,
[oooooooooo ]
00:18:22 remaining.
Files remaining\total: 20.0 GB; Avg. rate: 105 MB/s
otFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\veeam> cd G:\Scripts
PS G:\Scripts> .\CriticalVMs-1.ps1
Add-PSSnapin : Cannot add Windows PowerShell snap-in VeeamPSSnapin because it i
s already added. Verify the name of the snap-in and try again.
At G:\Scripts\CriticalVMs-1.ps1:1 char:13
I'm wondering if it can be the result of using multiple scripts runing back-to-back, one after another. My point is that each script you're trying to run probably has "asnp VeeamPSSnapin" in the begging, consequently, second script and all futher scripts in a row are likely to show you this error, meanwhile continue to run.
What about implementing simple checker right in the begging of the script? By the means of which you can verify that snap-in hasn't been started already.