Added scripts
This commit is contained in:
9
PowerShell/Create-Printers.ps1
Normal file
9
PowerShell/Create-Printers.ps1
Normal file
@@ -0,0 +1,9 @@
|
||||
$Printers = Import-Csv -Path "C:\temp\PrinterList.csv" -Encoding UTF8 -delimiter ","
|
||||
|
||||
foreach ($Printer in $Printers)
|
||||
{
|
||||
|
||||
Add-PrinterPort -Name $Printer.IP -PrinterHostAddress $Printer.IP -Verbose
|
||||
Add-Printer -Name $Printer.PrinterName -DriverName $Printer.Driver -Location $Printer.Location -PortName $Printer.IP -Verbose
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user