Jump to content

Recommended Posts

Posted

I'm having problems in finding a working script to add a printer to a Win7 client.

 

I don't use AD I just have my server as a file/print/dhcp/dns server and with XP machines I can simple run a nice vbs script to add printer/and or set default.

 

I couldn't get these to work on Win7 machines but since I was setting up batches I just manually added them into my first machine and then cloned the machine.

 

This policy has now completely failed me when the suite printer went AWOL and I put a new model in instead - all XP sorted on next re-boot - but I'm having to around the Win7 teachers machines one at a time and sort them out :(

 

I got caught out big time as it turns out a lot of them didn't have the school photocopier installed either :eek:

 

So is it actually possible (in the real world :) ) to script the addition of a w2k3 server printer for a win7 client?

 

Si

Posted (edited)

rundll32 printui.dll,PrintUIEntry /in /q /n "\\server\sharename" 

 

This is what we used for Windows XP, and a quick test shows it to work in Windows 7 as well (add it as either a line in a user logon script or a batch file in a user gpo)

Edited by imunro01
Posted

Gives Windows cannot connect to the printer at my end :(

 

Did the computer you tried it on already have the drivers loaded for that printer?

 

Si

Posted

If W7 clients are 64bit have you installed the 64bit drivers on the server?

Have you checked the security permissions on the printer share?

 

I've not tried it on W7 but I have been using something very similar on XP for years, the only other thing that I can think of that could cause problems is the extra security features W7 has built in.

  • Thanks 1
Posted
do point and print restrictions apply to workgroup computers if so might be worth turning it off with gpedit.msc. Also if uac is on if it elevates to install the elevated user probably dosent have access to the "server"
Posted

We use the following in a VBS file at login:

 

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\server\printer"

 

Seems to work OK. Make sure you have drivers that match ie 32bit or 64bit. You may need to add 64bit drivers to the server if thats what your Windows 7 machines are running

Posted

These are Win7 64 bits clients ;(

How do I install Win 7 64bit drivers on the server - everything I try only gives me options for w2k3/XP and below :(

 

I've downloaded the Win7 64 bit driver and files are in a folder but I can't do anything with them.

 

regards

 

Simon

Posted

Quite easy. Have you already got the 32bit drivers on the server? (Not necessary but easier)

 

Go to the properties of the shared printer. On the 'Shared' tab, click the button for Additional Drivers. You should see the 32bit x86 option is already ticked and says 'yes' next to it. Tick the box for x64, wait a moment and you should be prompted to browse for the drivers. Point to your download and let it add them in. You should end up with a 'yes' next to both kinds.

 

If you don't already have the 32bit drivers installed do this. Go to the Print Server Properties. You should see 4 tabs I think? One is called drivers. Go to that and click the Add button. Untick the 32bit option and tick the x64 option. Again browse for your downloaded drivers.

 

Let me know if that helps

Posted
These are Win7 64 bits clients ;(

How do I install Win 7 64bit drivers on the server - everything I try only gives me options for w2k3/XP and below :(

 

I've downloaded the Win7 64 bit driver and files are in a folder but I can't do anything with them.

 

regards

 

Simon

 

I haven't needed to do this yet myself but as far as I know all you need to do is install the 32bit drivers on your 2003 server then open the sharing tab on the printer and use the additional drivers button, then just point it at your 64 bit drivers.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...