Skip to content

Remove-DigPrinter

SYNOPSIS

Remove Printer object from all print servers and Infoblox.

SYNTAX

Remove-DigPrinter [-PrinterNames] <String> [-force] [[-target] <String>] [<CommonParameters>]

DESCRIPTION

This function removes printer objects from all specified print servers and deletes their corresponding DNS host entries in Infoblox. It also removes associated Active Directory groups for the printers. The function supports batch processing of multiple printers and includes an option to force deletion without confirmation.

EXAMPLES

EXAMPLE 1

Remove-DigPrinter -PrinterNames @("PRGEN0001", "PRGEN0002")

Removes the specified printers from all print servers and deletes their DNS host entries in Infoblox.

EXAMPLE 2

Remove-DigPrinter -PrinterNames "PRGEN0003" -Force

Removes the specified printer and its DNS host entry in Infoblox without confirmation.

PARAMETERS

-PrinterNames

A list or single name of the printer(s) to be removed.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-force

A switch to bypass confirmation prompts when deleting the host in Infoblox.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-target

The target print server where the printer objects will be removed. Defaults to `srvprint02`.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Srvprint02
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