Partager via


PowerTip: Use PowerShell to Rename Printers

Summary: Learn how to use Windows PowerShell 3.0 in Windows 8 to rename a printer.

Hey, Scripting Guy! Question How can I use Windows PowerShell 3.0 in Windows 8 to rename a printer?

Hey, Scripting Guy! Answer Use the Get-Printer function to retrieve the printer, and pipe it to the Rename-Printer function:

Get-Printer -Name 'mynewlaser' | Rename-Printer -NewName 'myotherlaser'