Skip to content

Add-DigPrinter

SYNOPSIS

Add Printer object to a printerserver and reserves IP in infoblox. You can give multiple PrinterNames to the script, however it will only asks you once for the printerdriver.

SYNTAX

Add-DigPrinter [-PrinterName] <String> [-AddPrinterServer] <String> [-IP] <IPAddress>
 [-AddPrinterLocation] <String> [-AddPrinterMAC] <String> [[-Printerdriver] <String>] [[-force] <String>]
 [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

EXAMPLE 1

.\Add_Dig_Printer.ps1 -PrinterName 'PRGEN0001' -IP "192.168.0.1" -AddPrinterLocation "De Krook, eerste verdieping, lokaal 1" -AddprinterMAC "F8-80-F2-42-73-7E" -Printerdriver "HP Universal driver"

PARAMETERS

-PrinterName

Parameter of list or one PrinterName(s).

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AddPrinterServer

{{ Fill AddPrinterServer Description }}

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-IP

The DNS Name of the printer. Do not use IP addresses

Type: IPAddress
Parameter Sets: (All)
Aliases:

Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AddPrinterLocation

The phyiscal location of the printer.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AddPrinterMAC

The phyiscal address of the printer.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Printerdriver

Printerdriver of the printer, should be known on the printserver.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-force

Removes old record if it already exists. it will only delete the old host if ipv4 and/or mac address is different it also sets the printer details if already exists on the printserver.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES