streamline the Send-MailKitMessage installation
This commit is contained in:
@@ -60,5 +60,8 @@ else {
|
|||||||
Write-Warning "[[Scheduler]] Backup task not scheduled: there is already a task with the name '$backup_task_name'."
|
Write-Warning "[[Scheduler]] Backup task not scheduled: there is already a task with the name '$backup_task_name'."
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install Send-MailKitMessage module
|
# Install NuGet and Send-MailKitMessage module (by force)
|
||||||
Install-Module Send-MailKitMessage -Repository PSGallery -Scope AllUsers
|
if ($PSVersionTable.PSVersion.Major -eq 5) {
|
||||||
|
Install-PackageProvider -Name NuGet -Force
|
||||||
|
}
|
||||||
|
Install-Module Send-MailKitMessage -Repository PSGallery -Scope AllUsers -Force
|
||||||
|
|||||||
Reference in New Issue
Block a user