To rename a printer in Windows, use the `Rename-Printer
` command in PowerShell. The Rename-Printer command changes the printer name of the specified printer on a computer.
Here is the PowerShell script that renames the specified printer on a Windows system.
Rename-Printer -Name "Follow-me-HP" -NewName "HP Printer"
In the above PowerShell script, the Rename-Printer command uses the Name
parameter to specify the current name of the printer and the –NewName
parameter to specify the new name.
The output of the above PowerShell script renames the “Follow-me-HP” printer name to “HP Printer“.
You can use the Get-Printer
command to get the printer information to verify if the Rename-Printer
command renames the printer name or not.
Conclusion
I hope the above article on how to rename the specified printer name on a computer using the PowerShell Rename-Printer is helpful to you.
You can find more topics about PowerShell Active Directory commands and PowerShell basics on the ShellGeek home page.