diff --git a/www/downloads/RegularCommands.ps1 b/www/downloads/RegularCommands.ps1 index dd7a43ce..86b13f57 100644 --- a/www/downloads/RegularCommands.ps1 +++ b/www/downloads/RegularCommands.ps1 @@ -278,5 +278,11 @@ if ($global:campus -eq 'Abbotsford') { if ((test-path C:\scriptfiles\thisisastaffcomputer) -eq $false) { Get-Printer | Select-Object Name, DriverName | Where-Object {$_.DriverName -clike "*Brother*"} | Remove-Printer } - -Write-Host 'This file was updated on October 18 2021' + if (-not ($global:campus -eq 'Abbotsford')) { + Write-Host 'Not at Abbotsford' + exit + } +Add-PrinterPort -Name 192.168.1.228_1 -PrinterHostAddress 192.168.1.228 -ErrorAction SilentlyContinue +Add-Printer -Name 'Abbotsford Facilitator' -PortName 192.168.1.228_1 -DriverName 'Brother Laser Type2 Class Driver' + +Write-Host 'This file was updated on October 19 2021'