How to set default printer via powershell in windows 10
- User
How to set default printer via powershell in windows 10
- Assistant
How to set default printer via powershell in windows 10
Setting a default printer in Windows 10 using PowerShell can be useful, especially if you're administering multiple systems or need to update your configuration programmatically. Below are the steps and a script to set the default printer using PowerShell.
First, you need to open PowerShell with administrative privileges to change system settings such as the default printer. To do this:
Before setting the default printer, you should know the exact name of the printer you want to set as default. You can list all available printers with their names by running the following command:
Get-Printer | Format-Table Name
This command lists all printers installed on your system, displaying their names in a table format for easy reading.
Once you have identified the exact name of the printer you wish to set as default, you can use the Set-Printer cmdlet to make it your default printer. Here's how:
Set-Printer -Name "YourPrinterName" -Default $true
Replace YourPrinterName with the exact name of the printer you wish to set as default. Be sure to keep the quotation marks around the printer name to handle any spaces or special characters in the name.
If your printer is named HP OfficeJet 1234, you would run:
Set-Printer -Name "HP OfficeJet 1234" -Default $true
That's how you can set a default printer in Windows 10 using PowerShell. PowerShell provides a powerful way to automate and configure system settings, making it a great tool for system administration.
Not yet included in a published release.