Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Update RegularCommands.ps1
Browse files Browse the repository at this point in the history
Reinstall Facilitator Printer on Student Computers in Abbotsford
  • Loading branch information
fireball8931 authored Oct 21, 2021
1 parent 2118bb3 commit f3a2306
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions www/downloads/RegularCommands.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit f3a2306

Please sign in to comment.