Ninja Tip: How to re-enable iOS 4.2 network AirPrint on Windows

Interested in how to get network AirPrint working again via your Windows PC? Without much of an explanation, AirPrint was severely gutted just prior to iOS 4.2's release, retaining support for only a small handful of wireless printers. However, we recently posted on how to restore network printing to Mac OS X 10.6.5, and now we're here to tell you how to restore it to Windows 7 as well. Check our easy to follow step-by-step instructions after the break!

To Re-Enable AirPrint on Windows 7:

  • Install iTunes 10.1
  • Download AirPrint.zip (airprint.exe, libairprint.dll, XpdfPrint.dll)
  • Unzip it.
  • Make a folder, "C:\Program Files\AirPrint\" or (64-bit= C:\Program Files (x86)\AirPrint\"
  • Copy the files to "C:\Program Files\AirPrint\" or (64-bit= C:\Program Files (x86)\AirPrint\"
  • Run "cmd.exe" as administrator (Open "Run" from Start Menu and type CMD)
  • Run the following commands (There should be a space between '=' and '"')

Windows 64bit:

  • sc.exe create AirPrint binPath= "C:\Program Files (x86)\AirPrint\airprint.exe -s" depend= "Bonjour Service" start= auto
  • sc.exe start AirPrint

Windows 32bit:

  • sc.exe create AirPrint binPath= "C:\Program Files\AirPrint\airprint.exe -s" depend= "Bonjour Service" start= auto
  • sc.exe start AirPrint

  • Let Windows Firewall allow AirPrint to communicate on the networks (Double click on the airprint.exe) or you can manually add to Windows Firewall exceptions.

  • Make sure you have set your printer as shared on both your network settings and on the printers settings.
  • On your device you will be asked for Admin ID and PW the first time you print unless you have a guest account enabled.

That's it! Let us know how it works for you and if you have any questions or comments, leave them below!

Tips of the day will range from beginner-level 101 to advanced-level ninjary. If you already know this tip, keep the link handy as a quick way to help a friend. If you have a tip of your own you’d like to suggest, add them to the comments or send them in to dailytips@tipb.com. (If it’s especially awesome and previously unknown to us, we’ll even give ya a reward…)

0
loading...
0
loading...
0
loading...
0
loading...

← Previously

BugMe! updated, now universal app for iPhone and iPad

Next up →

iOS 4.3 rumored for December?

Reader comments

Ninja Tip: How to re-enable iOS 4.2 network AirPrint on Windows

96 Comments

Does this mean we can print on any printer that is on a network and it doesn't have to be one of the 5 HP specific printers?

Didn't work for me. The service seems to be running, but it never triggered the firewall alert (Windows firewall is on). Ipad can't see printers. I'm on our office network, so maybe I should try when I get home.

@GoHard
reread the article "However, we recently posted on how to restore network printing to Mac OS X 10.6.5" The link is right there

I haven't tried yet, did this work for anyone?
Also, does only one person in my office need to do this for everyone else to print to the shared printer? (we are all on iPhone 4's) Or does EVERY person in the office need to do this.

@Leo - The username and password is your usual Windows login. It only seems to ask for it the first time.

Worked fine for me on XP Media Centre Edition 2002 with SP3. Thats another string to the ipads bow, why the hell did they take it out in the first place?!?

IF THERE ARE MULTIPLE PEOPLE WITH iPhone 4's IN MY OFFICE, do ALL OF US HAVE TO DO THIS ON OUR INDIVIDUAL DESKTOPS?
OR WILL ONE PERSON DOING IT MAKE THE PRINTER DISCOVERABLE BY ALL iOS DEVICES IN THE OFFICE?
Sorry I had to yell. :)

I can't get it to work on Win 7 64-bit or Server 2008 R2 (32-bit).
In both cases, the shared printers show up on my iPhone when I click "Select Printer", but tapping the printer never brings up the password dialog and eventually the spinner just stops and returns to a padlock icon.
My suspicion is that airprint.exe doesn't work for domain-attached PCs. I may try it from a VM to see if I have any better luck off domain.

okay i got confused as well, but then i realized that its backwards. Meaning 32-bit is Program Files(x86), and 64-bit is just (Program Files). Maybe that'll help people out with the confusion.

So I am having some problems getting this to work. I have win7 64 bit. It gives me an error when I run "sc.exe start airprint"
Any help would be appreciated.
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Jay>sc.exe create AirPrint binPath= "C:\Program Files (x86)\AirPrint\ai
rprint.exe -s" depend= "Bonjour Service" start= auto
DESCRIPTION:
Creates a service entry in the registry and Service Database.
USAGE:
sc create [service name] [binPath= ] ...
OPTIONS:
NOTE: The option name includes the equal sign.
A space is required between the equal sign and the value.
type=
(default = own)
start=
(default = demand)
error=
(default = normal)
binPath=
group=
tag=
depend=
obj=
(default = LocalSystem)
DisplayName=
password=
C:\Users\Jay>sc.exe start airprint.exe
[SC] StartService: OpenService FAILED 1060:
The specified service does not exist as an installed service.

Works but has bugs. Like for some reason it only prints that last page (if there is more than one), then spits out a blank page. Maybe that's why apple took it out. It's not ready.

@jay , i had the same problem , just go to c drive program files airprint airprint.exe , double click .... and then try n print frm ur iphone or ipad n it will work

@rizo g I tried that but it didn't work either. It tells me it is listening for connections. Gives me an unable to remove error about a temp file called cupslite and then says xpdf library version = 3.02.33 and no printers show up on my ipad.

Can't get it to work under Windows 7 x64. When running the first command all I get is:
C:\>sc.exe create AirPrint binPath= "C:\Program Files (x86)\AirPrint\airprint.ex
e -s" depend= "Bonjour Service" start= auto
DESCRIPTION:
Creates a service entry in the registry and Service Database.
USAGE:
sc create [service name] [binPath= ] ...
OPTIONS:
NOTE: The option name includes the equal sign.
A space is required between the equal sign and the value.
type=
(default = own)
start=
(default = demand)
error=
(default = normal)
binPath=
group=
tag=
depend=
obj=
(default = LocalSystem)
DisplayName=
password=

@Jay have you got an unintended space "ai rprint.exe" in your sc command line?
@Chris have you got an unintended space? "airprint.ex e" in your sc command line?

well it worked in part now..... the first part said successful but the second part fails now.
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Jay>sc.exe start airprint
[SC] StartService FAILED 2:
The system cannot find the file specified.
C:\Users\Jay>
any advice?

Awesome! Works for me on my win 7 32 bit machine. Had trouble first time. Deleted service and started again. Enabled guest account as I have no password on my pc and everything fine. Woohoo!

@Jay are you running 32-bit or 64-bit windows 7? If your running 32-bit then your path should be c:\program files\airprint\airprint.exe in the sc command and not "c:\program files (x86)..."
Where did you copy and extract the airprint.zip files too?
If you enter "services.msc" in the run/search box you can check the airprint service you created.

can't figure out the whole user name and password thing. i don't have a password om any of my computers is there a default?

For those having problems getting this working, there are some potential pitfalls to avoid.
The first is you have to unblock incoming access for airprint.exe on Windows Firewall. The best way to do this is to add the following step after copying the files to Program Files, and BEFORE opening cmd.exe:
Double click on Airprint.exe, untick the box that says to prompt before launching, and when the Windows firewall dialogue comes up, click on UNBLOCK. You can now click on the command window where airprint.exe has launched and press Control-C to exit it.
Now continue with the following steps with the sc.exe command.
The second pitfall is you must leave a space after each of the equals signs in the sc.exe command or you will get errors.
Finally, it will only work if you either have the Guest account enabled in Windows, or you have a password configured on your Windows Login. (In the former enter Guest with no password in the iPhone dialogue box, in the latter enter your Windows username and password)
If you're still having problems a reboot may help.

@sonynair I have win7 64bit.... I was in the services but it shows this path to the executable....
c:program files (x86)\airprint\airprint.exe -s
The path is correct if you delete the "-s" however the service will not start as it says the invalid path/filename....How do I delete a service? I will delete it and try it again.

it's not working for me either. when i type in the first command I get the following error:
[SC] OpenSCManager FAILED 5:
Access is denied.

@Jay in the cmd window (as administrator)
sc delete airprint
Your path is missing a "\".
Should be c:\program.... Not c:program...

Ok so I found that if I use any capital letters in the commands that they won't work.....all lower case and I have it working perfectly.... at least as far as the installation...now I can't get the printer to show on the ipad.... hmmmm.....

thank you, that worked, but now when i double click AirPrint I get a cmd window that says:
Listening for connections on ...
Unable to remove C:\.../cupslite/cupslite"- No such file or directory

I was able to get the first part to work. The second part where is says sc.exe start airprint doesn't work. The error is The System cannot find the specified. Can someone help?

Jay, I had the same problem.
Here is the fix: delete the quotes and type them manually.
When copying and pasting the sc.exe command from this article, the quotes charachter that is being copied is not the right one. (It is even better to copy the command to Notepad, edit it (by deleting the double quotes and replacing them by typing double quotes) and then paste (from the notepad program) to the command prompt.

I got mine all up an running....
@S.L I highly suggest you type everything by hand and use lower case letters in the commands. That is what I had to do to get everything working. First though I would type the first command again and substitute delete for Create in the second word. Then start over and redo the commands again.

@oved Thanks....the odd thing is that even when I typed the whole command out by hand if I capitalized the letters it wouldn't work...

It worked, no firewall on but I did enable the Guest account.
sc.exe create AirPrint binPath= "c:\program file
s\airprint\airprint.exe -s" depend= "Bonjour Service" start= auto
sc.exe start AirPrint
SERVICENAME: AirPrint
TYPE : 10 WIN32
OWNPROCESS
STATE : 4 RUNNING
(STOPPABLE,NOT
PAUSABLE,ACCEPTSSHUTDOWN)
WIN32
EXITCODE : 0 (0x0)
SERVICE
EXITCODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT
HINT : 0x0
PID : 5180
FLAGS :

ok so it works now i tried to print a picture off the iphone camera roll didnt come out so good. it printed quickly so i beleive it didnt print on a good setting. any way to enable printing prefferences or pick paper type or quality? i know im asking for alot. but won't know the answer unless i ask right

@Jay Right Click CMD when you open it and click "Run As Administrator" then proceed with command lines

It is asking for a password just to unzipped the folder.
"file AirPrint is password protected. Please enter the password in the box below"
Help!

prints fine, but does the cmd box have to stay open for it to print, does not print if closed?

Kinda got it to work with Windows7. After a few tries, everything 'sees' each other, but when I attempted to print a document from my iPhone4 I got something different. 1 by 1, the printer ate each piece of blank paper and spit it out, blank. Then prompted me for more paper. I put the paper back in, and it did the same thing.
Promising, obviously not ready for general use.

Everyone needs to make sure they: 1) Turned Printer sharing ON in both network settings and their printer settings 2) added airprint.exe to firewall exceptions either by popup or manually 3)Either have an Admin name and PW or guest account open (less secure)

Honestly I was expecting you could print using any wifi enabled printer as you do with a laptop. Dissapointed but I am sure airprint capability will improve with time (and apps?).

