Mostly works, just needs tweaks

Mostly works out the box, cheers. I found a couple of bugs which might help someone else:

Firstly line 13 threw an error about the SnapIn already being added – fix was to comment it out:

13: #asnp VeeamPSSnapin

Secondly, the date comparison really didn’t work, so I changed it from:

56: if ($now -gt $last)

to

56: if(Get-Date $now) -gt (Get-Date $last))

Which seemed to do the job quite nicely. 🙂

If that inadvertently cocks up something else, then whoops – this is the first and hopefully only time I’ve had to deal with powershell. Give me bash any day…

Thanks