Posts Tagged ‘windows 7’

Windows Clients choosing incorrect DNS server from DHCP

Tuesday, April 12th, 2011

Discovered an interesting problem with windows xp and 7 clients in an active directory domain(although this may happen to non-ad clients as well).  If  the dhcp server has several different DNS servers for different groups of clients, and a default is overridden by the others, the override doesn’t go into affect when a lease is acquired on reboot (only a manual renewal seems to get it).

The fix was to set up the dns options so that no “default” existed (i.e. the other groups each got the same entry placed inside a subgroup for them).  Then both the windows and other clients picked up their own dns options with no overrides.

Essentially, what I did was move

 option domain-name-servers 192.168.2.1

 into

 group ( ),

so that no default exists.

Issues with Printui.dll in login scripts

Wednesday, May 19th, 2010

I’ve spent a bit more time working with printui.dll to install printers, and found some interesting things:

1. Adding a printer to the machine doesn’t seem to automatically make it available to active directory accounts.  It does allow the AddWindowsPrinterConnection command from the Wscript.shell object to set up the printer.

2. It can only be run once on a machine for a given printer without giving an error, making it impractical to put into a login script for users (but possibly useful for a remote command or new machine script).

At the moment, I’m leaving it out of the login scripts and just manually adding the printers for windows 7 boxes.  If group policy managed print management in windows 2008 works out, I’ll switch to using that to set up printers instead.