Created
March 13, 2017 21:15
-
-
Save sub314xxl/dd99e93fb05e1ebb9f72fdbfc0ff0b62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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