Maintain control of your Microsoft 365 data
Post Reply
ShowMeYourSkil
Novice
Posts: 8
Liked: never
Joined: Jun 26, 2022 1:04 pm
Contact:

Veeam 365 Powershell Module

Post by ShowMeYourSkil »

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
nielsengelen
Product Manager
Posts: 5903
Liked: 1236 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Veeam 365 Powershell Module

Post by nielsengelen »

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
squebel
Service Provider
Posts: 169
Liked: 16 times
Joined: Sep 27, 2019 5:06 pm
Contact:

Re: Veeam 365 Powershell Module

Post by squebel »

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.
G.Anger
Lurker
Posts: 1
Liked: never
Joined: Apr 07, 2022 5:46 am
Full Name: Gotthard Anger
Contact:

Re: Veeam 365 Powershell Module

Post by G.Anger »

I´m afraid, as you _must_ run the powershell code on the veeam server.
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
Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 86 guests