Why dont you just copy in C:\program files\Airprint and the run "airprint -i" from there. It creates the service.
Usage: airprint [options]
Options:
-A Enable random alerts on test printers
-B Enable Bonjour printers
-D Enable print speed delays on test printers
-L Set Bonjour location/note value
-P Enable PPD files
-R regtype Set Bonjour regtype
-T Enable test printers
-U Enable local USB printers
-W Enable web interface
-a user:pass Enable authentication on printers
-c certfile Set certificate for SSL (default DATADIR/server.crt)
-d datadir Set data directory (default TMPDIR/cupslite)
-f filedir Set allowed directory for Print-URI (default none)
-k keyfile Set private key for SSL (default DATADIR/server.key)
-h Show usage/help
-i Install service
-n hostname Set hostname to advertise (default auto)
-p port Set listen port (default 631)
-r Remove service
-j job-id Set the starting job-id
-v Increase verbosity (multiple -v's supported)
-w webroot Set web interface directory (default C:/CUPS/share/webroot)

I was following the instructions and got everything working but nothing was going to the printer.... I changed my printer drivers from PCL to PS drivers and it works now.

I've followed the directions from this post and this video http://www.youtube.com/watch?v=7GlHQHB-74U and get this message when I run the command in CMD:
[SC] OpenSCManager FAILED 5:
Access is denied.
Any help would be much appreciated. I have run the .exe file to let the firewall accept AirPrint and my printer is set up as shared.

Works on my WIFI Canon MP560. thank you to all those people that made this possible. I can now print. I'm using Windows 7 64bit, and printing from iPhone 4.

Alright, for all of you that had problems, it can be done. I had all the problems Jay had, plus the password issue. I got AirPrint working on a 12 year old 350mhz win xp machine. If the article's version doesn't work for you, go to the top and use Max's way. First, if you add the service but can't get it to run delete the service. Put the same thing as the article but change create to delete (can't find the Answer that gave this solution, but thanks!). Next, do what Max says, go to the directory and follow Max's directions. Next, as numerous other people say, make sure you have an exception in your firewall.
Finally, make sure you have the right login and password. On windows check inth user settings.
Apple may have crippled this, but everyone here gives you instructions to run AirPrint. Oh, I forgot, I have 3gs (sorry 3G users like my wife, unless you jailbreak, you're left out) and my network is a windows home network and the printer connected to my 12 year old computer is a HP LaserJet 1000!
Come on, anyone can get this to work.

Can't get this to work for a Canon MP640. Have set up the service, confirmed printer and network sharing and userid and password. When you double click on the airprint.exe I get the following error:
Canon MP640 series Printer: DeviceCapabilities (DC_ENUMRESOLUTIONS) failed
XpdfPrint library version = 3.02.33
Has anyone seen that error?

Clarification needed, please:
I have an older (2005) HP network enabled printer. Will this allow me to print from my iPhone 4 when my Desktop Computer is not powered on? Or does this simply allow the iPhone to communicate with my Desktop which then forwards the print job to my networked printer?
I suspect the latter; in which case I suppose I'll wait for Apple to update Airprint in iOS. If I need to turn on the computer anyway, I might as well print from there.

I got it to work on a Windows Vista machine but have noticed that if I shut down then restart the laptop I have to go into services as administrator and manually restart the AirPrint Service even thought it is already running before the iPad will see the printers available. Once it does, everything runs fine.

Rob,
I'm seeing the same DeviceCapabilities error for my Epson printer. I'm running Win7 64-bit. In addition, I'm also seeing a registration error when I run airprint from the command line.
Unable to register "HP LaserJet 1220 Series PCL 5 @ abcd": -65563
EPSON Stylus Photo R380 Series: DeviceCapabilities(DC_ENUMRESOLUTIONS) failed
Unable to register "EPSON Stylus Photo R380 Series @ abcd": -65563
I get no hits on google for the 65563 error with airprint. Anyone have an idea of what this error means?

Quick follow up. I installed it on a WinXP 32-bit machine and it worked fine--was able to print from my iPad. So 32-bit XP is working and 64-bit Win7 gets the registration/device capabilities errors. Very puzzling.

I've now tried a number of different options, including adding a "-U" parameter (support for USB printers, which mine is) as well as deleting the service and trying a number of the automatic installation that have started to pop up at various sites.
I still get the same error "Canon MP640 series Printer: DeviceCapabilities (DC_ENUMRESOLUTIONS) failed"
Has anyone else tried with any of the other parameters. Also, what is the "-s" parameter for. It isn't in the list of parameters.

To set this up on a Vista machine, you must run CMD.exe as administrator or else you will get errors. Search for CMD.exe using Windows Explorer, right click on it and select "Run As Administrator". Also note that I have found that after every shut down or restart you have to go back into the Start Menu, and use the Services feature in Administrative Tools to force a restart of the newly created AirPrint Service even though it says it is already running otherwise your iPad will not be able to find your shared printers.

i did every thing it says it shows my printer on my ipod but it never loads after i click on it jus blue with the swirly please help

I was really disappointed when apple dropped network printer support from iOS 4. Thanks for the instructions to enable it. For me it worked first try. I am running an old trusty dell with XP and a HP LaserJet 1000 connected via USB. I didn't require anything fancy, just simply wanted the option to print directions, emails, web pages and the like. You folks made my day!

http://www.tipb.com/2010/11/23/ninja-tip-reenable-network-airprint-windo...
Rob
I had this issue and have resolved it. I was trying to setup the airprint service on a desktop machine which did not have iTunes installed which meant the AirPrint service dependency (in this case "Bonjour Service") was not available to be set as a dependency.
◦sc.exe create AirPrint binPath= “C:\Program Files\AirPrint\airprint.exe -s” depend= “Bonjour Service” start= auto
◦sc.exe start AirPrint
I deleted the AirPrint service by going to a command line (Start/run, type CMD, hit return) and typing:
sc.exe AirPrint /delete
Then rebooted the machine.
Installed iTunes (latest version)
Then ran the command lines:
sc.exe create AirPrint binPath= “C:\Program Files\AirPrint\airprint.exe -s” depend= “Bonjour Service” start= auto
sc.exe start AirPrint
This then completed successfully and I can now use AirPrint from iPad and iPhone4
Sweet.

thank you!!
I was looking for the solution to solve error that JOB mentioned for 3 hours.
And finally I found your TIP. And success. thank you from Korea

Ihad it working fine to my xp pc. I initially was able to print from my iPhone and iPad. It for some reason now only prints from the iPhone. The iPad reports the printer is off-line, which is not the case as it has just printed from the phone! This is very frustrating. Grateful for any suggestions.
Regards
john

It works excellent. Thanks for the tip, I was able to print from my iPhone now. uscomputergeek

Excellent weblog here! Additionally your web site quite a bit up fast! What host are you using? Can I get your associate hyperlink for your host? I want my web site loaded up as quickly as yours lol

I am now not sure the place you are getting your info, however good topic. I must spend a while learning more or figuring out more. Thank you for fantastic info I was in search of this information for my mission.

This is a note to the webmaster. Does your website get enough traffic or rank for keywords on Google? Well we can help! We can provide you with tens of thousands of backlinks to your site! This will help your rankings in the search engines and make your website more visible to your target audience. Take a quick look as I am sure you will be interested.