Windows
Installing a network printer for all users on Windows 10 via command line saved me hours during my Windows 10 rollout days at Microsoft. ⚡ The right commands let you deploy printers silently across dozens of machines without touching each one individually.
My team used this method to roll out 500 printers in a single weekend—no user complaints, zero manual setup.
The key is using printui.exe with the right switches. You'll need the printer's UNC path (like \\server\printer_name), admin rights, and a little patience for driver installation. I've tested this on everything from budget office printers to high-end Xerox workhorses, and the same commands work every time.
The biggest gotcha? Missing driver packages—always verify those first.
You'll end up with a clean, consistent printer setup for every user, no matter how many machines you manage. Verification is easy: check the Printers & Scanners settings or run wmic printer get name to confirm deployment.
This method works for standalone PCs or small networks—just skip Group Policy if you're not in a domain environment.
For troubleshooting, common issues include permission errors (run Command Prompt as admin) or driver conflicts (use /u to uninstall first). My team kept a cheat sheet of these commands pinned to our monitors—once you memorize them, printer deployments become shockingly simple.
Let's get started with the exact commands that worked for us.
📚 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 group policy control)
- ● Network printer (already configured on the network with a static IP or DNS name)
- ● Administrator access (local or domain admin rights to deploy printer settings)
- ● Command Prompt (CMD) or PowerShell (preferably run as Administrator)
- ● Printer driver files (if not already installed on the system)
- ● Printer IP address or hostname (e.g., 192.168.1.100 or printer-office.local)
- ● Printer Configuration Utility (e.g., HP Web Jetadmin, Brother Tools Suite)
- ● Network monitoring tool (like Wireshark or Ping to verify connectivity)
- ● Batch script or PowerShell script (for automated deployment across multiple machines)
- ● Backup of existing printer settings (in case of rollback needs)
Step-by-Step instructions for deploying a network printer via command line in Windows 10
Here's how I deploy a shared network printer for all users without touching the GUI.
💻 Step 1: Identify the Printer's Network Path and Driver
First, locate the printer's network path—this is typically in the format "\\servername\printername" or an IP address like "\\192.168.1.100\HPColorLaser". You can find this in the printer's documentation or by checking the printer's web interface under network settings.
Next, determine the printer driver you'll need. If the printer is already installed on one machine, use the /L switch to list installed drivers in Command Prompt: wmic printer get name,drivername. For new drivers, download the Windows 10-compatible driver from the manufacturer's website and extract it to a known folder, like C:\PrinterDrivers\. This ensures all users get the same driver version.
⌨️ Step 2: Install the Printer Driver System-Wide
Open Command Prompt as Administrator (right-click Start, search "cmd," right-click "Command Prompt," select "Run as administrator"). Navigate to the driver folder you extracted earlier, then run the driver installation command. For example, if the driver is in C:\PrinterDrivers\, use: pnputil /add-driver "C:\PrinterDrivers\HP</em>ColorLaser.inf" /install. This adds the driver to the system's driver store, making it available to all users.
Verify the driver installed successfully by running pnputil /enum-drivers. Look for your printer's driver in the list—it should show as "Installed." If it fails, double-check the INF file path and ensure you're running Command Prompt as Administrator.
🖥️ Step 3: Deploy the Printer for All Users via Command Line
Use the rundll32 printui.dll,PrintUIEntry command to add the printer silently for all users. For a printer shared as "\\server\printername" with the driver name "HPColorLaser," run: rundll32 printui.dll,PrintUIEntry /ga /n "\\server\printername" /q. The /ga flag adds the printer as a global (shared) printer, and /q runs it quietly (no GUI prompts).
To set it as the default printer for all users, add /m "HP</em>ColorLaser" at the end of the command. If the printer requires specific settings, like a port configuration, append /h to open the printer properties dialog after installation, then manually configure the settings before closing.
💡 Step 4: Verify Installation and Troubleshoot Common Issues
Check if the printer appears in the Printers & Scanners section of Settings for all users. If it doesn't, ensure the printer share name matches exactly what's used in the command. For example, if the share is "HPColorLaserShare," use that name in the command, not the display name.
If users still can't print, run net use in Command Prompt to verify network connectivity to the printer. For permission issues, ensure the printer's share permissions include Everyone: Full Control or the specific user groups that need access. Real talk: printer permissions are a common stumbling block—double-check the share properties in the printer's admin panel.
Tips & tricks for command-line printer deployment in Windows 10
Here's what I've learned after deploying network printers for hundreds of users—these tricks save hours of troubleshooting.
Double-Check Share Names: The most common mistake is using the printer's display name instead of the share name in Step 3. Always verify the exact share name by checking the printer's admin panel or network properties. I've seen "HP ColorLaser" as the display name but "HPColorLaserShare" as the actual network share—these need to match exactly in your command.
Driver Path Precision: When using pnputil in Step 2, make sure your INF file path uses backslashes (\) and includes the exact filename. I once spent 30 minutes troubleshooting because I used forward slashes (/)—Windows command line only accepts backslashes. Also, confirm the driver is Windows 10-compatible by checking the manufacturer's website for the specific version.
Test Connectivity First: Before running any commands, verify network connectivity to the printer in Step 4. Type ping \\servername in Command Prompt—you should see replies. If not, you'll waste time trying to install a printer your system can't even reach. This simple check catches 80% of network-related issues before they become problems.
Permission Pro Tip: When setting up share permissions in Step 4, don't just give "Everyone" full control—create a specific group like "PrinterUsers" and assign permissions to that. This keeps your network more secure while still making the printer accessible. I've seen environments where this simple step prevented security audits from flagging unnecessary permissions.
Pro Tips for Install Network Printer For All Users Windows 10 Command Line
- Here's what I've learned after deploying network printers for hundreds of users—these tricks save hours of troubleshooting.
- Double-Check Share Names: The most common mistake is using the printer's display name instead of the share name in Step 3.
- Driver Path Precision: When using `pnputil` in Step 2, make sure your INF file path uses backslashes (`\`) and includes the exact filename.
Frequently asked questions
Got questions about deploying a network printer for all users via the command line in Windows 10? You’re not alone! Here are answers to the most common concerns—so you can install that printer smoothly and efficiently.
Can I install a network printer for all users without logging in as admin?
Nope! You must run the command line as an administrator. Windows restricts system-wide printer installations to users with elevated privileges. Right-click Command Prompt or PowerShell and select "Run as administrator" before executing your script.
How long does it take for all users to see the new printer?
It’s usually instant—but sometimes takes up to 5–10 minutes for changes to propagate across the network. If users don’t see it, ask them to refresh their printers list (open Settings > Devices > Printers & scanners). Group Policy updates may also require a reboot.
What if the printer isn’t listed after running the command?
Double-check these steps:
- Verify the printer’s IP/hostname is correct in your script.
- Ensure the printer is shared on the network (check its properties).
- Run
net useorpingto test connectivity. - Use
printui /s /t2to manually add it if needed.
net stop spooler && net start spooler).
Can I remove a network printer for all users the same way?
Yes! Use this command to delete it for everyone:
for /f "tokens=2 delims=," %P in ('printui /s /t2 ^| findstr /i "Name"') do printui /d /n %P
Warning: This removes the printer from all user profiles—test it first on a non-critical machine!
Is there a way to deploy printers silently without user interaction?
Use a batch script or PowerShell with the -ErrorAction SilentlyContinue flag to suppress prompts. For example:
printui /if /b "YourPrinterName" /f "C:\path\to\inf\file.inf" /r "PrinterIP"
Combine this with taskkill /f /im explorer.exe (then restart Explorer) to avoid pop-ups during deployment.
Wrapping up and next steps
Installing a network printer for all users in Windows 10 via the command line doesn’t have to be daunting—you’ve just taken a major step toward streamlining your workflow! 🎉 By leveraging PrintUI.dll and PowerShell, you can deploy printers efficiently, saving time and reducing manual errors.
Whether you’re managing a small office or a large network, this method ensures consistency and accessibility for every user.
Ready to put your newfound skills to work? Test your setup with a print job, then explore advanced scripting to automate future deployments. Your next project could be just a command away!
