anyway, my problem is as follows:
using vbr v6.5 with latest patch (although i dont think that matters here) on win2008r2
starting powershell and executing cmdlets/scripts is working. as i'm on an x64 system, this is all running in 64bit environment.
but here comes the interesting part:
i have this self written application to monitor our systems. this application is written in 32bit for compatibility with older x86 systems. this application obviously runs in 32bit environment thus when executing powershell cmdlets/scripts from within this application they are executed in a 32bit environment. found out, that i had to set execution policy for both environments separately. this are really funny guys at microsoft!
the point is, the veeam snapin is registered during installation for 64bit powershell environment only:
64 bit powershell:
Code: Select all
PS C:\Users\user> Get-PSSnapin -Registered
Name : VeeamPSSnapIn
PSVersion : 2.0
Description : This is a PowerShell snap-in that includes the Veeam's cmdlet.
PS C:\Users\user>
Code: Select all
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> Get-PSSnapin -Registered
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0>
after playing around with this for several hours i'm somehow, well, let say not amused with this powershell stuff. shortly before dropping all this
and moving to accessing the veeam database directly to gather job status and statistics.