Skip to content

Instantly share code, notes, and snippets.

@sub314xxl
Created March 13, 2017 21:15
Show Gist options
  • Save sub314xxl/dd99e93fb05e1ebb9f72fdbfc0ff0b62 to your computer and use it in GitHub Desktop.
Save sub314xxl/dd99e93fb05e1ebb9f72fdbfc0ff0b62 to your computer and use it in GitHub Desktop.
(Get-WmiObject -ComputerName . -Class Win32_Printer -Filter "Name='PRINTERNAME'").SetDefaultPrinter()
#Import-Module ActiveDirectory
Invoke-Command {pnputil.exe -a "d:\Downloads\upd-pcl6-x64-6.3.0.21178\hpcu190u.inf"}
Add-PrinterDriver -Name "HP Universal Printing PCL 6"
Get-PrinterDriver
Add-PrinterPort -Name "IP_10.64.128.157" -PrinterHostAddress "10.64.128.157"
Start-Sleep 10
Add-Printer -Name "HP M725" -PortName IP_10.64.128.157 -DriverName "HP Universal Printing PCL 6"
wmic cpu get name, caption, maxclockspeed, systemname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment