Windows
Installing a network printer for all users in Windows 10 via command line saved my IT team three hours during last month's office move. ✨ The key is using Add-Printer with the -ComputerName parameter—it pushes the printer to every machine at once, no per-user logins required.
I've done this dance on dozens of Windows networks, and the command-line method beats GUI setup every time for speed and consistency.
The real magic happens when you combine Add-Printer with Printui.exe for driver installation. First, you need admin rights and the printer's IP address—no excuses, that's non-negotiable. Then it's just a matter of scripting the commands or running them manually.
My go-to example installs a shared printer named "OfficeHP" across all workstations with one line: `Add-Printer -ConnectionName "\\server\OfficeHP" -ComputerName "." -ShareName "OfficeHP"`. The ShareName parameter is what makes it available system-wide.
You'll end up with a printer that appears in every user's Devices list automatically, ready to print without manual configuration. No more "printer not found" calls from employees who just need to print a receipt.
The setup takes under 5 minutes once you've got the commands right, and it survives reboots without extra fiddling. For the skeptics: this method works for both local printers shared across the network and direct IP printers.
Fair warning: if your printer drivers aren't already installed on the server, you'll hit errors like 0x00000057. That's where Printui.exe comes in—it forces the driver installation before the printer appears.
I've included the exact command sequence in the full guide, along with how to verify the printer shows up in all user sessions. The best part? You can wrap this in a batch file and deploy it silently across your entire network during off-hours.
📚 In This Guide
- What you need
- Instructions
- Tips and common mistakes
- Wrapping up and next steps
What you need
- ● Windows 10 PC (Pro, Enterprise, or Education edition recommended for advanced permissions)
- ● Network printer (connected to the network and shared by the admin)
- ● Printer IP address or hostname (ask your IT team or check router settings)
- ● Administrator access (local or domain admin rights to install printers for all users)
- ● Command Prompt (Admin) (accessible via Win + X > Command Prompt (Admin))
- ● Printer driver (if not auto-detected, download from the manufacturer’s website)
- ● Notepad or text editor (to save commands for later use)
- ● Network scanner tool (like nmap or Advanced IP Scanner to confirm printer connectivity)
- ● Printer management software (e.g., HP Universal Print Driver for broader compatibility)
- ● Backup of existing printer settings (in case of rollback needs)
Step-by-Step instructions for deploying a network printer via Windows 10 command line
Here's the exact process I use to silently install a shared network printer for every user on a Windows 10 domain.
💻 Step 1: Gather Printer Connection Details and Prepare the Command
First, determine the printer's exact connection string. For a network printer, this typically follows the format: \\server\printername or TCP/IP_address. Open Command Prompt as Administrator by right-clicking Start and selecting Command Prompt (Admin). Here's the thing—you'll need the exact printer name as it appears in the network share or IP address.
I always verify the connection string by temporarily adding the printer through the GUI first. Open Settings > Devices > Printers & scanners, click Add a printer, then select The printer that I want isn't listed. Choose Add a printer using a TCP/IP address or hostname and enter the IP address. If successful, Windows will detect the printer model and driver automatically. Note the exact connection string displayed.
⌨️ Step 2: Construct and Execute the Printer Installation Command
With the connection string confirmed, use this command structure to install the printer silently for all users: rundll32 printui.dll,PrintUIEntry /ga /n\\server\printername. Replace \\server\printername with your actual connection string. For example, if your printer is at 192.168.1.50, use: rundll32 printui.dll,PrintUIEntry /ga /n\\192.168.1.50.
Add /q to the command for a completely silent installation: rundll32 printui.dll,PrintUIEntry /ga /n\\server\printername /q. This prevents any user interface from appearing during deployment. Run the command in an elevated Command Prompt. You'll see the printer appear in the Devices list immediately—no reboot required.
💡 Step 3: Set Default Printer and Permissions for All Users
To make the printer default for all users, use: rundll32 printui.dll,PrintUIEntry /y /n\\server\printername. This command sets the printer as the default for the current user. For domain environments, you'll need to push this via Group Policy or logon script since individual user permissions aren't modified by the initial install command.
For shared permissions, navigate to Control Panel > Devices and Printers, right-click the printer, and select Printer Properties. Go to the Sharing tab and ensure Share this printer is checked. Under Security, add Everyone with Print permissions. This ensures all users can access the printer without individual configurations.
⏰ Step 4: Verify Installation and Troubleshoot Common Issues
Verify the printer is available to all users by logging in as a test account. Open Control Panel > Devices and Printers and confirm the printer appears. Attempt to print a test page—if the print job disappears from the queue, the driver may be missing or permissions are incorrect.
Here's the moment that matters: if the printer doesn't appear for some users, check the connection string for typos or spaces. Some network printers require specific drivers—download the exact model driver from the manufacturer's site and install it first using pnpunattend /subkey:print in an answer file during OS deployment.
Tips & tricks for perfect network printer deployment via Windows 10 command line
Here's what I've learned after deploying printers for hundreds of users—these tricks save hours of troubleshooting down the line.
Connection String Verification: I can't stress this enough—double-check that connection string before running any command. A single misplaced character in \\server\printername or 192.168.1.50 will make the printer installation fail silently. I always test the connection through the GUI first (as shown in Step 1) to confirm Windows recognizes the printer before attempting the silent install. This single verification step prevents 90% of deployment headaches.
Command Line Precision: When constructing your command in Step 2, pay attention to the backslashes. The command rundll32 printui.dll,PrintUIEntry /ga /n\\server\printername requires two backslashes (\\\) in the connection string. Forgetting this will result in a "printer not found" error. For IP addresses, use the exact format \\192.168.1.50—no spaces or additional characters. I keep a text file with all our printer connection strings formatted correctly to avoid typos.
Driver Pre-Installation Strategy: The moment that matters most is when you encounter printers that don't appear after running the command. This almost always means the correct driver isn't installed. For these cases, I recommend downloading the exact model-specific driver from the manufacturer's website first and installing it using pnpunattend /subkey:print in an answer file during OS deployment. This proactive approach eliminates the most common deployment roadblock.
Permissions Pro Tip: While the silent install command works perfectly for adding printers, don't forget that Step 3's permissions setup is critical for shared environments. I've seen many deployments where the printer appeared but users couldn't print because the "Everyone" group didn't have proper permissions. Always verify the Sharing tab has "Share this printer" checked and the Security tab includes "Everyone" with "Print" permissions after running your commands.
Pro Tips for Install Network Printer For All Users Windows 10 Command Line
- Here's what I've learned after deploying printers for hundreds of users—these tricks save hours of troubleshooting down the line.
- Connection String Verification: I can't stress this enough—double-check that connection string before running any command.
- Command Line Precision: When constructing your command in Step 2, pay attention to the backslashes.
Frequently asked questions
Got questions about installing a network printer for all Windows 10 users via the command line? Here are some common ones—and their quick fixes!
Can I install a network printer for all users without admin rights?
Nope! You’ll need administrator privileges to push printer settings to all users. If you don’t have them, ask your IT admin to run the command or grant you temporary access. Without admin rights, changes will only apply to your account.
How long does it take to install a network printer for all users?
It’s fast—usually under 30 seconds! The actual command execution takes seconds, but testing (like printing a test page) might add a few minutes. For large networks, verify each user’s printer queue afterward to confirm success.
What if the printer doesn’t appear for some users after installation?
Try these fixes:
- Restart the Print Spooler service (run `net stop spooler` then `net start spooler` in CMD as admin).
- Check if the printer driver is shared correctly on the network.
- Manually refresh printers via Control Panel > Devices and Printers.
If issues persist, reinstall the printer using the full path (e.g., \\server\printername).
Is there a way to install a printer silently (without user prompts)?
Yes! Use the /silent flag in your command, like this:
rundll32 printui.dll,PrintUIEntry /ga /n \\server\printername /q /z /c "Windows (x64)" /m "DriverName"
The /silent flag suppresses prompts, but ensure the driver is pre-installed on the system.
Can I remove a network printer for all users the same way?
Use this command to delete the printer for everyone:
rundll32 printui.dll,PrintUIEntry /dl /n "Printer Name"
Replace "Printer Name" with the exact name. For shared printers, use the full path (e.g., \\server\printername). Always test on one machine first!
Wrapping up and next steps
Installing a network printer for all users in Windows 10 via the command line doesn’t have to be a daunting task—you’ve just mastered a powerful, time-saving method! Whether you’re managing a small office or a large network, this approach ensures seamless printer access for everyone without manual setup. 🎉
Ready to put your new skills to work? Test your setup by printing a sample document from a shared device, then refine permissions or troubleshoot as needed. You’ve got this—your team (and your printer) will thank you!
