Skip to content

Instantly share code, notes, and snippets.

@zackn9ne
Created March 16, 2020 22:17
Show Gist options
  • Save zackn9ne/532d190716fc049ab716a7c294d6d4b1 to your computer and use it in GitHub Desktop.
Save zackn9ne/532d190716fc049ab716a7c294d6d4b1 to your computer and use it in GitHub Desktop.
#Vars
#zackn9ne and Kyle
#Printer Driver Name
$driver="Xerox AltaLink C8000Series EFI"
#Get Files
$url = "https://abingtonstorage.blob.core.windows.net/printerdrivers/printers.zip"
Invoke-WebRequest $url -OutFile "C:\Windows\Temp\Printer2.zip"
Expand-Archive -Path C:\Windows\Temp\Printer2.zip -DestinationPath c:\Windows\Temp\printerz -Force
#Install Printer
$drvrpath=".\printerz\printers\Xerox AltaLink C8070 Multilink\Drivers\Ps_drvr\oemsetup.inf"
Invoke-Command {C:\Windows\System32\pnputil.exe -a $drvrpath }
Add-PrinterDriver -Name $driver
Get-PrinterDriver
#Add-PrinterDriver $driver -Verbose
#Printer IP
$ip="10.105.185.126"
#Printer Name
$name="Xerox AltaLink"
Add-PrinterPort -Name $ip -PrinterHostAddress $ip -Verbose
Add-Printer -Name $name -DriverName $driver -PortName $ip -Verbose
Write-Host "Printers have installed" -Verbose
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment