PowerShell script exchange
- Posts: 1
- Liked: never
- Joined: Dec 25, 2014 12:59 am
- Full Name: Francis Swipes
After looking at the SAMReport for Veeam I decided to try it on our system - seems to be everything any red-blooded Veeam user could ask for. When I run the report, I get an error attempting to load [Veeam.Backup.Core.CRemoteWinFileCommander] - it doesn't seem to be available. I can load [Veeam.Backup.Core.CRemoteWinFile] but that doesn't have a Create method and the rest of the report (at least as far as the repository information) is blank. What am I missing? I am running Veeam 18.104.22.1687.
Thanks for any assistance.
- Product Manager
- Posts: 16913
- Liked: 1440 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
The said script was interacting more or less directly with the internal database structure which changes from version to version. So, typically there are no guarantees that such scripts will work on all product versions. The mentioned method must have been removed in version 8, thus, the script doesn't work any longer. Thanks.
- Posts: 94
- Liked: 6 times
- Joined: Apr 21, 2011 7:37 pm
I just switched to using WMI. Ideally this should be a CIM call since WMI will be deprecated.
Code: Select all
foreach ($Repo in (Get-VBRBackupRepository))
$RepoServer = $Repo.GetHost()
$RepoDrive = "'"+$repo.Path.Split("\")+"'"
$storage = Get-WmiObject Win32_LogicalDisk -ComputerName $Repo.GetHost().RealName -Filter "DeviceID=$RepoDrive"
Users browsing this forum: No registered users and 3 guests