?
=?iso-8859-1?B?SmFtaek=?=
Hi,
I have a vbScript that works perfectly on around 80 PCs. However on
just two it doesn't and I can't work out why.
Environment:
* Windows Server 2003
* All workstations running Windows XP SP2 (and all centrally updated)
* Roaming Profiles
* Script runs via Group Policy: log-on
* All machines less that 5 years old
Part of the log-on vbScript runs the query: Select * from Win32_Printer
where Default = True
On all PCs except two, this returns the current user's Default Printer.
On the other two it returns an empty recordset (despite the fact that a
Default Printer is set).
I've tried stripping out the Where clause and then iterating through
all installed printers to find the objPrinter.Default property. It
returns a correctly populated printers collection but none have the
default property set.
The WMI service is working.
The scripting engine is working.
There are at least three printers installed on each of these machines.
I've ran out of things to check.
If you could give me some pointers as to what you would check, I'd
appreciate it.
Jaimé
I have a vbScript that works perfectly on around 80 PCs. However on
just two it doesn't and I can't work out why.
Environment:
* Windows Server 2003
* All workstations running Windows XP SP2 (and all centrally updated)
* Roaming Profiles
* Script runs via Group Policy: log-on
* All machines less that 5 years old
Part of the log-on vbScript runs the query: Select * from Win32_Printer
where Default = True
On all PCs except two, this returns the current user's Default Printer.
On the other two it returns an empty recordset (despite the fact that a
Default Printer is set).
I've tried stripping out the Where clause and then iterating through
all installed printers to find the objPrinter.Default property. It
returns a correctly populated printers collection but none have the
default property set.
The WMI service is working.
The scripting engine is working.
There are at least three printers installed on each of these machines.
I've ran out of things to check.
If you could give me some pointers as to what you would check, I'd
appreciate it.
Jaimé