Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheeves11 authored Jul 25, 2024
1 parent d1a8844 commit 63b4ee1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,17 @@ This is the script that does the work. I'm using a Xerox VersaLink B405 as an ex

```powershell
#start logging
start-transcript -Path "C:\tmp\installprinter.txt"
start-transcript -Path "C:\tmp\install-example-printer.txt"
#Stage all .inf driver files in the "\Drivers" folder
Get-ChildItem "$PSScriptRoot\Drivers" -Recurse -Filter "*inf" | ForEach-Object { C:\Windows\sysnative\pnputil.exe /add-driver $_.FullName /install }
Get-ChildItem "$PSScriptRoot\Drivers" -Recurse -Filter "*inf" | ForEach-Object { C:\Windows\sysnative\pnputil.exe /add-driver $_.FullName /install }
#Install the printer driver (this name is specific to each printer)
Add-PrinterDriver -Name 'Xerox VersaLink B405 PS'
Add-PrinterDriver -Name 'Canon Generic Plus UFR II'
#Create Ports (use whatever name you want)
Add-PrinterPort -Name 'example-printer-intune' -PrinterHostAddress 'example-printer.ddns.uark.edu'
#Install Printer (use the same port as before and make up a name)
Add-Printer -Name 'EECS Senior Design Lab Printer (intune)' -DriverName 'Xerox VersaLink B405 PS' -PortName 'example-printer-intune'
Add-Printer -Name 'Example Printer - Intune' -DriverName 'Canon Generic Plus UFR II' -PortName 'example-printer-intune'
stop-transcript
```
Expand Down

0 comments on commit 63b4ee1

Please sign in to comment.