I discovered that setting up a HP Enterprise printer on OSX Yosemite was not trivial when it had to print through a Windows spools via smb.
So to get this to work follow the usual guides on windows spooler listed below. But first install the drivers, most of the guides indicates that Apple updates will download the correct drivers but that did not happen in my case. (Think this only works if OSX can talk directly to the printer).
So download the driver pack: HP Printer Drivers v3.1 for OS X