Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
fix(alertsender): Import-Module #18
Browse files Browse the repository at this point in the history
  • Loading branch information
tigattack committed Jun 12, 2021
1 parent 924e363 commit ad14f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DiscordVeeamAlertSender.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Elseif ($currentversion -gt $latestversion) {
$footeraddition = (Get-Random -InputObject $updatenewerarray -Count 1)
}

# Add Veeam snap-in
Add-PSSnapin VeeamPSSnapin
# Import Veeam module
Import-Module Veeam.Backup.PowerShell

# Get the session
$session = Get-VBRBackupSession | ?{($_.OrigJobName -eq $JobName) -and ($Id -eq $_.Id.ToString())}
Expand Down

0 comments on commit ad14f6a

Please sign in to comment.