Hello,
I have written a powershell script to query the backup status.
I query the job with Get-VBOJob. But unfortunately the query does not work because the module has to be loaded. Can you tell me which module I need to import? I started from the module Veeam.Archiver.PowerShell. Unfortunately, the query of the job still does not work.
Do you have a tip for me?
Best regards
-
- Novice
- Posts: 8
- Liked: never
- Joined: Jun 26, 2022 1:04 pm
- Contact:
-
- Product Manager
- Posts: 5903
- Liked: 1236 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Veeam 365 Powershell Module
Have u tried the following? What error are you receiving?
Code: Select all
Import-Module "C:\Program Files\Veeam\Backup365\Veeam.Archiver.PowerShell\Veeam.Archiver.PowerShell.psd1"
GitHub: https://github.com/nielsengelen
-
- Service Provider
- Posts: 169
- Liked: 16 times
- Joined: Sep 27, 2019 5:06 pm
- Contact:
Re: Veeam 365 Powershell Module
Is there an easy way to install this module on a remote machine without having to install the entire M365 software? I have been searching around and not finding a good answer.
-
- Lurker
- Posts: 1
- Liked: never
- Joined: Apr 07, 2022 5:46 am
- Full Name: Gotthard Anger
- Contact:
Re: Veeam 365 Powershell Module
I´m afraid, as you _must_ run the powershell code on the veeam server.
Workaround: use on your admin device this code snippet
Workaround: use on your admin device this code snippet
Code: Select all
$objVBSession = New-PSSession -ConfigurationName Veeam.VB4M365 -ConnectionUri http://$($vbServer)/PowerShell/
Import-PSSession $objVBsession -DisableNameChecking -AllowClobber
# from here all commands running on the remote vb-server
Import-Module "C:\Program Files\Veeam\Backup365\Veeam.Archiver.PowerShell\Veeam.Archiver.PowerShell.psd1"
# use your commands...
# disconnect remote session
remove-pssession $objVBsession
Who is online
Users browsing this forum: Baidu [Spider] and 86 guests