How to script printer creation on a Windows Server 2008 R2 clustered print server?

Solution 1:

I don't know if this will work in a cluster enviornment, but there is the good old printbrm.exe tool. It creates what is essentially a cab file full of XML that can backup and restore printer setups between servers. This includes the dreaded TCP/IP ports. This might let you do a simple backup, modify the XML to add what you need and let you do a restore to your cluster. (Again, not sure if this is cluster aware).

Printbrm example: http://technet.microsoft.com/en-us/library/cc722360.aspx

rename the file to .cab and extract to disk...

The port file is brmports.xml. I suggest exporting out a printer or two to see how it is "supposed" to look.

Solution 2:

printbrn.exe is capable of exporting all printer configuration including drivers and ports and importing it an another server.