A collection of powershell scripts to help manage Windows
| lib | ||
| Add-Printer.ps1 | ||
| LICENCE.md | ||
| README.md | ||
Win-ConfigScripts
A collection of Powershell scripts to help manage Windows. For now there is only a script to help installing network printer.
Add-NetworkPrinter.ps1 : Add a network printer
usage
Add-NetworkPrinter.ps1 -Inf <inf_file> -Ip <ip_adress> -DriverName <drivername> -Name <printer-name> -PortPrefix <port_name_prefix>
-Inf: path to inf file.-Ip: IP adress of printer.-DriverName: name of the driver.-Name: name given to the printer in configuration panel, if empty then will beDriverName.-PortPrefix: prefix fot the printer port name, the prefix will be added to the IP adress. Default issalt_.
Example
.\Add-NetworkPrinter.ps1 -Inf \\server\printer\driver12.inf -Ip 192.168.9.212 -DriverName "Konica-Minolta C224e' -Name "Konica second floor"
Add a printer named "Konica second floor " with driver "Konica-Minolta c224e"
located in \\server\printer\driver12.inf.
Module
This script use a powershel module located in lib\ManagePrinter.psd1. This
module contains several commandlets to help manage printers :
Add-NetworkPrinterPort,Install-PrinterDriver, Add-NetworkPrinter
Licence
All this work is licenced under the MIT Expat Licence.