Update samy.ps1

This commit is contained in:
2025-12-17 23:35:37 -05:00
parent 5cca263199
commit ce48979759

View File

@@ -266,7 +266,7 @@ $ConfirmPreference = 'None'
$Global:DattoWebhookUrl = 'https://bananas.svstools.ca/dattormm' $Global:DattoWebhookUrl = 'https://bananas.svstools.ca/dattormm'
# SAMY asset config (change branch or base once and it updates everything) # SAMY asset config (change branch or base once and it updates everything)
$Script:SamyBranch = 'main' # 'beta' $Script:SamyBranch = 'beta' # 'main' or 'beta'
$Script:SamyRepoBase = 'https://git.svstools.ca/SVS_Public_Repo/SAMY/raw/branch' $Script:SamyRepoBase = 'https://git.svstools.ca/SVS_Public_Repo/SAMY/raw/branch'
if (Get-Command Set-SvsPrinterRepoConfig -ErrorAction SilentlyContinue) { if (Get-Command Set-SvsPrinterRepoConfig -ErrorAction SilentlyContinue) {
@@ -1792,6 +1792,7 @@ function Invoke-GetPrinters {
try { try {
Install-SVSMSP -InstallToolkit Install-SVSMSP -InstallToolkit
Import-Module SVSMSP -Force -ErrorAction SilentlyContinue
} }
catch { catch {
Write-LogHybrid "Auto-install of SVSMSP failed: $($_.Exception.Message)" Error Printers -LogToEvent Write-LogHybrid "Auto-install of SVSMSP failed: $($_.Exception.Message)" Error Printers -LogToEvent