Update samy.ps1
This commit is contained in:
3
samy.ps1
3
samy.ps1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user