Ask Your Question
0

Windows 7 Printer Management

asked 2014-09-24 11:24:13 -0500

SKasai gravatar image

Hi there,

New Puppet Dev here and looking for some assistance here...

I'm trying to find a way to do the following, but at a loss as to how to do it in puppet.

Have like 4 or 5 labs with 20-30 computers each where we want to do the following:

If the computer in the lab does not have 'Printer A', we want it added to the computer.

Printer A is hosted on an IPP type server, so the printer needs to be pointed to http://server/printers/PrinterA

Now, I know some people would recommend using the Powershell Printer method, however, Powershell Printer method only works on Windows 8 machines, not Windows 7 (Even upgrading the Powershell, you don't have the Powershell cmdlets to do it)

So we have a two fold issue... One, there is a very basic kind of command line script, but the other issue we see is that with Puppet setup to keep 'pushing' the script execute, it makes the system have multiple copies of a printer, to the point it will sometimes break it.

So looking to see if there is a way to do this.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-10-13 17:19:37 -0500

So we have a two fold issue... One, there is a very basic kind of command line script, but the other issue we see is that with Puppet setup to keep 'pushing' the script execute, it makes the system have multiple copies of a printer, to the point it will sometimes break it.

This is interesting. It tells me the script that is doing so is not idempotent and/or there is not a good check to see if it already exists.

edit flag offensive delete link more
0

answered 2015-04-03 13:13:57 -0500

SKasai gravatar image

Sorry it has taken a while to get back to this, but yes... I think I cam across sort of a way to do it, but also sort of hackish... When I have time to look over it again and apply it to a real-world scenario I will post the results with regards to it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-09-24 11:24:13 -0500

Seen: 769 times

Last updated: Apr 03 '15